| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after 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 |