Chromium Code Reviews| 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 (audio, | 5 // Use the <code>chrome.mediaGalleries</code> API to access media files (audio, |
| 6 // images, video) from the user's local disks (with the user's consent). | 6 // images, video) 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 113 // Generic metadata tags. | 113 // Generic metadata tags. |
| 114 DOMString? album; | 114 DOMString? album; |
| 115 DOMString? artist; | 115 DOMString? artist; |
| 116 DOMString? comment; | 116 DOMString? comment; |
| 117 DOMString? copyright; | 117 DOMString? copyright; |
| 118 long? disc; | 118 long? disc; |
| 119 DOMString? genre; | 119 DOMString? genre; |
| 120 DOMString? language; | 120 DOMString? language; |
| 121 DOMString? title; | 121 DOMString? title; |
| 122 long? track; | 122 long? track; |
| 123 | |
| 124 // A dictionary of all the metadata in the media file. This metadata is in | |
| 125 // string form, and neither the key nor value is normalized. | |
| 126 object rawTags; | |
|
Lei Zhang
2014/04/01 19:28:10
Maybe there is a better type for this? The extensi
tommycli
2014/04/01 19:29:01
yoz: Is 'object' the right data type to use? I ess
Yoyo Zhou
2014/04/01 21:39:40
I'm not that familiar with IDL. Adding asargent.
asargent_no_longer_on_chrome
2014/04/02 20:03:54
Yeah, if you don't know the set of possible keys u
| |
| 123 }; | 127 }; |
| 124 | 128 |
| 125 callback MediaMetadataCallback = void (MediaMetadata metadata); | 129 callback MediaMetadataCallback = void (MediaMetadata metadata); |
| 126 | 130 |
| 127 interface Functions { | 131 interface Functions { |
| 128 // Get the media galleries configured in this user agent. If none are | 132 // Get the media galleries configured in this user agent. If none are |
| 129 // configured or available, the callback will receive an empty array. | 133 // configured or available, the callback will receive an empty array. |
| 130 static void getMediaFileSystems(optional MediaFileSystemsDetails details, | 134 static void getMediaFileSystems(optional MediaFileSystemsDetails details, |
| 131 MediaFileSystemsCallback callback); | 135 MediaFileSystemsCallback callback); |
| 132 | 136 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 167 optional MediaMetadataOptions options, | 171 optional MediaMetadataOptions options, |
| 168 MediaMetadataCallback callback); | 172 MediaMetadataCallback callback); |
| 169 }; | 173 }; |
| 170 | 174 |
| 171 interface Events { | 175 interface Events { |
| 172 // The pending media scan has changed state. See details for more | 176 // The pending media scan has changed state. See details for more |
| 173 // information. | 177 // information. |
| 174 static void onScanProgress(ScanProgressDetails details); | 178 static void onScanProgress(ScanProgressDetails details); |
| 175 }; | 179 }; |
| 176 }; | 180 }; |
| OLD | NEW |