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

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 e2bd173f71670d2259a17e6bf59a70499d650257..9aec015491efd1eef3a1809014a723f4f04b1fff 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 MultipleFileEntryCallback = void (
+ [instanceOf=FileEntry] optional object fileEntry,
Matt Giuca 2013/07/19 02:28:11 What is the first fileEntry for? (Why not just tak
Sam McNally 2013/07/19 04:22:14 Backwards compatibility; chooseEntry with acceptsM
Matt Giuca 2013/07/25 08:31:09 Is it worth refactoring so that there are two sepa
benwells 2013/07/25 09:08:31 Do you mean there would be another function like c
Sam McNally 2013/07/26 03:58:03 Done.
+ [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);
+ MultipleFileEntryCallback 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