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

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

Issue 2217783002: DevTools: use view locations in the elements and sources sidebars. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: for landing Created 4 years, 4 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 /** 5 /**
6 * @constructor 6 * @constructor
7 * @extends {WebInspector.View} 7 * @extends {WebInspector.SimpleView}
8 * @param {string} title 8 * @param {string} title
9 */ 9 */
10 WebInspector.ElementsSidebarPane = function(title) 10 WebInspector.ElementsSidebarPane = function(title)
11 { 11 {
12 WebInspector.View.call(this, title); 12 WebInspector.SimpleView.call(this, title);
13 this.element.classList.add("flex-none"); 13 this.element.classList.add("flex-none");
14 this._computedStyleModel = new WebInspector.ComputedStyleModel(); 14 this._computedStyleModel = new WebInspector.ComputedStyleModel();
15 this._computedStyleModel.addEventListener(WebInspector.ComputedStyleModel.Ev ents.ComputedStyleChanged, this.onCSSModelChanged, this); 15 this._computedStyleModel.addEventListener(WebInspector.ComputedStyleModel.Ev ents.ComputedStyleChanged, this.onCSSModelChanged, this);
16 16
17 this._updateThrottler = new WebInspector.Throttler(100); 17 this._updateThrottler = new WebInspector.Throttler(100);
18 this._updateWhenVisible = false; 18 this._updateWhenVisible = false;
19 } 19 }
20 20
21 WebInspector.ElementsSidebarPane.prototype = { 21 WebInspector.ElementsSidebarPane.prototype = {
22 /** 22 /**
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 * @this {WebInspector.ElementsSidebarPane} 56 * @this {WebInspector.ElementsSidebarPane}
57 */ 57 */
58 function innerUpdate() 58 function innerUpdate()
59 { 59 {
60 return this.isShowing() ? this.doUpdate() : Promise.resolve(); 60 return this.isShowing() ? this.doUpdate() : Promise.resolve();
61 } 61 }
62 }, 62 },
63 63
64 wasShown: function() 64 wasShown: function()
65 { 65 {
66 WebInspector.View.prototype.wasShown.call(this); 66 WebInspector.SimpleView.prototype.wasShown.call(this);
67 if (this._updateWhenVisible) 67 if (this._updateWhenVisible)
68 this.update(); 68 this.update();
69 }, 69 },
70 70
71 /** 71 /**
72 * @param {!WebInspector.Event} event 72 * @param {!WebInspector.Event} event
73 */ 73 */
74 onCSSModelChanged: function(event) { }, 74 onCSSModelChanged: function(event) { },
75 75
76 __proto__: WebInspector.View.prototype 76 __proto__: WebInspector.SimpleView.prototype
77 } 77 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698