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

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: added another test case 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
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/common/extensions/docs/apps/fileSystem.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..6a261f035c02b346e555df0d9bd370e75cf6cee5 100644
--- a/chrome/common/extensions/api/file_system.idl
+++ b/chrome/common/extensions/api/file_system.idl
@@ -22,6 +22,19 @@ 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, <code>['image/*', 'text/html,.jso']</code>
Mihai Parparita -not on Chrome 2012/07/30 23:33:03 Apologies if this was discussed already, but the e
+ // would display two type options - one accepting images - and the other
+ // accepting HTML files and 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.
+ boolean? acceptsAllTypes;
};
callback GetDisplayPathCallback = void (DOMString displayPath);
callback FileEntryCallback = void ([instanceOf=FileEntry] object fileEntry);
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/common/extensions/docs/apps/fileSystem.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698