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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 { | 133 { |
134 for (var i = 0; i < keys.length; ++i) | 134 for (var i = 0; i < keys.length; ++i) |
135 this._shortcuts[keys[i].key] = handler; | 135 this._shortcuts[keys[i].key] = handler; |
136 }, | 136 }, |
137 | 137 |
138 __proto__: WebInspector.VBox.prototype | 138 __proto__: WebInspector.VBox.prototype |
139 } | 139 } |
140 | 140 |
141 /** | 141 /** |
142 * @extends {WebInspector.Panel} | 142 * @extends {WebInspector.Panel} |
| 143 * @param {string} name |
143 * @param {number=} defaultWidth | 144 * @param {number=} defaultWidth |
144 * @constructor | 145 * @constructor |
145 */ | 146 */ |
146 WebInspector.PanelWithSidebarTree = function(name, defaultWidth) | 147 WebInspector.PanelWithSidebarTree = function(name, defaultWidth) |
147 { | 148 { |
148 WebInspector.Panel.call(this, name); | 149 WebInspector.Panel.call(this, name); |
149 | 150 |
150 this._panelSplitView = new WebInspector.SplitView(true, false, this._panelNa
me + "PanelSplitViewState", defaultWidth || 200); | 151 this._panelSplitView = new WebInspector.SplitView(true, false, this._panelNa
me + "PanelSplitViewState", defaultWidth || 200); |
151 this._panelSplitView.show(this.element); | 152 this._panelSplitView.show(this.element); |
152 | 153 |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 }, | 243 }, |
243 | 244 |
244 /** | 245 /** |
245 * @return {!WebInspector.Panel} | 246 * @return {!WebInspector.Panel} |
246 */ | 247 */ |
247 panel: function() | 248 panel: function() |
248 { | 249 { |
249 return /** @type {!WebInspector.Panel} */ (this._extension.instance()); | 250 return /** @type {!WebInspector.Panel} */ (this._extension.instance()); |
250 } | 251 } |
251 } | 252 } |
OLD | NEW |