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

Side by Side Diff: Source/devtools/front_end/Drawer.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/DataGrid.js ('k') | Source/devtools/front_end/FilterBar.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) 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2009 Joseph Pecoraro 3 * Copyright (C) 2009 Joseph Pecoraro
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 this._drawerEditor.installedIntoDrawer(); 293 this._drawerEditor.installedIntoDrawer();
294 }, 294 },
295 295
296 /** 296 /**
297 * @param {boolean} available 297 * @param {boolean} available
298 */ 298 */
299 setDrawerEditorAvailable: function(available) 299 setDrawerEditorAvailable: function(available)
300 { 300 {
301 if (!WebInspector.experimentsSettings.showEditorInDrawer.isEnabled()) 301 if (!WebInspector.experimentsSettings.showEditorInDrawer.isEnabled())
302 available = false; 302 available = false;
303 this._toggleDrawerEditorButton.element.enableStyleClass("hidden", !avail able); 303 this._toggleDrawerEditorButton.element.classList.toggle("hidden", !avail able);
304 }, 304 },
305 305
306 showDrawerEditor: function() 306 showDrawerEditor: function()
307 { 307 {
308 if (!WebInspector.experimentsSettings.showEditorInDrawer.isEnabled()) 308 if (!WebInspector.experimentsSettings.showEditorInDrawer.isEnabled())
309 return; 309 return;
310 310
311 this._splitView.showBoth(); 311 this._splitView.showBoth();
312 this._drawerEditorSplitView.showBoth(); 312 this._drawerEditorSplitView.showBoth();
313 }, 313 },
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 } 375 }
376 376
377 WebInspector.DrawerEditor.prototype = { 377 WebInspector.DrawerEditor.prototype = {
378 /** 378 /**
379 * @return {!WebInspector.View} 379 * @return {!WebInspector.View}
380 */ 380 */
381 view: function() { }, 381 view: function() { },
382 382
383 installedIntoDrawer: function() { }, 383 installedIntoDrawer: function() { },
384 } 384 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/DataGrid.js ('k') | Source/devtools/front_end/FilterBar.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698