| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007 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 * @constructor | 30 * @constructor |
| 31 * @extends {WebInspector.View} | 31 * @extends {WebInspector.View} |
| 32 */ | 32 */ |
| 33 WebInspector.SidebarPane = function(title) | 33 WebInspector.SidebarPane = function(title) |
| 34 { | 34 { |
| 35 WebInspector.View.call(this); | 35 WebInspector.View.call(this); |
| 36 this.setMinimumSize(new Size(25, 0)); |
| 36 this.element.className = "sidebar-pane"; // Override | 37 this.element.className = "sidebar-pane"; // Override |
| 37 | 38 |
| 38 this.titleElement = document.createElement("div"); | 39 this.titleElement = document.createElement("div"); |
| 39 this.titleElement.className = "sidebar-pane-toolbar"; | 40 this.titleElement.className = "sidebar-pane-toolbar"; |
| 40 | 41 |
| 41 this.bodyElement = this.element.createChild("div", "body"); | 42 this.bodyElement = this.element.createChild("div", "body"); |
| 42 | 43 |
| 43 this._title = title; | 44 this._title = title; |
| 44 | 45 |
| 45 this._expandCallback = null; | 46 this._expandCallback = null; |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 } | 154 } |
| 154 } | 155 } |
| 155 | 156 |
| 156 /** | 157 /** |
| 157 * @constructor | 158 * @constructor |
| 158 * @extends {WebInspector.View} | 159 * @extends {WebInspector.View} |
| 159 */ | 160 */ |
| 160 WebInspector.SidebarPaneStack = function() | 161 WebInspector.SidebarPaneStack = function() |
| 161 { | 162 { |
| 162 WebInspector.View.call(this); | 163 WebInspector.View.call(this); |
| 164 this.setMinimumSize(new Size(25, 0)); |
| 163 this.element.className = "sidebar-pane-stack"; // Override | 165 this.element.className = "sidebar-pane-stack"; // Override |
| 164 this.registerRequiredCSS("sidebarPane.css"); | 166 this.registerRequiredCSS("sidebarPane.css"); |
| 165 } | 167 } |
| 166 | 168 |
| 167 WebInspector.SidebarPaneStack.prototype = { | 169 WebInspector.SidebarPaneStack.prototype = { |
| 168 /** | 170 /** |
| 169 * @param {!WebInspector.SidebarPane} pane | 171 * @param {!WebInspector.SidebarPane} pane |
| 170 */ | 172 */ |
| 171 addPane: function(pane) | 173 addPane: function(pane) |
| 172 { | 174 { |
| (...skipping 23 matching lines...) Expand all Loading... |
| 196 { | 198 { |
| 197 var title = pane.title(); | 199 var title = pane.title(); |
| 198 this.appendTab(title, title, pane); | 200 this.appendTab(title, title, pane); |
| 199 pane.element.appendChild(pane.titleElement); | 201 pane.element.appendChild(pane.titleElement); |
| 200 pane.setExpandCallback(this.selectTab.bind(this, title)); | 202 pane.setExpandCallback(this.selectTab.bind(this, title)); |
| 201 | 203 |
| 202 }, | 204 }, |
| 203 | 205 |
| 204 __proto__: WebInspector.TabbedPane.prototype | 206 __proto__: WebInspector.TabbedPane.prototype |
| 205 } | 207 } |
| OLD | NEW |