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

Unified Diff: Source/devtools/front_end/workspace/Workspace.js

Issue 1314853006: DevTools: expose wired front-end API for editors interop [blink] (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 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/workspace/Workspace.js
diff --git a/Source/devtools/front_end/workspace/Workspace.js b/Source/devtools/front_end/workspace/Workspace.js
index 1ee582eb65a3318aeb973e6989d73da437c11842..23ee257276648e1a2e8884066786696bfb93e52a 100644
--- a/Source/devtools/front_end/workspace/Workspace.js
+++ b/Source/devtools/front_end/workspace/Workspace.js
@@ -630,6 +630,22 @@ WebInspector.Workspace.prototype = {
},
/**
+ * @param {string} originURL
+ * @return {?WebInspector.UISourceCode}
+ */
+ filesystemUISourceCode: function(originURL)
+ {
+ var projects = this.projectsForType(WebInspector.projectTypes.FileSystem);
+ for (var i = 0; i < projects.length; ++i) {
+ var project = projects[i];
+ var uiSourceCode = project.uiSourceCodeForOriginURL(originURL);
+ if (uiSourceCode)
+ return uiSourceCode;
+ }
+ return null;
+ },
+
+ /**
* @param {string} type
* @return {!Array.<!WebInspector.UISourceCode>}
*/
« Source/devtools/front_end/main/Main.js ('K') | « Source/devtools/front_end/main/module.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698