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