From 3accf40ac84d1712cc91a033e2b108e0784c7e9c Mon Sep 17 00:00:00 2001 From: piro Date: Mon, 10 Aug 2009 02:15:10 +0000 Subject: [PATCH] =?UTF-8?q?Firefox=203=E3=81=AE=E3=83=95=E3=83=AB=E3=82=B9?= =?UTF-8?q?=E3=82=AF=E3=83=AA=E3=83=BC=E3=83=B3=E3=83=A2=E3=83=BC=E3=83=89?= =?UTF-8?q?=E3=81=A7=E3=80=81=E3=83=84=E3=83=BC=E3=83=AB=E3=83=90=E3=83=BC?= =?UTF-8?q?=E3=82=92=E8=87=AA=E5=8B=95=E3=81=A7=E9=9A=A0=E3=81=95=E3=81=AA?= =?UTF-8?q?=E3=81=84=E8=A8=AD=E5=AE=9A=E3=81=AE=E3=81=A8=E3=81=8D=E3=81=AF?= =?UTF-8?q?=E3=82=BF=E3=83=96=E3=83=90=E3=83=BC=E3=82=92=E8=87=AA=E5=8B=95?= =?UTF-8?q?=E3=81=A7=E9=9A=A0=E3=81=95=E3=81=AA=E3=81=84=E3=82=88=E3=81=86?= =?UTF-8?q?=E3=81=AB=E3=81=97=E3=81=9F=EF=BC=88=E3=83=95=E3=83=AB=E3=82=B9?= =?UTF-8?q?=E3=82=AF=E3=83=AA=E3=83=BC=E3=83=B3=E3=83=A2=E3=83=BC=E3=83=89?= =?UTF-8?q?=E3=81=A7=E5=B8=B8=E3=81=AB=E3=82=BF=E3=83=96=E3=83=90=E3=83=BC?= =?UTF-8?q?=E3=81=8C=E8=87=AA=E5=8B=95=E3=81=A7=E9=9A=A0=E3=82=8C=E3=82=8B?= =?UTF-8?q?=E3=82=88=E3=81=86=E3=81=AB=E3=81=AA=E3=81=A3=E3=81=A6=E3=81=97?= =?UTF-8?q?=E3=81=BE=E3=81=A3=E3=81=A6=E3=81=84=E3=81=9F=E3=81=AE=E3=82=92?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@4886 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/treestyletabbrowser.js | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/content/treestyletab/treestyletabbrowser.js b/content/treestyletab/treestyletabbrowser.js index 2b35079e..dc8c7e23 100644 --- a/content/treestyletab/treestyletabbrowser.js +++ b/content/treestyletab/treestyletabbrowser.js @@ -1051,7 +1051,10 @@ TreeStyleTabBrowser.prototype = { /* nsIObserver */ - domain : 'extensions.treestyletab', + domains : [ + 'extensions.treestyletab', + 'browser.fullscreen.autohide' + ], observe : function(aSubject, aTopic, aData) { @@ -1239,6 +1242,14 @@ TreeStyleTabBrowser.prototype = { toggler.removeAttribute('collapsed'); break; + case 'browser.fullscreen.autohide': + if (!window.fullScreen) return; + this.endAutoHide(); + this.autoHideMode = value ? this.getTreePref('tabbar.autoHide.mode.fullscreen') : this.kAUTOHIDE_MODE_DISABLED ; + if (this.autoHideMode != this.kAUTOHIDE_MODE_DISABLED) + this.startAutoHide(); + break; + default: break; } @@ -4096,7 +4107,9 @@ TreeStyleTabBrowser.prototype = { { this.autoHideMode = this.getTreePref('tabbar.autoHide.mode'); this.endAutoHide(); - this.autoHideMode = this.getTreePref('tabbar.autoHide.mode.fullscreen'); + this.autoHideMode = this.getPref('browser.fullscreen.autohide') ? + this.getTreePref('tabbar.autoHide.mode.fullscreen') : + this.kAUTOHIDE_MODE_DISABLED ; if (this.autoHideMode != this.kAUTOHIDE_MODE_DISABLED) { this.startAutoHide(); this.mTabBrowser.mStrip.removeAttribute('moz-collapsed');