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

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

Issue 10534156: Implement fileSystem.chooseFile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review feedback Created 8 years, 6 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 7881f3dce2a93aaf1a1fdb90dc7a54fb32462a5f..557b15352eb81b5aa62ec979dda7698cd0867c75 100644
--- a/chrome/common/extensions/api/file_system.idl
+++ b/chrome/common/extensions/api/file_system.idl
@@ -5,13 +5,19 @@
// File-level comment to appease parser. Eventually this will not be necessary.
[nodoc] namespace fileSystem {
+ dictionary ChooseFileOptions {
+ // type can be 'openFile' or 'saveFile'. Default is 'openFile'.
+ DOMString? type;
+ };
callback GetDisplayPathCallback = void (DOMString displayPath);
callback FileEntryCallback = void ([instanceOf=fileEntry] object fileEntry);
interface Functions {
static void getDisplayPath([instanceOf=FileEntry] object fileEntry,
- GetDisplayPathCallback onSuccess);
+ GetDisplayPathCallback callback);
static void getWritableFileEntry([instanceOf=FileEntry] object fileEntry,
- FileEntryCallback onSuccess);
+ FileEntryCallback callback);
+ static void chooseFile(optional ChooseFileOptions options,
+ FileEntryCallback callback);
};
};

Powered by Google App Engine
This is Rietveld 408576698