| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2  * Copyright (C) 2012 Google Inc. All rights reserved. | 2  * Copyright (C) 2012 Google Inc. All rights reserved. | 
| 3  * | 3  * | 
| 4  * Redistribution and use in source and binary forms, with or without | 4  * Redistribution and use in source and binary forms, with or without | 
| 5  * modification, are permitted provided that the following conditions are | 5  * modification, are permitted provided that the following conditions are | 
| 6  * met: | 6  * met: | 
| 7  * | 7  * | 
| 8  * 1. Redistributions of source code must retain the above copyright | 8  * 1. Redistributions of source code must retain the above copyright | 
| 9  * notice, this list of conditions and the following disclaimer. | 9  * notice, this list of conditions and the following disclaimer. | 
| 10  * | 10  * | 
| (...skipping 779 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 790 | 790 | 
| 791     _restoreSidebarSizeFromSettings: function() | 791     _restoreSidebarSizeFromSettings: function() | 
| 792     { | 792     { | 
| 793         var settingForOrientation = this._settingForOrientation(); | 793         var settingForOrientation = this._settingForOrientation(); | 
| 794         this._savedSidebarSizeDIP = settingForOrientation ? settingForOrientatio
     n.size : 0; | 794         this._savedSidebarSizeDIP = settingForOrientation ? settingForOrientatio
     n.size : 0; | 
| 795     }, | 795     }, | 
| 796 | 796 | 
| 797     _restoreAndApplyShowModeFromSettings: function() | 797     _restoreAndApplyShowModeFromSettings: function() | 
| 798     { | 798     { | 
| 799         var orientationState = this._settingForOrientation(); | 799         var orientationState = this._settingForOrientation(); | 
| 800         this._savedShowMode = orientationState && orientationState.showMode ? or
     ientationState.showMode : this._showMode; | 800         this._savedShowMode = orientationState && orientationState.showMode ? or
     ientationState.showMode : WebInspector.SplitView.ShowMode.Both; | 
| 801         this._showMode = this._savedShowMode; | 801         this._showMode = this._savedShowMode; | 
| 802 | 802 | 
| 803         switch (this._savedShowMode) { | 803         switch (this._savedShowMode) { | 
| 804         case WebInspector.SplitView.ShowMode.Both: | 804         case WebInspector.SplitView.ShowMode.Both: | 
| 805             this.showBoth(); | 805             this.showBoth(); | 
| 806             break; | 806             break; | 
| 807         case WebInspector.SplitView.ShowMode.OnlyMain: | 807         case WebInspector.SplitView.ShowMode.OnlyMain: | 
| 808             this.hideSidebar(); | 808             this.hideSidebar(); | 
| 809             break; | 809             break; | 
| 810         case WebInspector.SplitView.ShowMode.OnlySidebar: | 810         case WebInspector.SplitView.ShowMode.OnlySidebar: | 
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 890         this._showHideSidebarButton.classList.toggle("toggled-hide", !sidebarHid
     den); | 890         this._showHideSidebarButton.classList.toggle("toggled-hide", !sidebarHid
     den); | 
| 891         this._showHideSidebarButton.classList.toggle("top-sidebar-show-hide-butt
     on", !this.isVertical() && !this.isSidebarSecond()); | 891         this._showHideSidebarButton.classList.toggle("top-sidebar-show-hide-butt
     on", !this.isVertical() && !this.isSidebarSecond()); | 
| 892         this._showHideSidebarButton.classList.toggle("right-sidebar-show-hide-bu
     tton", this.isVertical() && this.isSidebarSecond()); | 892         this._showHideSidebarButton.classList.toggle("right-sidebar-show-hide-bu
     tton", this.isVertical() && this.isSidebarSecond()); | 
| 893         this._showHideSidebarButton.classList.toggle("bottom-sidebar-show-hide-b
     utton", !this.isVertical() && this.isSidebarSecond()); | 893         this._showHideSidebarButton.classList.toggle("bottom-sidebar-show-hide-b
     utton", !this.isVertical() && this.isSidebarSecond()); | 
| 894         this._showHideSidebarButton.classList.toggle("left-sidebar-show-hide-but
     ton", this.isVertical() && !this.isSidebarSecond()); | 894         this._showHideSidebarButton.classList.toggle("left-sidebar-show-hide-but
     ton", this.isVertical() && !this.isSidebarSecond()); | 
| 895         this._showHideSidebarButton.title = sidebarHidden ? WebInspector.UIStrin
     g("Show %s", this._showHideSidebarButtonTitle) : WebInspector.UIString("Hide %s"
     , this._showHideSidebarButtonTitle); | 895         this._showHideSidebarButton.title = sidebarHidden ? WebInspector.UIStrin
     g("Show %s", this._showHideSidebarButtonTitle) : WebInspector.UIString("Hide %s"
     , this._showHideSidebarButtonTitle); | 
| 896     }, | 896     }, | 
| 897 | 897 | 
| 898     __proto__: WebInspector.View.prototype | 898     __proto__: WebInspector.View.prototype | 
| 899 } | 899 } | 
| OLD | NEW | 
|---|