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

Unified 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: more 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/api/experimental_media_galleries.idl
diff --git a/chrome/common/extensions/api/experimental_media_galleries.idl b/chrome/common/extensions/api/experimental_media_galleries.idl
new file mode 100644
index 0000000000000000000000000000000000000000..318e675b37baa20424fbd53295ac0f427f3977de
--- /dev/null
+++ b/chrome/common/extensions/api/experimental_media_galleries.idl
@@ -0,0 +1,52 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// File-level comment to appease parser. Eventually this will not be necessary.
+
+namespace experimental.mediaGalleries {
+
+ enum GetMediaFileSystemsInteractivity {
+ silent, prompt, prompt_if_needed
+ };
+
+ [inline_doc] dictionary MediaFileSystemsDetails {
+ // Whether to prompt the user for additional media galleries before
+ // returning the permitted set. Default is silent.
+ GetMediaFileSystemsInteractivity? interactivity;
+ };
+
+ dictionary AssembleMediaFileDetails {
+ [instanceOf=Blob] object mediaFileContents;
+
+ // TODO(estade): this should be [instanceOf=Metafile].
+ object metadata;
+ };
+
+ callback MediaFileSystemsCallback =
+ void ([instanceOf=LocalFileSystem] optional object[] mediaFileSystems);
Evan Stade 2012/07/20 19:48:13 Antony, does this look correct? it seems to work.
asargent_no_longer_on_chrome 2012/07/20 19:55:07 Yep, that looks correct.
+ callback AssembleMediaFileCallback =
+ void ([instanceOf=Blob] optional object mediaFile);
+
+ interface Functions {
+ // Get the media galleries configured in this user agent. If none are
+ // configured or available, the callback will receive an empty array.
+ static void getMediaFileSystems(optional MediaFileSystemsDetails details,
+ MediaFileSystemsCallback callback);
+
+ // Create a new MediaFile setting the metadata in the Blob to the supplied
+ // values, overriding any existing metadata in the media file. If user agent
+ // does not recognize the Blob as a supported file format, it will fail.
+ static void assembleMediaFile(AssembleMediaFileDetails details,
+ AssembleMediaFileCallback callback);
+
+ // Get any thumbnails contained in the passed media file. The resulting
+ // directory reader refers to a virtual directory that can not be navigated
+ // to. If there are no thumbnails in the passed file entry, the virtual
+ // directory will have no entries.
+ // TODO(estade): The return type should be Directory. The argument type
+ // should be [instanceOf=FileEntry].
+ [nocompile] static object extractEmbeddedThumbnails(object mediaFile);
+ };
+
+};
« no previous file with comments | « chrome/common/extensions/api/api.gyp ('k') | chrome/common/extensions/api/experimental_media_galleries.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698