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

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

Issue 10692105: Updates file type selector for fileSystem API (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: All code now inside file_system_api.cc 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 51a93a6c39f3cea39c6afa53db43e625276a93b2..7f0fd28eb3b28dec03a0a6661171ca999578eb83 100644
--- a/chrome/common/extensions/api/file_system.idl
+++ b/chrome/common/extensions/api/file_system.idl
@@ -22,6 +22,23 @@ namespace fileSystem {
// The suggested file name that will be presented to the user as the
// default name to read or write. This is optional.
DOMString? suggestedName;
+
+ // The optional list of accepted mime-types for this file opener, grouped
+ // by type.
+ //
+ // For example, ['image/*', 'application/json,.jso'] would display two type
+ // options - one accepting images - and the other accepting json files and
benwells 2012/07/24 06:01:27 Collapse the above two paragraphs into one.
thorogood 2012/07/25 05:02:59 Done.
+ // those with the extension 'jso'.
+ //
+ // This field is optional. However, it is an error to not specify this
+ // field (or pass an empty array) but pass acceptsAllTypes as false.
+ DOMString[]? accepts;
+
+ // Whether to accept all file types, in addition to the options specified
+ // in the accepts argument.
+ //
+ // The default is true.
benwells 2012/07/24 06:01:27 Ditto
thorogood 2012/07/25 05:02:59 Done.
+ boolean? acceptsAllTypes;
};
callback GetDisplayPathCallback = void (DOMString displayPath);
callback FileEntryCallback = void ([instanceOf=FileEntry] object fileEntry);

Powered by Google App Engine
This is Rietveld 408576698