Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2014 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 * @constructor | 6 * @constructor |
| 7 * @extends {WebInspector.VBox} | 7 * @extends {WebInspector.VBox} |
| 8 */ | 8 */ |
| 9 WebInspector.ElementsSidebarPane = function() | 9 WebInspector.ElementsSidebarPane = function() |
| 10 { | 10 { |
| 11 WebInspector.VBox.call(this); | 11 WebInspector.VBox.call(this); |
| 12 this.element.classList.add("flex-none"); | 12 this.element.classList.add("flex-none"); |
| 13 this._computedStyleModel = new WebInspector.ComputedStyleModel(); | 13 this._computedStyleModel = new WebInspector.ComputedStyleModel(); |
| 14 this._computedStyleModel.addEventListener(WebInspector.ComputedStyleModel.Ev ents.ComputedStyleChanged, this.onCSSModelChanged, this); | 14 this._computedStyleModel.addEventListener(WebInspector.ComputedStyleModel.Ev ents.ComputedStyleChanged, this.onCSSModelChanged, this); |
| 15 | 15 |
| 16 this._updateThrottler = new WebInspector.Throttler(100); | 16 this._updateThrottler = new WebInspector.Throttler(100); |
| 17 this._updateWhenVisible = false; | 17 this._updateWhenVisible = false; |
| 18 } | 18 } |
| 19 | 19 |
| 20 WebInspector.ElementsSidebarPane.prototype = { | 20 WebInspector.ElementsSidebarPane.prototype = { |
| 21 | |
|
dgozman
2016/08/19 20:23:37
stray blank line
eostroukhov
2016/08/20 01:22:30
Done.
| |
| 21 /** | 22 /** |
| 22 * @return {?WebInspector.DOMNode} | 23 * @return {?WebInspector.DOMNode} |
| 23 */ | 24 */ |
| 24 node: function() | 25 node: function() |
| 25 { | 26 { |
| 26 return this._computedStyleModel.node(); | 27 return this._computedStyleModel.node(); |
| 27 }, | 28 }, |
| 28 | 29 |
| 29 /** | 30 /** |
| 30 * @return {?WebInspector.CSSModel} | 31 * @return {?WebInspector.CSSModel} |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 67 this.update(); | 68 this.update(); |
| 68 }, | 69 }, |
| 69 | 70 |
| 70 /** | 71 /** |
| 71 * @param {!WebInspector.Event} event | 72 * @param {!WebInspector.Event} event |
| 72 */ | 73 */ |
| 73 onCSSModelChanged: function(event) { }, | 74 onCSSModelChanged: function(event) { }, |
| 74 | 75 |
| 75 __proto__: WebInspector.VBox.prototype | 76 __proto__: WebInspector.VBox.prototype |
| 76 } | 77 } |
| OLD | NEW |