speedtag/chrome/content/menu.js
2011-05-24 02:05:35 +05:30

22 lines
705 B
JavaScript

var speedtag={
open:function()
{
window.open("chrome://speedtag/content/speedtag.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);
}