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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 | 152 |
153 /** | 153 /** |
154 * @constructor | 154 * @constructor |
155 * @extends {WebInspector.View} | 155 * @extends {WebInspector.View} |
156 */ | 156 */ |
157 WebInspector.SidebarPaneStack = function() | 157 WebInspector.SidebarPaneStack = function() |
158 { | 158 { |
159 WebInspector.View.call(this); | 159 WebInspector.View.call(this); |
160 this.setMinimumSize(25, 0); | 160 this.setMinimumSize(25, 0); |
161 this.element.className = "sidebar-pane-stack"; // Override | 161 this.element.className = "sidebar-pane-stack"; // Override |
162 this.registerRequiredCSS("sidebarPane.css"); | |
163 } | 162 } |
164 | 163 |
165 WebInspector.SidebarPaneStack.prototype = { | 164 WebInspector.SidebarPaneStack.prototype = { |
166 /** | 165 /** |
167 * @param {!WebInspector.SidebarPane} pane | 166 * @param {!WebInspector.SidebarPane} pane |
168 */ | 167 */ |
169 addPane: function(pane) | 168 addPane: function(pane) |
170 { | 169 { |
171 new WebInspector.SidebarPaneTitle(this.element, pane); | 170 new WebInspector.SidebarPaneTitle(this.element, pane); |
172 }, | 171 }, |
173 | 172 |
174 __proto__: WebInspector.View.prototype | 173 __proto__: WebInspector.View.prototype |
175 } | 174 } |
176 | 175 |
177 /** | 176 /** |
178 * @constructor | 177 * @constructor |
179 * @extends {WebInspector.TabbedPane} | 178 * @extends {WebInspector.TabbedPane} |
180 */ | 179 */ |
181 WebInspector.SidebarTabbedPane = function() | 180 WebInspector.SidebarTabbedPane = function() |
182 { | 181 { |
183 WebInspector.TabbedPane.call(this); | 182 WebInspector.TabbedPane.call(this); |
184 this.setRetainTabOrder(true); | 183 this.setRetainTabOrder(true); |
185 this.element.classList.add("sidebar-tabbed-pane"); | 184 this.element.classList.add("sidebar-tabbed-pane"); |
186 this.registerRequiredCSS("sidebarPane.css"); | |
187 } | 185 } |
188 | 186 |
189 WebInspector.SidebarTabbedPane.prototype = { | 187 WebInspector.SidebarTabbedPane.prototype = { |
190 /** | 188 /** |
191 * @param {!WebInspector.SidebarPane} pane | 189 * @param {!WebInspector.SidebarPane} pane |
192 */ | 190 */ |
193 addPane: function(pane) | 191 addPane: function(pane) |
194 { | 192 { |
195 var title = pane.title(); | 193 var title = pane.title(); |
196 this.appendTab(title, title, pane); | 194 this.appendTab(title, title, pane); |
197 pane.element.appendChild(pane.titleElement); | 195 pane.element.appendChild(pane.titleElement); |
198 pane.setExpandCallback(this.selectTab.bind(this, title)); | 196 pane.setExpandCallback(this.selectTab.bind(this, title)); |
199 | 197 |
200 }, | 198 }, |
201 | 199 |
202 __proto__: WebInspector.TabbedPane.prototype | 200 __proto__: WebInspector.TabbedPane.prototype |
203 } | 201 } |
OLD | NEW |