| Index: media/mojo/interfaces/image_capture.mojom
|
| diff --git a/media/mojo/interfaces/image_capture.mojom b/media/mojo/interfaces/image_capture.mojom
|
| index 3546651c15790a962036d62999b5fdaa55d77dd8..231956cf2d4b0fd25b4412a2a0c5b689d7aad04a 100644
|
| --- a/media/mojo/interfaces/image_capture.mojom
|
| +++ b/media/mojo/interfaces/image_capture.mojom
|
| @@ -31,6 +31,12 @@ struct PhotoSettings {
|
| uint32 zoom;
|
| };
|
|
|
| +// This is a mojo move-only equivalent of a Blob, i.e. MIME type and Data.
|
| +struct Blob {
|
| + string mime_type;
|
| + array<uint8> data;
|
| +};
|
| +
|
| // |source_id| is the renderer-side UUID identifier of the image capture device.
|
| interface ImageCapture
|
| {
|
| @@ -44,9 +50,9 @@ interface ImageCapture
|
| SetOptions(string source_id, PhotoSettings settings)
|
| => (bool success);
|
|
|
| - // Takes a Photo from the given |source_id|, returning it encoded in |data|
|
| - // with the format specified in |mime_type|.
|
| + // Takes a Photo from the given |source_id|, returning it encoded in |blob|
|
| + // with the format specified in its |mime_type|.
|
| // https://w3c.github.io/mediacapture-image/index.html#widl-ImageCapture-takePhoto-Promise-Blob
|
| TakePhoto(string source_id)
|
| - => (string mime_type, array<uint8> data);
|
| + => (Blob blob);
|
| };
|
|
|