OLD | NEW |
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 namespace mediaGalleries { | 5 namespace mediaGalleries { |
6 | 6 |
7 [inline_doc] enum GetMediaFileSystemsInteractivity { | 7 [inline_doc] enum GetMediaFileSystemsInteractivity { |
8 // Do not act interactively. | 8 // Do not act interactively. |
9 no, | 9 no, |
10 // Ask the user to manage permitted media galleries. | 10 // Ask the user to manage permitted media galleries. |
11 yes, | 11 yes, |
12 // Ask the user to manage permitted galleries only if the return set would | 12 // Ask the user to manage permitted galleries only if the return set would |
13 // otherwise be empty. | 13 // otherwise be empty. |
14 if_needed | 14 if_needed |
15 }; | 15 }; |
16 | 16 |
17 [inline_doc] dictionary MediaFileSystemsDetails { | 17 [inline_doc] dictionary MediaFileSystemsDetails { |
18 // Whether to prompt the user for permission to additional media galleries | 18 // Whether to prompt the user for permission to additional media galleries |
19 // before returning the permitted set. Default is silent. If the value | 19 // before returning the permitted set. Default is silent. If the value |
20 // 'yes' is passed, or if the application has not been granted access to | 20 // 'yes' is passed, or if the application has not been granted access to |
21 // any media galleries and the value 'if_needed' is passed, then the | 21 // any media galleries and the value 'if_needed' is passed, then the |
22 // media gallery configuration dialog will be displayed. | 22 // media gallery configuration dialog will be displayed. A user |
| 23 // gesture is required for the display of the dialog. (i.e. making the call |
| 24 // in the context of a button press) |
23 GetMediaFileSystemsInteractivity? interactive; | 25 GetMediaFileSystemsInteractivity? interactive; |
24 }; | 26 }; |
25 | 27 |
26 callback MediaFileSystemsCallback = | 28 callback MediaFileSystemsCallback = |
27 void ([instanceOf=DOMFileSystem] optional object[] mediaFileSystems); | 29 void ([instanceOf=DOMFileSystem] optional object[] mediaFileSystems); |
28 | 30 |
29 [inline_doc] dictionary MediaFileSystemMetadata { | 31 [inline_doc] dictionary MediaFileSystemMetadata { |
30 // The name of the file system. | 32 // The name of the file system. |
31 DOMString name; | 33 DOMString name; |
32 | 34 |
(...skipping 17 matching lines...) Expand all Loading... |
50 // configured or available, the callback will receive an empty array. | 52 // configured or available, the callback will receive an empty array. |
51 static void getMediaFileSystems(optional MediaFileSystemsDetails details, | 53 static void getMediaFileSystems(optional MediaFileSystemsDetails details, |
52 MediaFileSystemsCallback callback); | 54 MediaFileSystemsCallback callback); |
53 | 55 |
54 // Get metadata about a specific media file system. | 56 // Get metadata about a specific media file system. |
55 [nocompile] static MediaFileSystemMetadata getMediaFileSystemMetadata( | 57 [nocompile] static MediaFileSystemMetadata getMediaFileSystemMetadata( |
56 [instanceOf=DOMFileSystem] object mediaFileSystem); | 58 [instanceOf=DOMFileSystem] object mediaFileSystem); |
57 }; | 59 }; |
58 | 60 |
59 }; | 61 }; |
OLD | NEW |