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

Unified Diff: third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js

Issue 2419943003: DevTools: allow handing over the raw protocol connection to external clients and back. (Closed)
Patch Set: rebaselined Created 4 years, 2 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/console/ConsoleView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js b/third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js
index f9e16d377d2147197222e34381b7a53a8b752b6e..23802863cea05cc431b474b96b867c2aa66ed3a8 100644
--- a/third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js
+++ b/third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js
@@ -258,8 +258,7 @@ WebInspector.ConsoleView.prototype = {
targetAdded: function(target)
{
this._viewport.invalidate();
- var hasMultipleCotexts = WebInspector.targetManager.targets(WebInspector.Target.Capability.JS).length > 1;
- this._showAllMessagesCheckbox.element.classList.toggle("hidden", !hasMultipleCotexts);
+ this._updateAllMessagesCheckbox();
},
/**
@@ -268,6 +267,13 @@ WebInspector.ConsoleView.prototype = {
*/
targetRemoved: function(target)
{
+ this._updateAllMessagesCheckbox();
+ },
+
+ _updateAllMessagesCheckbox: function()
+ {
+ var hasMultipleCotexts = WebInspector.targetManager.targets(WebInspector.Target.Capability.JS).length > 1;
+ this._showAllMessagesCheckbox.element.classList.toggle("hidden", !hasMultipleCotexts);
},
_registerWithMessageSink: function()

Powered by Google App Engine
This is Rietveld 408576698