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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // File-level comment to appease parser. Eventually this will not be necessary. 5 // File-level comment to appease parser. Eventually this will not be necessary.
6 6
7 [nodoc] namespace fileSystem { 7 [nodoc] namespace fileSystem {
8 dictionary ChooseFileOptions {
9 // type can be 'openFile' or 'saveFile'. Default is 'openFile'.
10 DOMString? type;
11 };
8 callback GetDisplayPathCallback = void (DOMString displayPath); 12 callback GetDisplayPathCallback = void (DOMString displayPath);
9 callback FileEntryCallback = void ([instanceOf=fileEntry] object fileEntry); 13 callback FileEntryCallback = void ([instanceOf=fileEntry] object fileEntry);
10 14
11 interface Functions { 15 interface Functions {
12 static void getDisplayPath([instanceOf=FileEntry] object fileEntry, 16 static void getDisplayPath([instanceOf=FileEntry] object fileEntry,
13 GetDisplayPathCallback onSuccess); 17 GetDisplayPathCallback callback);
14 static void getWritableFileEntry([instanceOf=FileEntry] object fileEntry, 18 static void getWritableFileEntry([instanceOf=FileEntry] object fileEntry,
15 FileEntryCallback onSuccess); 19 FileEntryCallback callback);
20 static void chooseFile(optional ChooseFileOptions options,
21 FileEntryCallback callback);
16 }; 22 };
17 }; 23 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698