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