mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
de2e79da4d
(Based on patch from Sean Dunn <seanedunn@yahoo.com>.)
49 lines
1.4 KiB
JavaScript
49 lines
1.4 KiB
JavaScript
const Cc = Components.classes;
|
|
const Ci = Components.interfaces;
|
|
const Cu = Components.utils;
|
|
|
|
Cu.import("resource:///modules/tabview/AllTabs.jsm");
|
|
Cu.import("resource:///modules/tabview/utils.jsm");
|
|
Cu.import("resource://gre/modules/Services.jsm");
|
|
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
|
|
|
XPCOMUtils.defineLazyGetter(this, "tabviewBundle", function() {
|
|
return Services.strings.
|
|
createBundle("chrome://browser/locale/tabview.properties");
|
|
});
|
|
|
|
function tabviewString(name) tabviewBundle.GetStringFromName('tabview.' + name);
|
|
|
|
XPCOMUtils.defineLazyGetter(this, "gPrefBranch", function() {
|
|
return Services.prefs.getBranch("browser.panorama.");
|
|
});
|
|
|
|
XPCOMUtils.defineLazyGetter(this, "gPrivateBrowsing", function() {
|
|
return Cc["@mozilla.org/privatebrowsing;1"].
|
|
getService(Ci.nsIPrivateBrowsingService);
|
|
});
|
|
|
|
XPCOMUtils.defineLazyGetter(this, "gNetUtil", function() {
|
|
var obj = {};
|
|
Cu.import("resource://gre/modules/NetUtil.jsm", obj);
|
|
return obj.NetUtil;
|
|
});
|
|
|
|
var gWindow = window.parent;
|
|
var gBrowser = gWindow.gBrowser;
|
|
var gTabView = gWindow.TabView;
|
|
var gTabViewDeck = gWindow.document.getElementById("tab-view-deck");
|
|
var gTabViewFrame = 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 ui.js
|
|
#include search.js
|