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

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
« no previous file with comments | « Source/devtools/front_end/workspace/UISourceCode.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..a26ba362d3104966423dc2547d9a0df83f19b734 100644
--- a/Source/devtools/front_end/workspace/Workspace.js
+++ b/Source/devtools/front_end/workspace/Workspace.js
@@ -574,6 +574,7 @@ WebInspector.Workspace.Events = {
UISourceCodeAdded: "UISourceCodeAdded",
UISourceCodeRemoved: "UISourceCodeRemoved",
UISourceCodeContentCommitted: "UISourceCodeContentCommitted",
+ UISourceCodeWorkingCopyChanged: "UISourceCodeWorkingCopyChanged",
ProjectAdded: "ProjectAdded",
ProjectRemoved: "ProjectRemoved"
}
@@ -630,6 +631,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>}
*/
« no previous file with comments | « Source/devtools/front_end/workspace/UISourceCode.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698