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

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

Issue 2587533002: DevTools: consistently use relative name for filesystem resources. (Closed)
Patch Set: same Created 4 years 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 | « no previous file | third_party/WebKit/Source/devtools/front_end/persistence/FileSystemWorkspaceBinding.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/bindings/ContentProviderBasedProject.js
diff --git a/third_party/WebKit/Source/devtools/front_end/bindings/ContentProviderBasedProject.js b/third_party/WebKit/Source/devtools/front_end/bindings/ContentProviderBasedProject.js
index 3e5a1ea1a1a299a8b065acd022c9db77d0e63ffd..be51053dc3ca4660edbb00e1f0da9de2cc42d3b3 100644
--- a/third_party/WebKit/Source/devtools/front_end/bindings/ContentProviderBasedProject.js
+++ b/third_party/WebKit/Source/devtools/front_end/bindings/ContentProviderBasedProject.js
@@ -95,6 +95,20 @@ Bindings.ContentProviderBasedProject = class extends Workspace.ProjectStore {
/**
* @override
+ * @param {!Workspace.UISourceCode} uiSourceCode
+ * @return {string}
+ */
+ fullDisplayName(uiSourceCode) {
+ var parentPath = uiSourceCode.parentURL().replace(/^(?:https?|file)\:\/\//, '');
+ try {
+ parentPath = decodeURI(parentPath);
+ } catch (e) {
+ }
+ return parentPath + '/' + uiSourceCode.displayName(true);
+ }
+
+ /**
+ * @override
* @return {boolean}
*/
canRename() {
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/persistence/FileSystemWorkspaceBinding.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698