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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 * @constructor | 150 * @constructor |
151 */ | 151 */ |
152 WebInspector.PanelWithSidebarTree = function(name, defaultWidth) | 152 WebInspector.PanelWithSidebarTree = function(name, defaultWidth) |
153 { | 153 { |
154 WebInspector.Panel.call(this, name); | 154 WebInspector.Panel.call(this, name); |
155 | 155 |
156 this._panelSplitView = new WebInspector.SplitView(true, false, this._panelNa
me + "PanelSplitViewState", defaultWidth || 200); | 156 this._panelSplitView = new WebInspector.SplitView(true, false, this._panelNa
me + "PanelSplitViewState", defaultWidth || 200); |
157 this._panelSplitView.show(this.element); | 157 this._panelSplitView.show(this.element); |
158 | 158 |
159 var sidebarView = new WebInspector.VBox(); | 159 var sidebarView = new WebInspector.VBox(); |
160 sidebarView.setMinimumSize(Preferences.minSidebarWidth, 25); | 160 sidebarView.setConstraints(Preferences.minSidebarWidth, 25); |
161 sidebarView.show(this._panelSplitView.sidebarElement()); | 161 sidebarView.show(this._panelSplitView.sidebarElement()); |
162 | 162 |
163 this._sidebarElement = sidebarView.element; | 163 this._sidebarElement = sidebarView.element; |
164 this._sidebarElement.classList.add("sidebar"); | 164 this._sidebarElement.classList.add("sidebar"); |
165 var sidebarTreeElement = this._sidebarElement.createChild("ol", "sidebar-tre
e"); | 165 var sidebarTreeElement = this._sidebarElement.createChild("ol", "sidebar-tre
e"); |
166 this.sidebarTree = new TreeOutline(sidebarTreeElement); | 166 this.sidebarTree = new TreeOutline(sidebarTreeElement); |
167 } | 167 } |
168 | 168 |
169 WebInspector.PanelWithSidebarTree.prototype = { | 169 WebInspector.PanelWithSidebarTree.prototype = { |
170 /** | 170 /** |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 }, | 248 }, |
249 | 249 |
250 /** | 250 /** |
251 * @return {!WebInspector.Panel} | 251 * @return {!WebInspector.Panel} |
252 */ | 252 */ |
253 panel: function() | 253 panel: function() |
254 { | 254 { |
255 return /** @type {!WebInspector.Panel} */ (this._extension.instance()); | 255 return /** @type {!WebInspector.Panel} */ (this._extension.instance()); |
256 } | 256 } |
257 } | 257 } |
OLD | NEW |