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

Unified Diff: third_party/chrome/idl/experimental_media_galleries.idl

Issue 12261015: Import chrome idl into third_party (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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: third_party/chrome/idl/experimental_media_galleries.idl
diff --git a/third_party/chrome/idl/experimental_media_galleries.idl b/third_party/chrome/idl/experimental_media_galleries.idl
new file mode 100644
index 0000000000000000000000000000000000000000..0ada32ebce999bca020a6288e79749d02868f9ae
--- /dev/null
+++ b/third_party/chrome/idl/experimental_media_galleries.idl
@@ -0,0 +1,31 @@
+// 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.
+
+namespace experimental.mediaGalleries {
+
+ callback AssembleMediaFileCallback =
+ void ([instanceOf=Blob] optional object mediaFile);
+
+ interface Functions {
+ // 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.
+ // |mediaFileContents| : the media bytes.
+ // |metadata| : the metadata. TODO(estade): this should be
+ // [instanceOf=Metafile].
+ static void assembleMediaFile(
+ [instanceOf=Blob] object mediaFileContents,
+ object metadata,
+ 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 | « third_party/chrome/idl/experimental_input_virtual_keyboard.json ('k') | third_party/chrome/idl/experimental_notification.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698