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

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

Issue 10806023: switch mediaGalleries to .idl api definition (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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
(Empty)
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
3 // found in the LICENSE file.
4
5 // File-level comment to appease parser. Eventually this will not be necessary.
6
7 namespace experimental.mediaGalleries {
8
9 enum GetMediaFileSystemsInteractivity {
10 silent, prompt, prompt_if_needed
11 };
12
13 [inline_doc] dictionary MediaFileSystemsDetails {
14 // Whether to prompt the user for additional media galleries before
15 // returning the permitted set. Default is silent.
16 GetMediaFileSystemsInteractivity? interactivity;
17 };
18
19 dictionary AssembleMediaFileDetails {
20 [instanceOf=Blob] object mediaFileContents;
21
22 [instanceOf=Metafile] object metadata;
23 };
24
25 // TODO(estade): the type of the argument should be LocalFileSystem[].
26 callback MediaFileSystemsCallback = void (object mediaFileSystems);
27 callback AssembleMediaFileCallback =
28 void ([instanceOf=Blob] optional object mediaFile);
29
30 interface Functions {
31 // Get the media galleries configured in this user agent. If none are
32 // configured or available, the callback will receive an empty array.
33 static void getMediaFileSystems(optional MediaFileSystemsDetails details,
34 MediaFileSystemsCallback callback);
35
36 // Create a new MediaFile setting the metadata in the Blob to the supplied
37 // values, overriding any existing metadata in the media file. If user agent
38 // does not recognize the Blob as a supported file format, it will fail.
39 static void assembleMediaFile(AssembleMediaFileDetails details,
40 AssembleMediaFileCallback callback);
41
42 // Get any thumbnails contained in the passed media file. The resulting
43 // directory reader refers to a virtual directory that can not be navigated
44 // to. If there are no thumbnails in the passed file entry, the virtual
45 // directory will have no entries.
46 // TODO(estade): The return type should be Directory.
47 [nocompile] static object extractEmbeddedThumbnails(
48 [instanceOf=FileEntry] object mediaFile);
49 };
50
51 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698