Chromium Code Reviews
DescriptionImage Capture: teach takePhoto() to accept an optional PhotoSettings dictionary (2nd landing)
[Note] The first landing was reverted due to a wrong rebase on
my side: forgot to close a { :-P
This CL:
- Adds an optional PhotoSettings arg to takePhoto(),
- cleanup: the 3 private methods used to receive mojo callbacks
(OnPhotoCapabilities, OnSetOptions and OnTakePhoto) get a Mojo
prefix, for clarity.
- adds a |trigger_take_photo| argument to setOptions() and a few
others that pass it along; takePhoto() uses it to setOptions() when
appropriate. The sequence of method calls in ImageCapture.cpp then
would be:
- without options
takePhoto() -> OnMojoTakePhoto()
- with options:
takePhoto(options) -> setOptions(trigger_take_photo == true) --> OnMojoSetOptions(true) --> OnMojoPhotoCapabilities(true) --> OnMojoTakePhoto()
- methods OnCapabilitiesUpdate() and OnCapabilitiesUpdateInternal()
(which are essentially the same thing) are merged and the resulting
method renamed to UpdateMediaTrackCapabilities() to make more
evident what it does.
BUG=718632
Review-Url: https://codereview.chromium.org/2865563002
Cr-Commit-Position: refs/heads/master@{#469766}
NOPRESUBMIT=true
NOTRY=true
TBR=reillyg@chromium.org (reviewer of the original CL)
Review-Url: https://codereview.chromium.org/2871653003 .
Cr-Commit-Position: refs/branch-heads/3071@{#463}
Cr-Branched-From: a106f0abbf69dad349d4aaf4bcc4f5d376dd2377-refs/heads/master@{#464641}
Committed: https://chromium.googlesource.com/chromium/src/+/b4d3ac8136a52dbdcd521ac47fefb55bda7dbe88
Patch Set 1 #
Messages
Total messages: 9 (5 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||