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

Issue 2239583002: ImageCapture: support enhanced FocusMode getting/setting (Closed)

Created:
4 years, 4 months ago by mcasas
Modified:
4 years, 4 months ago
CC:
Aaron Boodman, abarth-chromium, alokp+watch_chromium.org, ben+mojo_chromium.org, blink-reviews, chromium-reviews, darin (slow to review), feature-media-reviews_chromium.org, haraken, mcasas+watch+vc_chromium.org, miu+watch_chromium.org, posciak+watch_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ImageCapture: 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
Unified diffs Side-by-side diffs Delta from patch set Stats (+213 lines, -82 lines) Patch
M media/capture/video/android/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M media/capture/video/android/java/src/org/chromium/media/PhotoCapabilities.java View 3 chunks +5 lines, -5 lines 0 comments Download
M media/capture/video/android/java/src/org/chromium/media/VideoCapture.java View 1 chunk +3 lines, -2 lines 0 comments Download
M media/capture/video/android/java/src/org/chromium/media/VideoCaptureCamera.java View 4 chunks +56 lines, -24 lines 0 comments Download
M media/capture/video/android/java/src/org/chromium/media/VideoCaptureCamera2.java View 6 chunks +64 lines, -20 lines 0 comments Download
M media/capture/video/android/photo_capabilities.h View 1 2 chunks +11 lines, -1 line 0 comments Download
M media/capture/video/android/photo_capabilities.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M media/capture/video/android/video_capture_device_android.h View 1 chunk +0 lines, -2 lines 0 comments Download
M media/capture/video/android/video_capture_device_android.cc View 1 3 chunks +38 lines, -18 lines 0 comments Download
M media/mojo/interfaces/image_capture.mojom View 2 chunks +3 lines, -1 line 2 comments Download
M third_party/WebKit/LayoutTests/imagecapture/setoptions.html View 3 chunks +10 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/imagecapture/ImageCapture.cpp View 1 chunk +11 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/imagecapture/PhotoCapabilities.cpp View 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/imagecapture/PhotoCapabilities.idl View 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/imagecapture/PhotoSettings.idl View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 29 (18 generated)
mcasas
reillyg@ PTAL at C++ parts qinmin@ PTAL at Java parts.
4 years, 4 months ago (2016-08-13 01:46:38 UTC) #8
Reilly Grant (use Gerrit)
C++ lgtm https://codereview.chromium.org/2239583002/diff/80001/media/capture/video/android/photo_capabilities.h File media/capture/video/android/photo_capabilities.h (right): https://codereview.chromium.org/2239583002/diff/80001/media/capture/video/android/photo_capabilities.h#newcode17 media/capture/video/android/photo_capabilities.h:17: // Blabla? ? https://codereview.chromium.org/2239583002/diff/80001/media/capture/video/android/video_capture_device_android.cc File media/capture/video/android/video_capture_device_android.cc (right): ...
4 years, 4 months ago (2016-08-15 20:28:18 UTC) #9
qinmin
lgtm
4 years, 4 months ago (2016-08-15 20:49:07 UTC) #10
mcasas
tsepez@ media/mojo/interfaces/image_capture.mojom plz https://codereview.chromium.org/2239583002/diff/80001/media/capture/video/android/photo_capabilities.h File media/capture/video/android/photo_capabilities.h (right): https://codereview.chromium.org/2239583002/diff/80001/media/capture/video/android/photo_capabilities.h#newcode17 media/capture/video/android/photo_capabilities.h:17: // Blabla? On 2016/08/15 20:28:18, Reilly ...
4 years, 4 months ago (2016-08-15 21:08:54 UTC) #12
Tom Sepez
LGTM otherwise. https://codereview.chromium.org/2239583002/diff/140001/media/mojo/interfaces/image_capture.mojom File media/mojo/interfaces/image_capture.mojom (right): https://codereview.chromium.org/2239583002/diff/140001/media/mojo/interfaces/image_capture.mojom#newcode40 media/mojo/interfaces/image_capture.mojom:40: FocusMode focus_mode; Would Mojom's optional member feature ...
4 years, 4 months ago (2016-08-15 22:27:55 UTC) #15
mcasas
https://codereview.chromium.org/2239583002/diff/140001/media/mojo/interfaces/image_capture.mojom File media/mojo/interfaces/image_capture.mojom (right): https://codereview.chromium.org/2239583002/diff/140001/media/mojo/interfaces/image_capture.mojom#newcode40 media/mojo/interfaces/image_capture.mojom:40: FocusMode focus_mode; On 2016/08/15 22:27:55, Tom Sepez wrote: > ...
4 years, 4 months ago (2016-08-15 22:58:54 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2239583002/140001
4 years, 4 months ago (2016-08-16 01:36:57 UTC) #23
commit-bot: I haz the power
Committed patchset #2 (id:140001)
4 years, 4 months ago (2016-08-16 03:22:12 UTC) #25
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/900fd602c52a2bd986c7230a2fdfacba3294db7c Cr-Commit-Position: refs/heads/master@{#412156}
4 years, 4 months ago (2016-08-16 03:25:43 UTC) #27
hta - Chromium
On 2016/08/16 03:25:43, commit-bot: I haz the power wrote: > Patchset 2 (id:??) landed as ...
4 years, 4 months ago (2016-08-16 11:06:35 UTC) #28
mcasas
4 years, 4 months ago (2016-08-16 15:53:19 UTC) #29
Message was sent while issue was closed.
On 2016/08/16 11:06:35, hta - Chromium wrote:
> On 2016/08/16 03:25:43, commit-bot: I haz the power wrote:
> > Patchset 2 (id:??) landed as
> > https://crrev.com/900fd602c52a2bd986c7230a2fdfacba3294db7c
> > Cr-Commit-Position: refs/heads/master@{#412156}
> 
> (post-commit comment)
> 
> what's the PR number for the spec update?
> Please indicate that in a comment when you go beyond what's currently
published.

It's https://github.com/w3c/mediacapture-image/pull/42, I thought it
straightforward enough to be merged in before this patch would land.

Powered by Google App Engine
This is Rietveld 408576698