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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sources/ObjectEventListenersSidebarPane.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/sources/ObjectEventListenersSidebarPane.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sources/ObjectEventListenersSidebarPane.js b/third_party/WebKit/Source/devtools/front_end/sources/ObjectEventListenersSidebarPane.js
index f0db147c5f796bf00f90109cf1ea35bee80538c9..8dafcb1e9852a5f1bc081cc9bcb3b3fee45ad251 100644
--- a/third_party/WebKit/Source/devtools/front_end/sources/ObjectEventListenersSidebarPane.js
+++ b/third_party/WebKit/Source/devtools/front_end/sources/ObjectEventListenersSidebarPane.js
@@ -4,17 +4,17 @@
/**
* @constructor
- * @extends {WebInspector.SidebarPane}
+ * @extends {WebInspector.View}
*/
WebInspector.ObjectEventListenersSidebarPane = function()
{
- WebInspector.SidebarPane.call(this, "Event Listeners");
+ WebInspector.View.call(this, "Event Listeners");
this.element.classList.add("event-listeners-sidebar-pane");
this._refreshButton = new WebInspector.ToolbarButton(WebInspector.UIString("Refresh"), "refresh-toolbar-item");
this._refreshButton.addEventListener("click", this._refreshClick.bind(this));
this._refreshButton.setEnabled(false);
- this.toolbar().appendToolbarItem(this._refreshButton);
+ this.addToolbarItem(this._refreshButton);
this._eventListenersView = new WebInspector.EventListenersView(this.element, this.update.bind(this));
}
@@ -40,7 +40,7 @@ WebInspector.ObjectEventListenersSidebarPane.prototype = {
wasShown: function()
{
- WebInspector.SidebarPane.prototype.wasShown.call(this);
+ WebInspector.View.prototype.wasShown.call(this);
WebInspector.context.addFlavorChangeListener(WebInspector.ExecutionContext, this.update, this);
this._refreshButton.setEnabled(true);
this.update();
@@ -48,7 +48,7 @@ WebInspector.ObjectEventListenersSidebarPane.prototype = {
willHide: function()
{
- WebInspector.SidebarPane.prototype.willHide.call(this);
+ WebInspector.View.prototype.willHide.call(this);
WebInspector.context.removeFlavorChangeListener(WebInspector.ExecutionContext, this.update, this);
this._refreshButton.setEnabled(false);
},
@@ -89,5 +89,5 @@ WebInspector.ObjectEventListenersSidebarPane.prototype = {
this.update();
},
- __proto__: WebInspector.SidebarPane.prototype
+ __proto__: WebInspector.View.prototype
}

Powered by Google App Engine
This is Rietveld 408576698