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

Unified Diff: third_party/WebKit/Source/devtools/front_end/bindings/DebuggerWorkspaceBinding.js

Issue 2869293002: DevTools: make CompilerScriptMapping / SASSSourceMapping manage UISourceCodes (Closed)
Patch Set: address comments Created 3 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
Index: third_party/WebKit/Source/devtools/front_end/bindings/DebuggerWorkspaceBinding.js
diff --git a/third_party/WebKit/Source/devtools/front_end/bindings/DebuggerWorkspaceBinding.js b/third_party/WebKit/Source/devtools/front_end/bindings/DebuggerWorkspaceBinding.js
index 469d9b7a9d5343069718cf4f4a3e13df0876d85d..fa951dc6c85b4eee15efd7646ca313cf9a31f2d3 100644
--- a/third_party/WebKit/Source/devtools/front_end/bindings/DebuggerWorkspaceBinding.js
+++ b/third_party/WebKit/Source/devtools/front_end/bindings/DebuggerWorkspaceBinding.js
@@ -166,6 +166,18 @@ Bindings.DebuggerWorkspaceBinding = class extends Common.Object {
return info._rawLocationToUILocation(rawLocation);
}
+ /**
+ * @param {!SDK.DebuggerModel} debuggerModel
+ * @param {string} url
+ * @param {boolean} isContentScript
+ */
+ uiSourceCodeForSourceMapSourceURL(debuggerModel, url, isContentScript) {
+ var modelData = this._debuggerModelToData.get(debuggerModel);
+ if (!modelData)
+ return null;
+ return modelData._compilerMapping.uiSourceCodeForURL(url, isContentScript);
+ }
+
/**
* @param {!Workspace.UISourceCode} uiSourceCode
* @param {number} lineNumber
@@ -326,9 +338,7 @@ Bindings.DebuggerWorkspaceBinding.ModelData = class {
this._defaultMapping = new Bindings.DefaultScriptMapping(debuggerModel, workspace, debuggerWorkspaceBinding);
this._resourceMapping = new Bindings.ResourceScriptMapping(debuggerModel, workspace, debuggerWorkspaceBinding);
- this._compilerMapping = new Bindings.CompilerScriptMapping(
- debuggerModel, workspace, Bindings.NetworkProject.forTarget(this._debuggerModel.target()),
- debuggerWorkspaceBinding);
+ this._compilerMapping = new Bindings.CompilerScriptMapping(debuggerModel, workspace, debuggerWorkspaceBinding);
debuggerModel.setBeforePausedCallback(this._beforePaused.bind(this));
this._eventListeners = [

Powered by Google App Engine
This is Rietveld 408576698