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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 dictionary MediaMetadata { | 99 dictionary MediaMetadata { |
100 // The browser sniffed mime type. | 100 // The browser sniffed mime type. |
101 DOMString mimeType; | 101 DOMString mimeType; |
102 | 102 |
103 // Defined for images and video. In pixels. | 103 // Defined for images and video. In pixels. |
104 long? height; | 104 long? height; |
105 long? width; | 105 long? width; |
106 | 106 |
107 // Defined for audio and video. In seconds. | 107 // Defined for audio and video. In seconds. |
108 double? duration; | 108 double? duration; |
| 109 |
| 110 // Defined for images and video. In degrees. |
| 111 long? rotation; |
109 | 112 |
110 // Generic metadata tags. | 113 // Generic metadata tags. |
111 DOMString? album; | 114 DOMString? album; |
112 DOMString? artist; | 115 DOMString? artist; |
113 DOMString? comment; | 116 DOMString? comment; |
114 DOMString? copyright; | 117 DOMString? copyright; |
115 long? disc; | 118 long? disc; |
116 DOMString? genre; | 119 DOMString? genre; |
117 DOMString? language; | 120 DOMString? language; |
118 DOMString? title; | 121 DOMString? title; |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 optional MediaMetadataOptions options, | 167 optional MediaMetadataOptions options, |
165 MediaMetadataCallback callback); | 168 MediaMetadataCallback callback); |
166 }; | 169 }; |
167 | 170 |
168 interface Events { | 171 interface Events { |
169 // The pending media scan has changed state. See details for more | 172 // The pending media scan has changed state. See details for more |
170 // information. | 173 // information. |
171 static void onScanProgress(ScanProgressDetails details); | 174 static void onScanProgress(ScanProgressDetails details); |
172 }; | 175 }; |
173 }; | 176 }; |
OLD | NEW |