2010-08-11 15:28:45 -07:00
|
|
|
const Cc = Components.classes;
|
|
|
|
const Ci = Components.interfaces;
|
|
|
|
const Cu = Components.utils;
|
|
|
|
|
2010-09-06 00:17:26 -07:00
|
|
|
Cu.import("resource:///modules/tabview/AllTabs.jsm");
|
|
|
|
Cu.import("resource:///modules/tabview/groups.jsm");
|
|
|
|
Cu.import("resource:///modules/tabview/utils.jsm");
|
2010-08-11 15:28:45 -07:00
|
|
|
Cu.import("resource://gre/modules/Services.jsm");
|
|
|
|
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
2010-07-28 21:56:31 -07:00
|
|
|
|
|
|
|
XPCOMUtils.defineLazyGetter(this, "gWindow", function() {
|
2010-08-11 15:28:45 -07:00
|
|
|
return window.QueryInterface(Ci.nsIInterfaceRequestor).
|
|
|
|
getInterface(Ci.nsIWebNavigation).
|
|
|
|
QueryInterface(Ci.nsIDocShell).
|
2010-07-28 21:56:31 -07:00
|
|
|
chromeEventHandler.ownerDocument.defaultView;
|
|
|
|
});
|
|
|
|
|
|
|
|
XPCOMUtils.defineLazyGetter(this, "gBrowser", function() gWindow.gBrowser);
|
|
|
|
|
|
|
|
XPCOMUtils.defineLazyGetter(this, "gTabViewDeck", function() {
|
2010-07-29 12:37:25 -07:00
|
|
|
return gWindow.document.getElementById("tab-view-deck");
|
2010-07-28 21:56:31 -07:00
|
|
|
});
|
|
|
|
|
|
|
|
XPCOMUtils.defineLazyGetter(this, "gTabViewFrame", function() {
|
2010-07-29 12:37:25 -07:00
|
|
|
return gWindow.document.getElementById("tab-view");
|
2010-07-28 21:56:31 -07:00
|
|
|
});
|
|
|
|
|
2010-09-09 07:06:00 -07:00
|
|
|
XPCOMUtils.defineLazyGetter(this, "tabviewBundle", function() {
|
|
|
|
return Services.strings.
|
|
|
|
createBundle("chrome://browser/locale/tabview.properties");
|
|
|
|
});
|
|
|
|
|
|
|
|
function tabviewString(name) tabviewBundle.GetStringFromName('tabview.' + name);
|
|
|
|
|
2010-09-20 18:26:00 -07:00
|
|
|
XPCOMUtils.defineLazyGetter(this, "gPrefBranch", function() {
|
|
|
|
return Cc["@mozilla.org/preferences-service;1"].
|
|
|
|
getService(Ci.nsIPrefService).
|
|
|
|
getBranch("browser.panorama.");
|
|
|
|
});
|
|
|
|
|
2010-09-24 17:24:31 -07:00
|
|
|
XPCOMUtils.defineLazyGetter(this, "gPrivateBrowsing", function() {
|
|
|
|
return Cc["@mozilla.org/privatebrowsing;1"].
|
|
|
|
getService(Ci.nsIPrivateBrowsingService);
|
|
|
|
});
|
|
|
|
|
2010-07-28 21:56:31 -07:00
|
|
|
# NB: Certain files need to evaluate before others
|
2010-07-22 12:35:11 -07:00
|
|
|
|
2010-07-29 12:37:25 -07:00
|
|
|
#include iq.js
|
|
|
|
#include storage.js
|
|
|
|
#include items.js
|
2010-08-06 15:46:55 -07:00
|
|
|
#include groupitems.js
|
2010-07-29 12:37:25 -07:00
|
|
|
#include tabitems.js
|
|
|
|
#include drag.js
|
|
|
|
#include trench.js
|
|
|
|
#include ui.js
|
2010-09-08 11:37:50 -07:00
|
|
|
#include search.js
|