gecko/browser/base/content/tabview/tabview.js
Ian Gilman 09b9ab0f1c + Removed TabItems._heartbeat, in favor of a more direct event-based approach (more to come on this front)
+ Cleaned up a bunch of unneeded properties and methods in tabitems.js
+ moved profile.js to the top of tabcandy.js, so the script loading timer is accurate

--HG--
rename : browser/base/content/tabcandy/app/tabitems.js => browser/base/content/tabview/tabitems.js
rename : browser/base/content/tabcandy/tabcandy.js => browser/base/content/tabview/tabview.js
extra : rebase_source : de7687f5c22881edb1d0c463348e6176a0440587
2010-07-29 14:45:08 -07:00

37 lines
1.2 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/tabs.js");
Components.utils.import("resource://gre/modules/tabview/utils.js");
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 groups.js
#include tabitems.js
#include drag.js
#include trench.js
#include infoitems.js
#include ui.js