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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sdk/TargetManager.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/sdk/TargetManager.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/TargetManager.js b/third_party/WebKit/Source/devtools/front_end/sdk/TargetManager.js
index dddad910c9853e3c77d4a7ee2691c9590eeba824..39c039703e2b9a2a135a39253a766bcf76e65f74 100644
--- a/third_party/WebKit/Source/devtools/front_end/sdk/TargetManager.js
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/TargetManager.js
@@ -308,6 +308,14 @@ WebInspector.TargetManager.prototype = {
}
},
+ removeAllTargets: function()
+ {
+ var targets = this._targets.slice();
+ for (var i = targets.length - 1; i >=0 ; --i)
+ this.removeTarget(targets[i]);
+ this._targets = [];
+ },
+
/**
* @param {number=} capabilitiesMask
* @return {!Array.<!WebInspector.Target>}

Powered by Google App Engine
This is Rietveld 408576698