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

Unified Diff: Source/devtools/front_end/sdk/Target.js

Issue 1147093007: Devtools[ResourceScriptMapping]: Ignore uiSourceCodes originated by other target's network project (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase test results Created 5 years, 7 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
« no previous file with comments | « Source/devtools/front_end/bindings/ResourceScriptMapping.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/sdk/Target.js
diff --git a/Source/devtools/front_end/sdk/Target.js b/Source/devtools/front_end/sdk/Target.js
index 8f2f77ed6cfa324359474338785039e45b2560a8..4e759e4495fb1def93f1a647108fb0e1bed01ddd 100644
--- a/Source/devtools/front_end/sdk/Target.js
+++ b/Source/devtools/front_end/sdk/Target.js
@@ -567,6 +567,20 @@ WebInspector.TargetManager.prototype = {
},
/**
+ *
+ * @param {number} id
+ * @return {?WebInspector.Target}
+ */
+ targetById: function(id)
+ {
+ for (var i = 0; i < this._targets.length; ++i) {
+ if (this._targets[i].id() === id)
+ return this._targets[i];
+ }
+ return null;
+ },
+
+ /**
* @return {?WebInspector.Target}
*/
mainTarget: function()
« no previous file with comments | « Source/devtools/front_end/bindings/ResourceScriptMapping.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698