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

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

Issue 2186753002: [DevTools] Track URL through the target (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments addressed 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/sdk/Target.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/Target.js b/third_party/WebKit/Source/devtools/front_end/sdk/Target.js
index d36d8c10897c9cae966cd180361266fe84fe0c8b..099b0a06c1f0981569e5d0a164e0a3a1ef5da2fc 100644
--- a/third_party/WebKit/Source/devtools/front_end/sdk/Target.js
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/Target.js
@@ -18,6 +18,7 @@ WebInspector.Target = function(targetManager, name, capabilitiesMask, connection
Protocol.Agents.call(this, connection.agentsMap());
this._targetManager = targetManager;
this._name = name;
+ this._inspectedURL = "";
this._capabilitiesMask = capabilitiesMask;
this._connection = connection;
this._parentTarget = parentTarget;
@@ -189,6 +190,24 @@ WebInspector.Target.prototype = {
return this._modelByConstructor.valuesArray();
},
+ /**
+ * @return {string}
+ */
+ inspectedURL: function()
+ {
+ return this._inspectedURL;
+ },
+
+ /**
+ * @param {string} inspectedURL
+ */
+ setInspectedURL: function(inspectedURL)
+ {
+ this._inspectedURL = inspectedURL;
+ InspectorFrontendHost.inspectedURLChanged(inspectedURL || "");
+ this._targetManager.dispatchEventToListeners(WebInspector.TargetManager.Events.InspectedURLChanged, this);
+ },
+
__proto__: Protocol.Agents.prototype
}

Powered by Google App Engine
This is Rietveld 408576698