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

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

Issue 2239583002: ImageCapture: support enhanced FocusMode getting/setting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: reillyg@ comments Created 4 years, 4 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
Index: media/mojo/interfaces/image_capture.mojom
diff --git a/media/mojo/interfaces/image_capture.mojom b/media/mojo/interfaces/image_capture.mojom
index 7c7fed8260a49eaf36fe73b74595b2179198da6d..c5f0bd36a5861a8bfdca70cd5c7c3430954f001f 100644
--- a/media/mojo/interfaces/image_capture.mojom
+++ b/media/mojo/interfaces/image_capture.mojom
@@ -14,7 +14,7 @@ struct Range {
};
// https://w3c.github.io/mediacapture-image/#idl-def-FocusMode
-enum FocusMode { UNAVAILABLE, AUTO, MANUAL };
+enum FocusMode { UNAVAILABLE, MANUAL, SINGLE_SHOT, CONTINUOUS };
// Equivalent to idl PhotoCapabilities,
// https://w3c.github.io/mediacapture-image/#photocapabilities
@@ -36,6 +36,8 @@ struct PhotoSettings {
uint32 width;
bool has_height;
uint32 height;
+ bool has_focus_mode;
+ FocusMode focus_mode;
Tom Sepez 2016/08/15 22:27:55 Would Mojom's optional member feature be more appr
mcasas 2016/08/15 22:58:54 Enum suffers from the same problem as integer type
};
// This is a mojo move-only equivalent of a Blob, i.e. MIME type and Data.

Powered by Google App Engine
This is Rietveld 408576698