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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 void (MediaFileSystemMetadata[] metadata); | 97 void (MediaFileSystemMetadata[] metadata); |
98 | 98 |
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 images only. | |
108 double? xResolution; | |
109 double? yResolution; | |
110 | |
111 // Defined for audio and video. In seconds. | 107 // Defined for audio and video. In seconds. |
112 double? duration; | 108 double? duration; |
113 | 109 |
114 // Defined for images and video. In degrees. | 110 // Defined for images and video. In degrees. |
115 long? rotation; | 111 long? rotation; |
116 | 112 |
117 // Defined for images only. | 113 // Generic metadata tags. |
118 DOMString? cameraMake; | |
119 DOMString? cameraModel; | |
120 double? exposureTimeSeconds; | |
121 boolean? flashFired; | |
122 double? fNumber; | |
123 double? focalLengthMm; | |
124 double? isoEquivalent; | |
125 | |
126 // Defined for audio and video only. | |
127 DOMString? album; | 114 DOMString? album; |
128 DOMString? artist; | 115 DOMString? artist; |
129 DOMString? comment; | 116 DOMString? comment; |
130 DOMString? copyright; | 117 DOMString? copyright; |
131 long? disc; | 118 long? disc; |
132 DOMString? genre; | 119 DOMString? genre; |
133 DOMString? language; | 120 DOMString? language; |
134 DOMString? title; | 121 DOMString? title; |
135 long? track; | 122 long? track; |
136 }; | 123 }; |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 optional MediaMetadataOptions options, | 167 optional MediaMetadataOptions options, |
181 MediaMetadataCallback callback); | 168 MediaMetadataCallback callback); |
182 }; | 169 }; |
183 | 170 |
184 interface Events { | 171 interface Events { |
185 // The pending media scan has changed state. See details for more | 172 // The pending media scan has changed state. See details for more |
186 // information. | 173 // information. |
187 static void onScanProgress(ScanProgressDetails details); | 174 static void onScanProgress(ScanProgressDetails details); |
188 }; | 175 }; |
189 }; | 176 }; |
OLD | NEW |