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 // Use the <code>chrome.mediaGalleries</code> API to access media files (images, |
| 6 // video, audio) from the user's local disks (with the user's consent). |
5 namespace mediaGalleries { | 7 namespace mediaGalleries { |
6 | 8 |
7 [inline_doc] enum GetMediaFileSystemsInteractivity { | 9 [inline_doc] enum GetMediaFileSystemsInteractivity { |
8 // Do not act interactively. | 10 // Do not act interactively. |
9 no, | 11 no, |
10 // Ask the user to manage permitted media galleries. | 12 // Ask the user to manage permitted media galleries. |
11 yes, | 13 yes, |
12 // Ask the user to manage permitted galleries only if the return set would | 14 // Ask the user to manage permitted galleries only if the return set would |
13 // otherwise be empty. | 15 // otherwise be empty. |
14 if_needed | 16 if_needed |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 // configured or available, the callback will receive an empty array. | 54 // configured or available, the callback will receive an empty array. |
53 static void getMediaFileSystems(optional MediaFileSystemsDetails details, | 55 static void getMediaFileSystems(optional MediaFileSystemsDetails details, |
54 MediaFileSystemsCallback callback); | 56 MediaFileSystemsCallback callback); |
55 | 57 |
56 // Get metadata about a specific media file system. | 58 // Get metadata about a specific media file system. |
57 [nocompile] static MediaFileSystemMetadata getMediaFileSystemMetadata( | 59 [nocompile] static MediaFileSystemMetadata getMediaFileSystemMetadata( |
58 [instanceOf=DOMFileSystem] object mediaFileSystem); | 60 [instanceOf=DOMFileSystem] object mediaFileSystem); |
59 }; | 61 }; |
60 | 62 |
61 }; | 63 }; |
OLD | NEW |