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 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
335 this._updateLayout(animate); | 335 this._updateLayout(animate); |
336 this._updateShowMode(WebInspector.SplitView.ShowMode.Both); | 336 this._updateShowMode(WebInspector.SplitView.ShowMode.Both); |
337 }, | 337 }, |
338 | 338 |
339 /** | 339 /** |
340 * @param {boolean} resizable | 340 * @param {boolean} resizable |
341 */ | 341 */ |
342 setResizable: function(resizable) | 342 setResizable: function(resizable) |
343 { | 343 { |
344 this._resizable = resizable; | 344 this._resizable = resizable; |
345 this._resizerElement.enableStyleClass("hidden", !resizable); | 345 this._resizerElement.classList.toggle("hidden", !resizable); |
346 }, | 346 }, |
347 | 347 |
348 /** | 348 /** |
349 * @param {number} size | 349 * @param {number} size |
350 */ | 350 */ |
351 setSidebarSize: function(size) | 351 setSidebarSize: function(size) |
352 { | 352 { |
353 this._innerSetSidebarSize(size); | 353 this._innerSetSidebarSize(size); |
354 this._saveSetting(); | 354 this._saveSetting(); |
355 }, | 355 }, |
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
829 _updateShowHideSidebarButton: function() | 829 _updateShowHideSidebarButton: function() |
830 { | 830 { |
831 if (!this._showHideSidebarButton) | 831 if (!this._showHideSidebarButton) |
832 return; | 832 return; |
833 this._showHideSidebarButton.state = this._isShowingOne === this.isSideba
rSecond() ? "left" : "right"; | 833 this._showHideSidebarButton.state = this._isShowingOne === this.isSideba
rSecond() ? "left" : "right"; |
834 this._showHideSidebarButton.title = this._isShowingOne ? WebInspector.UI
String("Show %s", this._showHideSidebarButtonTitle) : WebInspector.UIString("Hid
e %s", this._showHideSidebarButtonTitle); | 834 this._showHideSidebarButton.title = this._isShowingOne ? WebInspector.UI
String("Show %s", this._showHideSidebarButtonTitle) : WebInspector.UIString("Hid
e %s", this._showHideSidebarButtonTitle); |
835 }, | 835 }, |
836 | 836 |
837 __proto__: WebInspector.View.prototype | 837 __proto__: WebInspector.View.prototype |
838 } | 838 } |
OLD | NEW |