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

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

Issue 10916019: Move MediaGalleries.getMediaFileSystems out of experimental. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update docs Created 8 years, 3 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
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 // File-level comment to appease parser. Eventually this will not be necessary. 5 // File-level comment to appease parser. Eventually this will not be necessary.
6 6
7 namespace experimental.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] dictionary MediaFileSystemsDetails { 19 [inline_doc] dictionary MediaFileSystemsDetails {
20 // Whether to prompt the user for permission to additional media galleries 20 // Whether to prompt the user for permission to additional media galleries
21 // before returning the permitted set. Default is silent. If the value 21 // before returning the permitted set. Default is silent. If the value
22 // 'yes' is passed, or if the application has not been granted access to 22 // 'yes' is passed, or if the application has not been granted access to
23 // any media galleries and the value 'if_needed' is passed, then the 23 // any media galleries and the value 'if_needed' is passed, then the
24 // media gallery configuration dialog will be displayed. 24 // media gallery configuration dialog will be displayed.
25 GetMediaFileSystemsInteractivity? interactive; 25 GetMediaFileSystemsInteractivity? interactive;
26 }; 26 };
27 27
28 callback MediaFileSystemsCallback = 28 callback MediaFileSystemsCallback =
29 void ([instanceOf=LocalFileSystem] optional object[] mediaFileSystems); 29 void ([instanceOf=LocalFileSystem] optional object[] mediaFileSystems);
30 30
31 callback AssembleMediaFileCallback =
32 void ([instanceOf=Blob] optional object mediaFile);
33
34 interface Functions { 31 interface Functions {
35 // Get the media galleries configured in this user agent. If none are 32 // Get the media galleries configured in this user agent. If none are
36 // configured or available, the callback will receive an empty array. 33 // configured or available, the callback will receive an empty array.
37 static void getMediaFileSystems(optional MediaFileSystemsDetails details, 34 static void getMediaFileSystems(optional MediaFileSystemsDetails details,
38 MediaFileSystemsCallback callback); 35 MediaFileSystemsCallback callback);
39
40 // Create a new MediaFile setting the metadata in the Blob to the supplied
41 // values, overriding any existing metadata in the media file. If user agent
42 // does not recognize the Blob as a supported file format, it will fail.
43 // |mediaFileContents| : the media bytes.
44 // |metadata| : the metadata. TODO(estade): this should be
45 // [instanceOf=Metafile].
46 static void assembleMediaFile(
47 [instanceOf=Blob] object mediaFileContents,
48 object metadata,
49 AssembleMediaFileCallback callback);
50
51 // Get any thumbnails contained in the passed media file. The resulting
52 // directory reader refers to a virtual directory that can not be navigated
53 // to. If there are no thumbnails in the passed file entry, the virtual
54 // directory will have no entries.
55 // TODO(estade): The return type should be Directory. The argument type
56 // should be [instanceOf=FileEntry].
57 [nocompile] static object extractEmbeddedThumbnails(object mediaFile);
58 }; 36 };
59 37
60 }; 38 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698