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, | 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). | 6 // video, audio) from the user's local disks (with the user's consent). |
7 namespace mediaGalleries { | 7 namespace mediaGalleries { |
8 | 8 |
9 [inline_doc] enum GetMediaFileSystemsInteractivity { | 9 [inline_doc] enum GetMediaFileSystemsInteractivity { |
10 // Do not act interactively. | 10 // Do not act interactively. |
(...skipping 12 matching lines...) Expand all Loading... | |
23 mimeTypeOnly | 23 mimeTypeOnly |
24 }; | 24 }; |
25 | 25 |
26 [inline_doc] enum ScanProgressType { | 26 [inline_doc] enum ScanProgressType { |
27 // The scan started. | 27 // The scan started. |
28 start, | 28 start, |
29 // The scan was cancelled. | 29 // The scan was cancelled. |
30 cancel, | 30 cancel, |
31 // The scan finished but none of the result have been added, | 31 // The scan finished but none of the result have been added, |
32 // addScanResults() has to be called to ask the user for permission. | 32 // addScanResults() has to be called to ask the user for permission. |
33 finish | 33 finish, |
34 // The scan had an error and could not proceed. | |
Lei Zhang
2014/01/29 23:07:53
nit: s/had/encountered/ ?
tommycli
2014/01/29 23:19:56
Done.
| |
35 error | |
34 }; | 36 }; |
35 | 37 |
36 [inline_doc] dictionary MediaFileSystemsDetails { | 38 [inline_doc] dictionary MediaFileSystemsDetails { |
37 // Whether to prompt the user for permission to additional media galleries | 39 // Whether to prompt the user for permission to additional media galleries |
38 // before returning the permitted set. Default is silent. If the value | 40 // before returning the permitted set. Default is silent. If the value |
39 // 'yes' is passed, or if the application has not been granted access to | 41 // 'yes' is passed, or if the application has not been granted access to |
40 // any media galleries and the value 'if_needed' is passed, then the | 42 // any media galleries and the value 'if_needed' is passed, then the |
41 // media gallery configuration dialog will be displayed. | 43 // media gallery configuration dialog will be displayed. |
42 GetMediaFileSystemsInteractivity? interactive; | 44 GetMediaFileSystemsInteractivity? interactive; |
43 }; | 45 }; |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
162 optional MediaMetadataOptions options, | 164 optional MediaMetadataOptions options, |
163 MediaMetadataCallback callback); | 165 MediaMetadataCallback callback); |
164 }; | 166 }; |
165 | 167 |
166 interface Events { | 168 interface Events { |
167 // The pending media scan has changed state. See details for more | 169 // The pending media scan has changed state. See details for more |
168 // information. | 170 // information. |
169 static void onScanProgress(ScanProgressDetails details); | 171 static void onScanProgress(ScanProgressDetails details); |
170 }; | 172 }; |
171 }; | 173 }; |
OLD | NEW |