| 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 * @unrestricted | 5 * @unrestricted |
| 6 */ | 6 */ |
| 7 Elements.ElementsSidebarPane = class extends UI.VBox { | 7 Elements.ElementsSidebarPane = class extends UI.VBox { |
| 8 constructor() { | 8 /** |
| 9 super(); | 9 * @param {boolean=} isWebComponent |
| 10 */ |
| 11 constructor(isWebComponent) { |
| 12 super(isWebComponent); |
| 10 this.element.classList.add('flex-none'); | 13 this.element.classList.add('flex-none'); |
| 11 this._computedStyleModel = new Elements.ComputedStyleModel(); | 14 this._computedStyleModel = new Elements.ComputedStyleModel(); |
| 12 this._computedStyleModel.addEventListener( | 15 this._computedStyleModel.addEventListener( |
| 13 Elements.ComputedStyleModel.Events.ComputedStyleChanged, this.onCSSModel
Changed, this); | 16 Elements.ComputedStyleModel.Events.ComputedStyleChanged, this.onCSSModel
Changed, this); |
| 14 | 17 |
| 15 this._updateThrottler = new Common.Throttler(100); | 18 this._updateThrottler = new Common.Throttler(100); |
| 16 this._updateWhenVisible = false; | 19 this._updateWhenVisible = false; |
| 17 } | 20 } |
| 18 | 21 |
| 19 /** | 22 /** |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 if (this._updateWhenVisible) | 64 if (this._updateWhenVisible) |
| 62 this.update(); | 65 this.update(); |
| 63 } | 66 } |
| 64 | 67 |
| 65 /** | 68 /** |
| 66 * @param {!Common.Event} event | 69 * @param {!Common.Event} event |
| 67 */ | 70 */ |
| 68 onCSSModelChanged(event) { | 71 onCSSModelChanged(event) { |
| 69 } | 72 } |
| 70 }; | 73 }; |
| OLD | NEW |