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

Unified Diff: Source/devtools/front_end/bindings/NetworkMapping.js

Issue 1264133002: Devtools: [WIP] Implement enhanced devtools extension language APIs Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Modify override dropdown to apply to console completions & transpile Created 5 years, 4 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: Source/devtools/front_end/bindings/NetworkMapping.js
diff --git a/Source/devtools/front_end/bindings/NetworkMapping.js b/Source/devtools/front_end/bindings/NetworkMapping.js
index b008811c9871807f0174c4957ffbf721086f8976..6d76b311ea04c6d4d3339b99610b7e1a2d7d183a 100644
--- a/Source/devtools/front_end/bindings/NetworkMapping.js
+++ b/Source/devtools/front_end/bindings/NetworkMapping.js
@@ -92,6 +92,14 @@ WebInspector.NetworkMapping.prototype = {
},
/**
+ * @param {string} url
+ * @return {?WebInspector.UISourceCode}
+ */
+ uiSourceCodeFromURL: function(url) {
+ return this.uiSourceCodeForURLForAnyTarget(url) || this._workspace.uiSourceCodeForFilePath(url);
pfeldman 2015/08/13 21:15:46 When is it used?
wes 2015/08/14 01:13:32 Solely in the extension server (get/set line messa
pfeldman 2015/08/17 21:15:51 Then it should be at its call site since it discar
+ },
+
+ /**
* @param {string} fileSystemPath
* @param {string} filePath
* @return {string}

Powered by Google App Engine
This is Rietveld 408576698