Rename to 'TreeStyleTabBase' from 'TreeStyleTabUtils'.

This commit is contained in:
saneyuki_s 2012-09-27 15:40:14 +09:00
parent efa6a309f3
commit f27cfc745a
5 changed files with 12 additions and 12 deletions

View File

@ -46,7 +46,7 @@ function FullTooltipManager(aOwner)
this.init(aOwner);
}
FullTooltipManager.prototype = {
__proto__ : TreeStyleTabUtils,
__proto__ : TreeStyleTabBase,
kTOOLTIP_MODE_DEFAULT : 0,
kTOOLTIP_MODE_COLLAPSED : 1,

View File

@ -48,7 +48,7 @@ function GroupTab(aWindow)
}
GroupTab.prototype = {
__proto__ : TreeStyleTabUtils,
__proto__ : TreeStyleTabBase,
initialized : false,
shouldUpdate : false,

View File

@ -40,7 +40,7 @@ const Ci = Components.interfaces;
Components.utils.import('resource://gre/modules/XPCOMUtils.jsm');
XPCOMUtils.defineLazyModuleGetter(this, 'TreeStyleTabUtils', 'resource://treestyletab-modules/utils.js');
XPCOMUtils.defineLazyModuleGetter(this, 'TreeStyleTabBase', 'resource://treestyletab-modules/utils.js');
var PseudoTreeBuilder = {
@ -105,7 +105,7 @@ var PseudoTreeBuilder = {
if (w.isBlankPageURL ? !w.isBlankPageURL(uri) : (uri != 'about:blank')) tooltip += '\n' + uri;
label.setAttribute('tooltiptext', tooltip);
label.setAttribute('class', 'text-link '+this.kTREEITEM);
label.setAttribute('tab-id', TreeStyleTabUtils.getTabValue(aTab, TreeStyleTabUtils.kID));
label.setAttribute('tab-id', TreeStyleTabBase.getTabValue(aTab, TreeStyleTabBase.kID));
var children = this.createTabChildren(aTab);
if (children) {
@ -123,7 +123,7 @@ var PseudoTreeBuilder = {
{
var doc = aTab.ownerDocument;
var children = TreeStyleTabUtils.getChildTabs(aTab);
var children = TreeStyleTabBase.getChildTabs(aTab);
if (!children.length)
return null;

View File

@ -33,7 +33,7 @@
*
* ***** END LICENSE BLOCK ******/
const EXPORTED_SYMBOLS = ['TreeStyleTabUtils'];
const EXPORTED_SYMBOLS = ['TreeStyleTabBase'];
const Cc = Components.classes;
const Ci = Components.interfaces;
@ -81,7 +81,7 @@ XPCOMUtils.defineLazyGetter(this, 'confirmWithPopup', function() {
return ns.confirmWithPopup;
});
var TreeStyleTabUtils = {
var TreeStyleTabBase = {
__proto__ : window['piro.sakura.ne.jp'].prefs,
tabsHash : null,
inWindowDestoructionProcess : false,
@ -2732,16 +2732,16 @@ var TreeStyleTabUtils = {
applyOnlyForActiveWindow : false,
setPrefForActiveWindow : function(aTask) {
TreeStyleTabUtils.applyOnlyForActiveWindow = true;
TreeStyleTabBase.applyOnlyForActiveWindow = true;
try {
aTask.call(this);
}
finally {
TreeStyleTabUtils.applyOnlyForActiveWindow = false;
TreeStyleTabBase.applyOnlyForActiveWindow = false;
}
}
};
TreeStyleTabUtils.init();
TreeStyleTabBase.init();

View File

@ -71,8 +71,8 @@ function TreeStyleTabWindow(aWindow)
TreeStyleTabWindow.prototype = {
utils : TreeStyleTabUtils,
__proto__ : TreeStyleTabUtils,
utils : TreeStyleTabBase,
__proto__ : TreeStyleTabBase,
window : null,
document : null,