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

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

Issue 352953002: DevTools: properly support targets in LiveEditSupport (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix test Created 6 years, 6 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/main/Main.js ('k') | Source/devtools/front_end/sdk/DefaultScriptMapping.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/sdk/DebuggerScriptMapping.js
diff --git a/Source/devtools/front_end/sdk/DebuggerScriptMapping.js b/Source/devtools/front_end/sdk/DebuggerScriptMapping.js
index 679a6845bfa75d1f28e328e1870fd9681276bac8..08c1a2d67723606d17d73ea41742ec03468afb40 100644
--- a/Source/devtools/front_end/sdk/DebuggerScriptMapping.js
+++ b/Source/devtools/front_end/sdk/DebuggerScriptMapping.js
@@ -40,6 +40,9 @@ WebInspector.DebuggerScriptMapping = function(debuggerModel, workspace, networkW
this._resourceMapping = new WebInspector.ResourceScriptMapping(debuggerModel, workspace);
this._compilerMapping = new WebInspector.CompilerScriptMapping(debuggerModel, workspace, networkWorkspaceBinding);
+ /** @type {!WebInspector.LiveEditSupport} */
+ this._liveEditSupport = new WebInspector.LiveEditSupport(debuggerModel.target(), WebInspector.workspace);
+
debuggerModel.addEventListener(WebInspector.DebuggerModel.Events.ParsedScriptSource, this._parsedScriptSource, this);
debuggerModel.addEventListener(WebInspector.DebuggerModel.Events.FailedToParseScriptSource, this._parsedScriptSource, this);
}
@@ -69,5 +72,13 @@ WebInspector.DebuggerScriptMapping.prototype = {
this._compilerMapping.dispose();
this._resourceMapping.dispose();
this._defaultMapping.dispose();
+ },
+
+ /**
+ * @return {!WebInspector.LiveEditSupport}
+ */
+ liveEditSupport: function()
+ {
+ return this._liveEditSupport;
}
}
« no previous file with comments | « Source/devtools/front_end/main/Main.js ('k') | Source/devtools/front_end/sdk/DefaultScriptMapping.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698