gecko/browser/base/content/tabview/tabview.js
Ehsan Akhgari d6b330e338 Bug 585850 - Rename TabCandy modules from *.js to *.jsm (like the rest of js modules)
--HG--
rename : browser/base/content/tabview/modules/AllTabs.js => browser/base/content/tabview/modules/AllTabs.jsm
rename : browser/base/content/tabview/modules/groups.js => browser/base/content/tabview/modules/groups.jsm
rename : browser/base/content/tabview/modules/utils.js => browser/base/content/tabview/modules/utils.jsm
2010-08-09 23:51:23 -04:00

39 lines
1.3 KiB
JavaScript

// profile.js starts a timer to see how long this file takes to load, so it needs to be first.
// The file should be removed before we ship.
#include profile.js
Components.utils.import("resource://gre/modules/tabview/AllTabs.jsm");
Components.utils.import("resource://gre/modules/tabview/groups.jsm");
Components.utils.import("resource://gre/modules/tabview/utils.jsm");
Components.utils.import("resource://gre/modules/Services.jsm");
Components.utils.import("resource://gre/modules/XPCOMUtils.jsm");
XPCOMUtils.defineLazyGetter(this, "gWindow", function() {
return window.QueryInterface(Components.interfaces.nsIInterfaceRequestor).
getInterface(Components.interfaces.nsIWebNavigation).
QueryInterface(Components.interfaces.nsIDocShell).
chromeEventHandler.ownerDocument.defaultView;
});
XPCOMUtils.defineLazyGetter(this, "gBrowser", function() gWindow.gBrowser);
XPCOMUtils.defineLazyGetter(this, "gTabViewDeck", function() {
return gWindow.document.getElementById("tab-view-deck");
});
XPCOMUtils.defineLazyGetter(this, "gTabViewFrame", function() {
return gWindow.document.getElementById("tab-view");
});
# NB: Certain files need to evaluate before others
#include iq.js
#include storage.js
#include items.js
#include groupitems.js
#include tabitems.js
#include drag.js
#include trench.js
#include infoitems.js
#include ui.js