Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(824)

Side by Side Diff: chrome/common/extensions/api/media_galleries.idl

Issue 250143002: Media Galleries API: Audio/Video attached pictures support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: transition to AttachedPicture struct and eliminate a copy Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/common/chrome_utility_messages.h ('k') | chrome/common/media_galleries/metadata_types.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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.
11 no, 11 no,
12 // Ask the user to manage permitted media galleries. 12 // Ask the user to manage permitted media galleries.
13 yes, 13 yes,
14 // Ask the user to manage permitted galleries only if the return set would 14 // Ask the user to manage permitted galleries only if the return set would
15 // otherwise be empty. 15 // otherwise be empty.
16 if_needed 16 if_needed
17 }; 17 };
18 18
19 [inline_doc] enum GetMetadataType { 19 [inline_doc] enum GetMetadataType {
20 // Retrieve all available metadata. 20 // Retrieve the mime type, metadata tags, and attached pictures.
vandebo (ex-Chrome) 2014/04/29 16:09:03 nit: pictures -> images
tommycli 2014/04/29 22:57:00 Done.
21 all, 21 all,
22 // Retrieve only the mime type and the metadata tags.
23 mimeTypeAndTags,
22 // Retrieve only the mime type. 24 // Retrieve only the mime type.
23 mimeTypeOnly 25 mimeTypeOnly
24 }; 26 };
25 27
26 [inline_doc] enum ScanProgressType { 28 [inline_doc] enum ScanProgressType {
27 // The scan started. 29 // The scan started.
28 start, 30 start,
29 // The scan was cancelled. 31 // The scan was cancelled.
30 cancel, 32 cancel,
31 // The scan finished but none of the result have been added, 33 // The scan finished but none of the result have been added,
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 DOMString? copyright; 142 DOMString? copyright;
141 long? disc; 143 long? disc;
142 DOMString? genre; 144 DOMString? genre;
143 DOMString? language; 145 DOMString? language;
144 DOMString? title; 146 DOMString? title;
145 long? track; 147 long? track;
146 148
147 // All the metadata in the media file. For formats with multiple streams, 149 // All the metadata in the media file. For formats with multiple streams,
148 // stream order will be preserved. Container metadata is the first element. 150 // stream order will be preserved. Container metadata is the first element.
149 StreamInfo[] rawTags; 151 StreamInfo[] rawTags;
152
153 // The images embedded in the media file's metadata. This is most often
154 // used for album art or video thumbnails.
155 [instanceof=Blob] object[] attachedPictures;
150 }; 156 };
151 157
152 callback MediaMetadataCallback = void (MediaMetadata metadata); 158 callback MediaMetadataCallback = void (MediaMetadata metadata);
153 159
154 interface Functions { 160 interface Functions {
155 // Get the media galleries configured in this user agent. If none are 161 // Get the media galleries configured in this user agent. If none are
156 // configured or available, the callback will receive an empty array. 162 // configured or available, the callback will receive an empty array.
157 static void getMediaFileSystems(optional MediaFileSystemsDetails details, 163 static void getMediaFileSystems(optional MediaFileSystemsDetails details,
158 MediaFileSystemsCallback callback); 164 MediaFileSystemsCallback callback);
159 165
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 optional MediaMetadataOptions options, 205 optional MediaMetadataOptions options,
200 MediaMetadataCallback callback); 206 MediaMetadataCallback callback);
201 }; 207 };
202 208
203 interface Events { 209 interface Events {
204 // The pending media scan has changed state. See details for more 210 // The pending media scan has changed state. See details for more
205 // information. 211 // information.
206 static void onScanProgress(ScanProgressDetails details); 212 static void onScanProgress(ScanProgressDetails details);
207 }; 213 };
208 }; 214 };
OLDNEW
« no previous file with comments | « chrome/common/chrome_utility_messages.h ('k') | chrome/common/media_galleries/metadata_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698