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

Unified Diff: media/mojo/interfaces/image_capture.mojom

Issue 2027023002: ImageCapture: move mojom from WebKit/public to media/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Restricted DEPS, added .mojom comments Created 4 years, 7 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
« no previous file with comments | « media/mojo/interfaces/BUILD.gn ('k') | media/mojo/interfaces/mojo_bindings.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mojo/interfaces/image_capture.mojom
diff --git a/media/mojo/interfaces/image_capture.mojom b/media/mojo/interfaces/image_capture.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..a0aa3b41427dc91f514a1b29d2d2dbc21ff66c89
--- /dev/null
+++ b/media/mojo/interfaces/image_capture.mojom
@@ -0,0 +1,35 @@
+// Copyright 2016 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.
+
+module media.mojom;
+
+// Equivalent to idl MediaSettingsRange, arbitrary range representing the
+// allowed variations of a Capability or an Option.
+// http://w3c.github.io/mediacapture-image/#mediasettingsrange
+struct Range {
+ uint32 max;
+ uint32 min;
+ uint32 current;
+};
+
+// Equivalent to idl PhotoCapabilities,
+// http://w3c.github.io/mediacapture-image/#photocapabilities
+struct PhotoCapabilities {
+ Range zoom;
+};
+
+// |source_id| is the renderer-side UUID identifier of the image capture device.
+interface ImageCapture
+{
+ // Retrieves the image capture device capabilities and current settings.
+ // http://w3c.github.io/mediacapture-image/index.html#widl-ImageCapture-getPhotoCapabilities-Promise-PhotoCapabilities
+ GetCapabilities(string source_id)
+ => (PhotoCapabilities capabilities);
+
+ // Takes a Photo from the given |source_id|, returning it encoded in |data|
+ // with the format specified in |mime_type|.
+ // http://w3c.github.io/mediacapture-image/index.html#widl-ImageCapture-takePhoto-Promise-Blob
+ TakePhoto(string source_id)
+ => (string mime_type, array<uint8> data);
+};
« no previous file with comments | « media/mojo/interfaces/BUILD.gn ('k') | media/mojo/interfaces/mojo_bindings.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698