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

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: compile and test fixes 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 // TODO(estade): this should be [instanceOf=Blob].
21 object mediaFileContents;
22
23 // TODO(estade): this should be [instanceOf=Metafile].
24 object metadata;
25 };
26
27 // TODO(estade): the type of the argument should be LocalFileSystem[].
vandebo (ex-Chrome) 2012/07/19 19:58:31 Do you want to include bug numbers here?
Evan Stade 2012/07/19 20:55:28 are there bug numbers for this? I'm not even sure
vandebo (ex-Chrome) 2012/07/19 22:45:22 Sorry, not sure. I initially assumed it was the s
Evan Stade 2012/07/19 23:06:33 no, i believe that bug's resolved because instance
28 callback MediaFileSystemsCallback = void (object mediaFileSystems);
vandebo (ex-Chrome) 2012/07/19 19:58:31 mediaFileSystems => arrayOfMediaFileSystems ?
Evan Stade 2012/07/19 20:55:28 the type tells you "arrayOf", and the trailing "s"
vandebo (ex-Chrome) 2012/07/19 22:45:22 What do you mean "the type" tells you...? Not sur
Evan Stade 2012/07/19 23:06:33 By "the type" I mean once the TODO is fixed, there
vandebo (ex-Chrome) 2012/07/20 18:30:26 I see... Is there something hard about fixing this
Evan Stade 2012/07/20 19:48:12 yes, the hard thing is figuring out the syntax. Af
29 callback AssembleMediaFileCallback =
30 void ([instanceOf=Blob] optional object mediaFile);
31
32 interface Functions {
33 // Get the media galleries configured in this user agent. If none are
34 // configured or available, the callback will receive an empty array.
35 static void getMediaFileSystems(optional MediaFileSystemsDetails details,
vandebo (ex-Chrome) 2012/07/19 19:58:31 Does this mean that the interactivity argument is
Evan Stade 2012/07/19 20:55:28 yes, it is optional, as I think it should be. Opti
vandebo (ex-Chrome) 2012/07/19 22:45:22 Optional args not at the end of the arg list weird
36 MediaFileSystemsCallback callback);
37
38 // Create a new MediaFile setting the metadata in the Blob to the supplied
39 // values, overriding any existing metadata in the media file. If user agent
40 // does not recognize the Blob as a supported file format, it will fail.
41 static void assembleMediaFile(AssembleMediaFileDetails details,
42 AssembleMediaFileCallback callback);
43
44 // Get any thumbnails contained in the passed media file. The resulting
45 // directory reader refers to a virtual directory that can not be navigated
46 // to. If there are no thumbnails in the passed file entry, the virtual
47 // directory will have no entries.
48 // TODO(estade): The return type should be Directory. The argument type
49 // should be [instanceOf=FileEntry].
Evan Stade 2012/07/19 20:55:28 the reason I didn't include this instanceOf is not
vandebo (ex-Chrome) 2012/07/19 22:45:22 Does it work properly? I had locally set up the t
Evan Stade 2012/07/19 23:06:33 yes, I had this and other types specified, but the
vandebo (ex-Chrome) 2012/07/20 18:30:26 You can use WebKitBlobBuilder to create a Blob tes
Evan Stade 2012/07/20 19:48:12 Done.
50 [nocompile] static object extractEmbeddedThumbnails(object mediaFile);
vandebo (ex-Chrome) 2012/07/19 19:58:31 Does nocompile mean that it's currently not implem
asargent_no_longer_on_chrome 2012/07/19 20:40:12 nocompile means we don't autogenerate C++ code for
Evan Stade 2012/07/19 20:55:28 what Antony said, but as you know it's not impleme
51 };
52
53 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698