| 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 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 /** | 283 /** |
| 284 * @param {boolean} minimized | 284 * @param {boolean} minimized |
| 285 */ | 285 */ |
| 286 setSidebarMinimized: function(minimized) | 286 setSidebarMinimized: function(minimized) |
| 287 { | 287 { |
| 288 this._sidebarMinimized = minimized; | 288 this._sidebarMinimized = minimized; |
| 289 this.invalidateConstraints(); | 289 this.invalidateConstraints(); |
| 290 }, | 290 }, |
| 291 | 291 |
| 292 /** | 292 /** |
| 293 * @return {boolean} |
| 294 */ |
| 295 isSidebarMinimized: function() |
| 296 { |
| 297 return this._sidebarMinimized; |
| 298 }, |
| 299 |
| 300 /** |
| 293 * @param {!WebInspector.Widget} sideToShow | 301 * @param {!WebInspector.Widget} sideToShow |
| 294 * @param {!WebInspector.Widget} sideToHide | 302 * @param {!WebInspector.Widget} sideToHide |
| 295 * @param {!Element} shadowToShow | 303 * @param {!Element} shadowToShow |
| 296 * @param {!Element} shadowToHide | 304 * @param {!Element} shadowToHide |
| 297 * @param {boolean=} animate | 305 * @param {boolean=} animate |
| 298 */ | 306 */ |
| 299 _showOnly: function(sideToShow, sideToHide, shadowToShow, shadowToHide, anim
ate) | 307 _showOnly: function(sideToShow, sideToHide, shadowToShow, shadowToHide, anim
ate) |
| 300 { | 308 { |
| 301 this._cancelAnimation(); | 309 this._cancelAnimation(); |
| 302 | 310 |
| (...skipping 602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 905 this._showHideSidebarButton.classList.toggle("toggled-hide", !sidebarHid
den); | 913 this._showHideSidebarButton.classList.toggle("toggled-hide", !sidebarHid
den); |
| 906 this._showHideSidebarButton.classList.toggle("top-sidebar-show-hide-butt
on", !this.isVertical() && !this.isSidebarSecond()); | 914 this._showHideSidebarButton.classList.toggle("top-sidebar-show-hide-butt
on", !this.isVertical() && !this.isSidebarSecond()); |
| 907 this._showHideSidebarButton.classList.toggle("right-sidebar-show-hide-bu
tton", this.isVertical() && this.isSidebarSecond()); | 915 this._showHideSidebarButton.classList.toggle("right-sidebar-show-hide-bu
tton", this.isVertical() && this.isSidebarSecond()); |
| 908 this._showHideSidebarButton.classList.toggle("bottom-sidebar-show-hide-b
utton", !this.isVertical() && this.isSidebarSecond()); | 916 this._showHideSidebarButton.classList.toggle("bottom-sidebar-show-hide-b
utton", !this.isVertical() && this.isSidebarSecond()); |
| 909 this._showHideSidebarButton.classList.toggle("left-sidebar-show-hide-but
ton", this.isVertical() && !this.isSidebarSecond()); | 917 this._showHideSidebarButton.classList.toggle("left-sidebar-show-hide-but
ton", this.isVertical() && !this.isSidebarSecond()); |
| 910 this._showHideSidebarButton.title = sidebarHidden ? WebInspector.UIStrin
g("Show %s", this._showHideSidebarButtonTitle) : WebInspector.UIString("Hide %s"
, this._showHideSidebarButtonTitle); | 918 this._showHideSidebarButton.title = sidebarHidden ? WebInspector.UIStrin
g("Show %s", this._showHideSidebarButtonTitle) : WebInspector.UIString("Hide %s"
, this._showHideSidebarButtonTitle); |
| 911 }, | 919 }, |
| 912 | 920 |
| 913 __proto__: WebInspector.Widget.prototype | 921 __proto__: WebInspector.Widget.prototype |
| 914 } | 922 } |
| OLD | NEW |