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

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: 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 7d9928eb7456edceb02499f1f9987ba1c4a8c938..826d87ec1e35ac24cd12cd3c6311f85b959b512f 100644
--- a/chrome/common/extensions/api/file_system.idl
+++ b/chrome/common/extensions/api/file_system.idl
@@ -20,7 +20,8 @@ namespace fileSystem {
DOMString? type;
};
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
@@ -34,6 +35,10 @@ namespace fileSystem {
static void getWritableFileEntry([instanceOf=FileEntry] object fileEntry,
FileEntryCallback callback);
+ // Gets whether this FileEntry is readable or writable.
benwells 2012/07/10 06:40:23 Nit: ...is writable or not.
thorogood 2012/07/10 06:49:22 Done.
+ static void isWritableFileEntry([instanceOf=FileEntry] object fileEntry,
+ IsWritableCallback callback);
+
// Ask the user to choose a file.
static void chooseFile(optional ChooseFileOptions options,
FileEntryCallback callback);

Powered by Google App Engine
This is Rietveld 408576698