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

Unified Diff: chrome/common/extensions/api/file_system.idl

Issue 137533019: IDL for chrome.fileSystem.getFullPath. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 6 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/api/file_system.idl
diff --git a/chrome/common/extensions/api/file_system.idl b/chrome/common/extensions/api/file_system.idl
index 61a9f27dc427a4882498f74919665d2713293c82..b5aa4dab01a25e9ad98cc79b043351b1e85ff20a 100644
--- a/chrome/common/extensions/api/file_system.idl
+++ b/chrome/common/extensions/api/file_system.idl
@@ -75,7 +75,13 @@ namespace fileSystem {
// single Entry.
boolean? acceptsMultiple;
};
- callback GetDisplayPathCallback = void (DOMString displayPath);
+
+ dictionary GetFullPathOptions {
+ // Whether to resolve symlinks. The default is false.
+ boolean? resolveSymlinks;
+
+ };
+ callback GetPathCallback = void (DOMString path);
callback EntryCallback = void ([instanceOf=Entry] object entry);
callback EntriesCallback = void (
[instanceOf=Entry] optional object entry,
@@ -88,7 +94,7 @@ namespace fileSystem {
// the full path of the file or directory on the local file system, but may
// be made more readable for display purposes.
static void getDisplayPath([instanceOf=Entry] object entry,
- GetDisplayPathCallback callback);
+ GetPathCallback callback);
// Get a writable Entry from another Entry. This call will fail with a
// runtime error if the application does not have the 'write' permission
@@ -122,5 +128,11 @@ namespace fileSystem {
// indefinitely. Otherwise, entries are retained only while the app is
// running and across restarts. This method is new in Chrome 31.
static DOMString retainEntry([instanceOf=Entry] object entry);
+
+ // Returns the full path on the local file system of an Entry object.
+ static void getFullPath([instanceOf=Entry] object entry,
+ optional GetFullPathOptions options,
+ GetPathCallback callback);
+
};
};
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698