| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |