Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(70)

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/elements/ElementsSidebarPane.js

Issue 2927573004: DevTools: migrate StylesSidebarPane to shadow (Closed)
Patch Set: with similarity 10 Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698