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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sources/WatchExpressionsSidebarPane.js

Issue 2234193002: DevTools: migrate some of the sources panel sidebar panes to view management, allow view toolbars. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments addressed 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/sources/WatchExpressionsSidebarPane.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sources/WatchExpressionsSidebarPane.js b/third_party/WebKit/Source/devtools/front_end/sources/WatchExpressionsSidebarPane.js
index bbcdf0febb10ae51e308f31b0d1160ad4968ba2f..75d087994619d9829f2aace70eec5b6111d15c67 100644
--- a/third_party/WebKit/Source/devtools/front_end/sources/WatchExpressionsSidebarPane.js
+++ b/third_party/WebKit/Source/devtools/front_end/sources/WatchExpressionsSidebarPane.js
@@ -53,8 +53,8 @@ WebInspector.WatchExpressionsSidebarPane = function()
this._bodyElement.addEventListener("contextmenu", this._contextMenu.bind(this), false);
this._expandController = new WebInspector.ObjectPropertiesSectionExpandController();
- WebInspector.context.addFlavorChangeListener(WebInspector.ExecutionContext, this.refreshExpressions, this);
-
+ WebInspector.context.addFlavorChangeListener(WebInspector.ExecutionContext, this._refreshExpressions, this);
+ WebInspector.context.addFlavorChangeListener(WebInspector.DebuggerModel.CallFrame, this._refreshExpressions, this);
this._linkifier = new WebInspector.Linkifier();
}
@@ -64,7 +64,7 @@ WebInspector.WatchExpressionsSidebarPane.prototype = {
this._refreshExpressionsIfNeeded();
},
- refreshExpressions: function()
+ _refreshExpressions: function()
{
this._requiresUpdate = true;
this._refreshExpressionsIfNeeded();
@@ -128,7 +128,7 @@ WebInspector.WatchExpressionsSidebarPane.prototype = {
_refreshButtonClicked: function(event)
{
event.consume();
- this.refreshExpressions();
+ this._refreshExpressions();
},
_rebuildWatchExpressions: function()

Powered by Google App Engine
This is Rietveld 408576698