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

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

Issue 2157713002: DevTools: introduce View: a named widget with the toolbar. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: lcean Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/elements/ElementsSidebarPane.js
diff --git a/third_party/WebKit/Source/devtools/front_end/elements/ElementsSidebarPane.js b/third_party/WebKit/Source/devtools/front_end/elements/ElementsSidebarPane.js
index dd8bdb0719370828a77e3fbf044feef0978def1d..c934bb8fe24db48032fc29337c65bff0b251ff72 100644
--- a/third_party/WebKit/Source/devtools/front_end/elements/ElementsSidebarPane.js
+++ b/third_party/WebKit/Source/devtools/front_end/elements/ElementsSidebarPane.js
@@ -4,12 +4,13 @@
/**
* @constructor
- * @extends {WebInspector.SidebarPane}
+ * @extends {WebInspector.View}
* @param {string} title
*/
WebInspector.ElementsSidebarPane = function(title)
{
- WebInspector.SidebarPane.call(this, title);
+ WebInspector.View.call(this, title);
+ this.element.classList.add("flex-none");
this._computedStyleModel = new WebInspector.ComputedStyleModel();
this._computedStyleModel.addEventListener(WebInspector.ComputedStyleModel.Events.ComputedStyleChanged, this.onCSSModelChanged, this);
@@ -62,7 +63,7 @@ WebInspector.ElementsSidebarPane.prototype = {
wasShown: function()
{
- WebInspector.SidebarPane.prototype.wasShown.call(this);
+ WebInspector.View.prototype.wasShown.call(this);
if (this._updateWhenVisible)
this.update();
},
@@ -72,5 +73,5 @@ WebInspector.ElementsSidebarPane.prototype = {
*/
onCSSModelChanged: function(event) { },
- __proto__: WebInspector.SidebarPane.prototype
+ __proto__: WebInspector.View.prototype
}

Powered by Google App Engine
This is Rietveld 408576698