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

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

Issue 18331017: Support choosing multiple files with fileSystem.chooseEntry. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 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 59d4870716336a9454ee818ab78d0449e04e56df..07914a6c6dcd18f85724964a0948b87a22cdd5d3 100644
--- a/chrome/common/extensions/api/file_system.idl
+++ b/chrome/common/extensions/api/file_system.idl
@@ -55,9 +55,18 @@ namespace fileSystem {
// in the accepts argument. The default is true. If the accepts field is
// unset or contains no valid entries, this will always be reset to true.
boolean? acceptsAllTypes;
+
+ // Whether to accept multiple files. This is only supported for openFile and
+ // openWritableFile. The callback to chooseEntry will be called with a list
+ // of entries if this is set to true. Otherwise it will be called with a
+ // single Entry.
+ boolean? acceptsMultiple;
};
callback GetDisplayPathCallback = void (DOMString displayPath);
callback FileEntryCallback = void ([instanceOf=FileEntry] object fileEntry);
+ callback FileEntriesCallback = void (
+ [instanceOf=FileEntry] optional object fileEntry,
+ [instanceOf=FileEntry] optional object[] fileEntries);
callback IsWritableCallback = void (boolean isWritable);
callback IsRestorableCallback = void (boolean isRestorable);
@@ -79,7 +88,7 @@ namespace fileSystem {
// Ask the user to choose a file.
static void chooseEntry(optional ChooseEntryOptions options,
- FileEntryCallback callback);
+ FileEntriesCallback callback);
// Returns the file entry with the given id if it can be restored. This call
// will fail otherwise.

Powered by Google App Engine
This is Rietveld 408576698