gecko/browser/base/content/tabview/tabview.js
Edward Lee 43b7d40966 Move private variables/methods into local declarations not exported by AllTabs and change the interface to .register("change") instead of .onChange() for bug 584532.
--HG--
rename : browser/base/content/AllTabs.js => browser/base/content/tabview/modules/AllTabs.js
extra : rebase_source : 267110a1a1dd8cc8d4188f20285d688b2b901aa1
2010-08-09 17:19:04 -07: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.js");
Components.utils.import("resource://gre/modules/tabview/groups.js");
Components.utils.import("resource://gre/modules/tabview/utils.js");
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