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

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

Issue 2040963004: Reland: ImageCapture: move mojom from WebKit/public to media/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: https://crrev.com/2027023002 Created 4 years, 6 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/third_party/WebKit/public/platform/modules/imagecapture/image_capture.mojom b/media/mojo/interfaces/image_capture.mojom
similarity index 51%
rename from third_party/WebKit/public/platform/modules/imagecapture/image_capture.mojom
rename to media/mojo/interfaces/image_capture.mojom
index 63255316a6bf85559f984adb12498629ea9868c1..a0aa3b41427dc91f514a1b29d2d2dbc21ff66c89 100644
--- a/third_party/WebKit/public/platform/modules/imagecapture/image_capture.mojom
+++ b/media/mojo/interfaces/image_capture.mojom
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-module blink.mojom;
+module media.mojom;
// Equivalent to idl MediaSettingsRange, arbitrary range representing the
// allowed variations of a Capability or an Option.
@@ -13,15 +13,23 @@ struct Range {
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