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 18 matching lines...) Expand all Loading... |
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(25, 0); | 36 this.setMinimumSize(25, 0); |
37 this.element.className = "sidebar-pane"; // Override | 37 this.element.className = "sidebar-pane"; // Override |
38 | 38 |
39 this.titleElement = document.createElementWithClass("div", "sidebar-pane-too
lbar"); | 39 this.titleElement = createElementWithClass("div", "sidebar-pane-toolbar"); |
40 this.bodyElement = this.element.createChild("div", "body"); | 40 this.bodyElement = this.element.createChild("div", "body"); |
41 this._title = title; | 41 this._title = title; |
42 this._expandCallback = null; | 42 this._expandCallback = null; |
43 } | 43 } |
44 | 44 |
45 WebInspector.SidebarPane.EventTypes = { | 45 WebInspector.SidebarPane.EventTypes = { |
46 wasShown: "wasShown" | 46 wasShown: "wasShown" |
47 } | 47 } |
48 | 48 |
49 WebInspector.SidebarPane.prototype = { | 49 WebInspector.SidebarPane.prototype = { |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 { | 208 { |
209 var title = pane.title(); | 209 var title = pane.title(); |
210 this.appendTab(title, title, pane); | 210 this.appendTab(title, title, pane); |
211 pane.element.appendChild(pane.titleElement); | 211 pane.element.appendChild(pane.titleElement); |
212 pane.setExpandCallback(this.selectTab.bind(this, title)); | 212 pane.setExpandCallback(this.selectTab.bind(this, title)); |
213 | 213 |
214 }, | 214 }, |
215 | 215 |
216 __proto__: WebInspector.TabbedPane.prototype | 216 __proto__: WebInspector.TabbedPane.prototype |
217 } | 217 } |
OLD | NEW |