| 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 /** | 142 /** |
| 143 * @extends {WebInspector.Panel} | 143 * @extends {WebInspector.Panel} |
| 144 * @param {string} name | 144 * @param {string} name |
| 145 * @param {number=} defaultWidth | 145 * @param {number=} defaultWidth |
| 146 * @constructor | 146 * @constructor |
| 147 */ | 147 */ |
| 148 WebInspector.PanelWithSidebar = function(name, defaultWidth) | 148 WebInspector.PanelWithSidebar = function(name, defaultWidth) |
| 149 { | 149 { |
| 150 WebInspector.Panel.call(this, name); | 150 WebInspector.Panel.call(this, name); |
| 151 | 151 |
| 152 this._panelSplitView = new WebInspector.SplitView(true, false, this._panelNa
me + "PanelSplitViewState", defaultWidth || 200); | 152 this._panelSplitWidget = new WebInspector.SplitWidget(true, false, this._pan
elName + "PanelSplitViewState", defaultWidth || 200); |
| 153 this._panelSplitView.show(this.element); | 153 this._panelSplitWidget.show(this.element); |
| 154 | 154 |
| 155 this._mainView = new WebInspector.VBox(); | 155 this._mainWidget = new WebInspector.VBox(); |
| 156 this._panelSplitView.setMainView(this._mainView); | 156 this._panelSplitWidget.setMainWidget(this._mainWidget); |
| 157 | 157 |
| 158 this._sidebarView = new WebInspector.VBox(); | 158 this._sidebarWidget = new WebInspector.VBox(); |
| 159 this._sidebarView.setMinimumSize(100, 25); | 159 this._sidebarWidget.setMinimumSize(100, 25); |
| 160 this._panelSplitView.setSidebarView(this._sidebarView); | 160 this._panelSplitWidget.setSidebarWidget(this._sidebarWidget); |
| 161 | 161 |
| 162 this._sidebarView.element.classList.add("sidebar"); | 162 this._sidebarWidget.element.classList.add("sidebar"); |
| 163 } | 163 } |
| 164 | 164 |
| 165 WebInspector.PanelWithSidebar.prototype = { | 165 WebInspector.PanelWithSidebar.prototype = { |
| 166 /** | 166 /** |
| 167 * @return {!Element} | 167 * @return {!Element} |
| 168 */ | 168 */ |
| 169 panelSidebarElement: function() | 169 panelSidebarElement: function() |
| 170 { | 170 { |
| 171 return this._sidebarView.element; | 171 return this._sidebarWidget.element; |
| 172 }, | 172 }, |
| 173 | 173 |
| 174 /** | 174 /** |
| 175 * @return {!Element} | 175 * @return {!Element} |
| 176 */ | 176 */ |
| 177 mainElement: function() | 177 mainElement: function() |
| 178 { | 178 { |
| 179 return this._mainView.element; | 179 return this._mainWidget.element; |
| 180 }, | 180 }, |
| 181 | 181 |
| 182 /** | 182 /** |
| 183 * @return {!WebInspector.SplitView} | 183 * @return {!WebInspector.SplitWidget} |
| 184 */ | 184 */ |
| 185 splitView: function() | 185 splitWidget: function() |
| 186 { | 186 { |
| 187 return this._panelSplitView; | 187 return this._panelSplitWidget; |
| 188 }, | 188 }, |
| 189 | 189 |
| 190 __proto__: WebInspector.Panel.prototype | 190 __proto__: WebInspector.Panel.prototype |
| 191 } | 191 } |
| 192 | 192 |
| 193 /** | 193 /** |
| 194 * @interface | 194 * @interface |
| 195 */ | 195 */ |
| 196 WebInspector.PanelDescriptor = function() | 196 WebInspector.PanelDescriptor = function() |
| 197 { | 197 { |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 /** | 270 /** |
| 271 * @param {!Object} panelFactory | 271 * @param {!Object} panelFactory |
| 272 * @return {!WebInspector.Panel} | 272 * @return {!WebInspector.Panel} |
| 273 */ | 273 */ |
| 274 function createPanel(panelFactory) | 274 function createPanel(panelFactory) |
| 275 { | 275 { |
| 276 return /** @type {!WebInspector.PanelFactory} */ (panelFactory).crea
tePanel(); | 276 return /** @type {!WebInspector.PanelFactory} */ (panelFactory).crea
tePanel(); |
| 277 } | 277 } |
| 278 } | 278 } |
| 279 } | 279 } |
| OLD | NEW |