Firefox 3のフルスクリーンモードで、ツールバーを自動で隠さない設定のときはタブバーを自動で隠さないようにした(フルスクリーンモードで常にタブバーが自動で隠れるようになってしまっていたのを修正)

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@4886 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2009-08-10 02:15:10 +00:00
parent f47ffaccc0
commit 3accf40ac8

View File

@ -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');