| OLD | NEW |
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * @interface | 6 * @interface |
| 7 */ | 7 */ |
| 8 WebInspector.ElementsSidebarView = function() | 8 WebInspector.ElementsSidebarView = function() |
| 9 { | 9 { |
| 10 } | 10 } |
| 11 | 11 |
| 12 WebInspector.ElementsSidebarView.prototype = { | 12 WebInspector.ElementsSidebarView.prototype = { |
| 13 // FIXME: nodeUpdates should also be here. | 13 // FIXME: nodeUpdates should also be here. |
| 14 /** | 14 /** |
| 15 * @param {?WebInspector.DOMNode} node | 15 * @param {?WebInspector.DOMNode} node |
| 16 */ | 16 */ |
| 17 setNode: function(node) { }, | 17 setNode: function(node) { }, |
| 18 | 18 |
| 19 /** | 19 /** |
| 20 * @return {!WebInspector.View} | 20 * @return {!WebInspector.Widget} |
| 21 */ | 21 */ |
| 22 view: function() { } | 22 view: function() { } |
| 23 } | 23 } |
| 24 | 24 |
| 25 /** | 25 /** |
| 26 * @constructor | 26 * @constructor |
| 27 * @extends {WebInspector.SidebarPane} | 27 * @extends {WebInspector.SidebarPane} |
| 28 * @param {string} title | 28 * @param {string} title |
| 29 * @param {!WebInspector.ElementsSidebarView} elementsSidebarView | 29 * @param {!WebInspector.ElementsSidebarView} elementsSidebarView |
| 30 */ | 30 */ |
| 31 WebInspector.ElementsSidebarViewWrapperPane = function(title, elementsSidebarVie
w) | 31 WebInspector.ElementsSidebarViewWrapperPane = function(title, elementsSidebarVie
w) |
| 32 { | 32 { |
| 33 WebInspector.SidebarPane.call(this, title); | 33 WebInspector.SidebarPane.call(this, title); |
| 34 this._elementsSidebarView = elementsSidebarView; | 34 this._elementsSidebarView = elementsSidebarView; |
| 35 this._elementsSidebarView.view().show(this.element); | 35 this._elementsSidebarView.view().show(this.element); |
| 36 } | 36 } |
| 37 | 37 |
| 38 WebInspector.ElementsSidebarViewWrapperPane.prototype = { | 38 WebInspector.ElementsSidebarViewWrapperPane.prototype = { |
| 39 /** | 39 /** |
| 40 * @param {?WebInspector.DOMNode} node | 40 * @param {?WebInspector.DOMNode} node |
| 41 */ | 41 */ |
| 42 setNode: function(node) | 42 setNode: function(node) |
| 43 { | 43 { |
| 44 this._elementsSidebarView.setNode(node); | 44 this._elementsSidebarView.setNode(node); |
| 45 }, | 45 }, |
| 46 | 46 |
| 47 __proto__: WebInspector.SidebarPane.prototype | 47 __proto__: WebInspector.SidebarPane.prototype |
| 48 } | 48 } |
| OLD | NEW |