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

Side by Side Diff: Source/devtools/front_end/ui/Panel.js

Issue 268293003: DevTools: Get rid of WebInspector.panels (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 6 years, 7 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/ui/InspectorView.js ('k') | no next file » | 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 * 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 15 matching lines...) Expand all
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */ 27 */
28 28
29 /** 29 /**
30 * @extends {WebInspector.VBox} 30 * @extends {WebInspector.VBox}
31 * @constructor 31 * @constructor
32 */ 32 */
33 WebInspector.Panel = function(name) 33 WebInspector.Panel = function(name)
34 { 34 {
35 WebInspector.VBox.call(this); 35 WebInspector.VBox.call(this);
36 WebInspector.panels[name] = this;
37 36
38 this.element.classList.add("panel"); 37 this.element.classList.add("panel");
39 this.element.classList.add(name); 38 this.element.classList.add(name);
40 this._panelName = name; 39 this._panelName = name;
41 40
42 this._shortcuts = /** !Object.<number, function(Event=):boolean> */ ({}); 41 this._shortcuts = /** !Object.<number, function(Event=):boolean> */ ({});
43 } 42 }
44 43
45 // Should by in sync with style declarations. 44 // Should by in sync with style declarations.
46 WebInspector.Panel.counterRightMargin = 25; 45 WebInspector.Panel.counterRightMargin = 25;
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 }, 242 },
244 243
245 /** 244 /**
246 * @return {!WebInspector.Panel} 245 * @return {!WebInspector.Panel}
247 */ 246 */
248 panel: function() 247 panel: function()
249 { 248 {
250 return /** @type {!WebInspector.Panel} */ (this._extension.instance()); 249 return /** @type {!WebInspector.Panel} */ (this._extension.instance());
251 } 250 }
252 } 251 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/ui/InspectorView.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698