Output more debug log for full tooltip
This commit is contained in:
parent
423eab1499
commit
961477b0ca
@ -738,5 +738,6 @@ pref("extensions.treestyletab.debug.browser", false);
|
|||||||
pref("extensions.treestyletab.debug.browserUIShowHideObserver", false);
|
pref("extensions.treestyletab.debug.browserUIShowHideObserver", false);
|
||||||
pref("extensions.treestyletab.debug.contentBridge", false);
|
pref("extensions.treestyletab.debug.contentBridge", false);
|
||||||
pref("extensions.treestyletab.debug.fullscreenObserver", false);
|
pref("extensions.treestyletab.debug.fullscreenObserver", false);
|
||||||
|
pref("extensions.treestyletab.debug.fullTooltip", false);
|
||||||
pref("extensions.treestyletab.debug.tabbarDNDObserver", false);
|
pref("extensions.treestyletab.debug.tabbarDNDObserver", false);
|
||||||
pref("extensions.treestyletab.debug.window", false);
|
pref("extensions.treestyletab.debug.window", false);
|
||||||
|
@ -50,6 +50,13 @@ XPCOMUtils.defineLazyModuleGetter(this, 'utils', 'resource://treestyletab-module
|
|||||||
XPCOMUtils.defineLazyServiceGetter(this, 'ScreenManager',
|
XPCOMUtils.defineLazyServiceGetter(this, 'ScreenManager',
|
||||||
'@mozilla.org/gfx/screenmanager;1', 'nsIScreenManager');
|
'@mozilla.org/gfx/screenmanager;1', 'nsIScreenManager');
|
||||||
|
|
||||||
|
function log(...aArgs) {
|
||||||
|
utils.log.apply(utils, ['fullTooltip'].concat(aArgs));
|
||||||
|
}
|
||||||
|
function logWithStackTrace(...aArgs) {
|
||||||
|
utils.logWithStackTrace.apply(utils, ['fullTooltip'].concat(aArgs));
|
||||||
|
}
|
||||||
|
|
||||||
function FullTooltipManager(aOwner)
|
function FullTooltipManager(aOwner)
|
||||||
{
|
{
|
||||||
this.init(aOwner);
|
this.init(aOwner);
|
||||||
@ -210,6 +217,7 @@ FullTooltipManager.prototype = inherit(TreeStyleTabBase, {
|
|||||||
|
|
||||||
onShown : function FTM_onShown(aEvent)
|
onShown : function FTM_onShown(aEvent)
|
||||||
{
|
{
|
||||||
|
log('onShown');
|
||||||
this.startListenTooltipEvents();
|
this.startListenTooltipEvents();
|
||||||
|
|
||||||
if (utils.getTreePref('tooltip.columnize')) {
|
if (utils.getTreePref('tooltip.columnize')) {
|
||||||
@ -228,6 +236,7 @@ FullTooltipManager.prototype = inherit(TreeStyleTabBase, {
|
|||||||
},
|
},
|
||||||
resizeTooltip : function FTM_resizeTooltip()
|
resizeTooltip : function FTM_resizeTooltip()
|
||||||
{
|
{
|
||||||
|
log('resizeTooltip');
|
||||||
var tooltip = this.tabFullTooltip;
|
var tooltip = this.tabFullTooltip;
|
||||||
tooltip.setAttribute('popup-shown', true);
|
tooltip.setAttribute('popup-shown', true);
|
||||||
|
|
||||||
@ -308,6 +317,7 @@ FullTooltipManager.prototype = inherit(TreeStyleTabBase, {
|
|||||||
|
|
||||||
handleDefaultTooltip : function FTM_handleDefaultTooltip(aEvent)
|
handleDefaultTooltip : function FTM_handleDefaultTooltip(aEvent)
|
||||||
{
|
{
|
||||||
|
log('handleDefaultTooltip');
|
||||||
var tab = this.getTabFromChild(this.document.tooltipNode);
|
var tab = this.getTabFromChild(this.document.tooltipNode);
|
||||||
if (!tab || tab.localName != 'tab')
|
if (!tab || tab.localName != 'tab')
|
||||||
return;
|
return;
|
||||||
@ -410,6 +420,7 @@ FullTooltipManager.prototype = inherit(TreeStyleTabBase, {
|
|||||||
|
|
||||||
setup : function FTM_setup(aBaseTooltip, aTab, aExtraLabels)
|
setup : function FTM_setup(aBaseTooltip, aTab, aExtraLabels)
|
||||||
{
|
{
|
||||||
|
log('setup');
|
||||||
this.cancel();
|
this.cancel();
|
||||||
|
|
||||||
var delay = utils.getTreePref('tooltip.fullTooltipDelay');
|
var delay = utils.getTreePref('tooltip.fullTooltipDelay');
|
||||||
@ -474,9 +485,9 @@ FullTooltipManager.prototype = inherit(TreeStyleTabBase, {
|
|||||||
|
|
||||||
fill : function FTM_fill(aTab, aExtraLabels)
|
fill : function FTM_fill(aTab, aExtraLabels)
|
||||||
{
|
{
|
||||||
|
log('fill');
|
||||||
this.clear();
|
this.clear();
|
||||||
|
|
||||||
var tree = PseudoTreeBuilder.build(aTab);
|
|
||||||
var root = this.document.createElement('arrowscrollbox');
|
var root = this.document.createElement('arrowscrollbox');
|
||||||
var orient = utils.getTreePref('tooltip.columnize') ? 'horizontal' : 'vertical' ;
|
var orient = utils.getTreePref('tooltip.columnize') ? 'horizontal' : 'vertical' ;
|
||||||
root.setAttribute('orient', orient);
|
root.setAttribute('orient', orient);
|
||||||
@ -498,6 +509,7 @@ FullTooltipManager.prototype = inherit(TreeStyleTabBase, {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var tree = PseudoTreeBuilder.build(aTab);
|
||||||
container.insertBefore(tree, container.firstChild && container.firstChild.nextSibling);
|
container.insertBefore(tree, container.firstChild && container.firstChild.nextSibling);
|
||||||
root.appendChild(container);
|
root.appendChild(container);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user