Index: third_party/WebKit/public/platform/modules/imagecapture/image_capture.mojom |
diff --git a/third_party/WebKit/public/platform/modules/imagecapture/image_capture.mojom b/third_party/WebKit/public/platform/modules/imagecapture/image_capture.mojom |
new file mode 100644 |
index 0000000000000000000000000000000000000000..63255316a6bf85559f984adb12498629ea9868c1 |
--- /dev/null |
+++ b/third_party/WebKit/public/platform/modules/imagecapture/image_capture.mojom |
@@ -0,0 +1,27 @@ |
+// 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 blink.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; |
+}; |
+ |
+struct PhotoCapabilities { |
+ Range zoom; |
+}; |
+ |
+interface ImageCapture |
+{ |
+ GetCapabilities(string source_id) |
+ => (PhotoCapabilities capabilities); |
+ |
+ TakePhoto(string source_id) |
+ => (string mime_type, array<uint8> data); |
+}; |