| 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);
|
| };
|
|
|