speedtrans/chrome/content/menu.js
2010-02-22 19:49:53 +05:30

22 lines
711 B
JavaScript

var padma={
openAnnot:function()
{
window.open("chrome://speedtrans/content/transcribe.html");
/*
window.open("chrome://speedtrans/content/transcribe.html",
"annot", "chrome,centerscreen,resizable=yes,toolbar=no,menubar=no");
*/
}
}
function getMainWindow() {
return window.QueryInterface(Components.interfaces.nsIInterfaceRequestor)
.getInterface(Components.interfaces.nsIWebNavigation)
.QueryInterface(Components.interfaces.nsIDocShellTreeItem)
.rootTreeItem
.QueryInterface(Components.interfaces.nsIInterfaceRequestor)
.getInterface(Components.interfaces.nsIDOMWindow);
}