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 2924873004: DevTools: migrate MetricsSidebarPane to shadow (Closed)
Patch Set: rebase 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 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
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 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698