speedtag/chrome/content/menu.js

22 lines
705 B
JavaScript
Raw Permalink Normal View History

2011-05-23 20:35:35 +00:00
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);
}