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

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

Issue 10692104: Add isWritableFileEntry to the fileSystem API (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: added presubmit fix Created 8 years, 5 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: 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 f147956ed697095af985426daa972aa4606e0a22..51a93a6c39f3cea39c6afa53db43e625276a93b2 100644
--- a/chrome/common/extensions/api/file_system.idl
+++ b/chrome/common/extensions/api/file_system.idl
@@ -24,7 +24,8 @@ namespace fileSystem {
DOMString? suggestedName;
};
callback GetDisplayPathCallback = void (DOMString displayPath);
- callback FileEntryCallback = void ([instanceOf=fileEntry] object fileEntry);
+ callback FileEntryCallback = void ([instanceOf=FileEntry] object fileEntry);
+ callback IsWritableCallback = void (boolean isWritable);
interface Functions {
// Get the display path of a FileEntry object. The display path is based on
@@ -38,6 +39,10 @@ namespace fileSystem {
static void getWritableFileEntry([instanceOf=FileEntry] object fileEntry,
FileEntryCallback callback);
+ // Gets whether this FileEntry is writable or not.
+ static void isWritableFileEntry([instanceOf=FileEntry] object fileEntry,
+ IsWritableCallback callback);
+
// Ask the user to choose a file.
static void chooseFile(optional ChooseFileOptions options,
FileEntryCallback callback);
« no previous file with comments | « chrome/common/extensions/PRESUBMIT.py ('k') | chrome/renderer/resources/extensions/file_system_custom_bindings.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698