Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(55)

Side by Side Diff: Source/devtools/front_end/SplitView.js

Issue 182113004: DevTools: Get rid of Element.prototype.enableStyleClass (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebaselined Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/devtools/front_end/SourcesPanel.js ('k') | Source/devtools/front_end/StatusBarButton.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/SourcesPanel.js ('k') | Source/devtools/front_end/StatusBarButton.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698