Chromium Code Reviews
DescriptionImageCapture: support enhanced FocusMode getting/setting
This CL provides support for FocusMode getting/setting
for the ImageCapture API. In particular:
- FocusMode used to be boolean-like (manual/auto), but
is changed to an enum throughout: "manual", "single-shot"
and "continuous", which better reflects the hardware modes.
- WebKit parts and LayoutTest updated.
- support for setting Focus is added, which forces to
beef up the java setPhotoOptions() method. This is turn
makes possible to bring the options |width| and |height|
into it, and out of takePhoto(). (and that allows for them
being removed from VCDAndroid class).
- setting FocusMode to single-shot must trigger a focus
sweep, and usually is done in AUTO mode.
BUG=518807
TEST=extensively in a N7.2, N6, N5x with
https://rawgit.com/Miguelao/demos/master/imagecapture.html
Committed: https://crrev.com/900fd602c52a2bd986c7230a2fdfacba3294db7c
Cr-Commit-Position: refs/heads/master@{#412156}
Patch Set 1 #
Total comments: 4
Patch Set 2 : reillyg@ comments #
Total comments: 2
Messages
Total messages: 29 (18 generated)
|