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

Issue 2757673005: Image Capture: MediaStreamTrack::applyConstraints() (Closed)

Created:
3 years, 9 months ago by mcasas
Modified:
3 years, 9 months ago
CC:
blink-reviews, blink-reviews-w3ctests_chromium.org, chromium-reviews, haraken, kinuko+watch, mcasas+imagecapture_chromium.org, tommyw+watchlist_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Image Capture: MediaStreamTrack::applyConstraints() This CL adds MediaStreamTrack.applyConstraints() method behind a flag (that is implied if ImageCapture is on). The method essentially derives to ImageCapture::setMediaTrackConstraints(); this one prepares a mojo::PhotoSettings and applies it via mojo interface. Only simple Constrains are supported now, i.e., {zoom : 3.14} is supported, but {zoom : { ideal : 100}} or {zoom : { exact : 27}} are not (TBD later). LayoutTests are added where appropriate. Also a cleanup: methods that return Promises are not supposed to throw exceptions; so I removed an unused ExceptionState from some ImageCapture methods. applyConstraints() when called without the optional argument |constraints|, and is supposed to do... nothing? Filed Spec bug: https://github.com/w3c/mediacapture-main/issues/438 BUG=700607 Review-Url: https://codereview.chromium.org/2757673005 Cr-Commit-Position: refs/heads/master@{#457771} Committed: https://chromium.googlesource.com/chromium/src/+/ef23b14712be35baab5b30b0176808911f9bb638

Patch Set 1 : #

Total comments: 8

Patch Set 2 : guidou@ and reillyg@ comments #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+276 lines, -28 lines) Patch
M third_party/WebKit/LayoutTests/external/wpt/mediacapture-streams/MediaStreamTrack-init.https-expected.txt View 2 chunks +3 lines, -3 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/imagecapture/MediaStreamTrack-applyConstraints.html View 1 1 chunk +29 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/imagecapture/MediaStreamTrack-applyConstraints.html View 1 chunk +87 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/imagecapture/ImageCapture.h View 2 chunks +8 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/modules/imagecapture/ImageCapture.cpp View 1 9 chunks +89 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/modules/imagecapture/ImageCapture.idl View 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/modules/mediastream/MediaStreamTrack.h View 3 chunks +4 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/mediastream/MediaStreamTrack.cpp View 1 3 chunks +27 lines, -0 lines 2 comments Download
M third_party/WebKit/Source/modules/mediastream/MediaStreamTrack.idl View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/mediastream/MediaTrackConstraintSet.idl View 1 chunk +18 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/RuntimeEnabledFeatures.json5 View 1 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (18 generated)
mcasas
reillyg@ PTAL at *imagecapture* guidou@ PTAL/RS mediastream parts.
3 years, 9 months ago (2017-03-16 22:58:37 UTC) #9
Reilly Grant (use Gerrit)
lgtm with nit https://codereview.chromium.org/2757673005/diff/40001/third_party/WebKit/LayoutTests/fast/imagecapture/MediaStreamTrack-applyConstraints.html File third_party/WebKit/LayoutTests/fast/imagecapture/MediaStreamTrack-applyConstraints.html (right): https://codereview.chromium.org/2757673005/diff/40001/third_party/WebKit/LayoutTests/fast/imagecapture/MediaStreamTrack-applyConstraints.html#newcode10 third_party/WebKit/LayoutTests/fast/imagecapture/MediaStreamTrack-applyConstraints.html:10: // when called with no parameters, ...
3 years, 9 months ago (2017-03-16 23:43:25 UTC) #10
Guido Urdaneta
https://codereview.chromium.org/2757673005/diff/40001/third_party/WebKit/Source/modules/imagecapture/ImageCapture.cpp File third_party/WebKit/Source/modules/imagecapture/ImageCapture.cpp (right): https://codereview.chromium.org/2757673005/diff/40001/third_party/WebKit/Source/modules/imagecapture/ImageCapture.cpp#newcode286 third_party/WebKit/Source/modules/imagecapture/ImageCapture.cpp:286: ScriptPromiseResolver* resolver, Maybe add a TODO indicating that the ...
3 years, 9 months ago (2017-03-17 00:30:28 UTC) #11
mcasas
guidou@ PTAL tkent@ RS plz the extra runtime flag. https://codereview.chromium.org/2757673005/diff/40001/third_party/WebKit/LayoutTests/fast/imagecapture/MediaStreamTrack-applyConstraints.html File third_party/WebKit/LayoutTests/fast/imagecapture/MediaStreamTrack-applyConstraints.html (right): https://codereview.chromium.org/2757673005/diff/40001/third_party/WebKit/LayoutTests/fast/imagecapture/MediaStreamTrack-applyConstraints.html#newcode10 third_party/WebKit/LayoutTests/fast/imagecapture/MediaStreamTrack-applyConstraints.html:10: ...
3 years, 9 months ago (2017-03-17 00:49:22 UTC) #13
tkent
lgtm
3 years, 9 months ago (2017-03-17 01:00:13 UTC) #16
Guido Urdaneta
lgtm
3 years, 9 months ago (2017-03-17 09:40:03 UTC) #19
haraken
Implementation-wise LGTM https://codereview.chromium.org/2757673005/diff/60001/third_party/WebKit/Source/modules/mediastream/MediaStreamTrack.cpp File third_party/WebKit/Source/modules/mediastream/MediaStreamTrack.cpp (right): https://codereview.chromium.org/2757673005/diff/60001/third_party/WebKit/Source/modules/mediastream/MediaStreamTrack.cpp#newcode289 third_party/WebKit/Source/modules/mediastream/MediaStreamTrack.cpp:289: resolver->resolve(); Would it be better to reject ...
3 years, 9 months ago (2017-03-17 09:43:52 UTC) #21
mcasas
https://codereview.chromium.org/2757673005/diff/60001/third_party/WebKit/Source/modules/mediastream/MediaStreamTrack.cpp File third_party/WebKit/Source/modules/mediastream/MediaStreamTrack.cpp (right): https://codereview.chromium.org/2757673005/diff/60001/third_party/WebKit/Source/modules/mediastream/MediaStreamTrack.cpp#newcode289 third_party/WebKit/Source/modules/mediastream/MediaStreamTrack.cpp:289: resolver->resolve(); On 2017/03/17 09:43:51, haraken wrote: > > Would ...
3 years, 9 months ago (2017-03-17 15:12:48 UTC) #22
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/2757673005/60001
3 years, 9 months ago (2017-03-17 15:14:14 UTC) #25
commit-bot: I haz the power
3 years, 9 months ago (2017-03-17 15:20:38 UTC) #28
Message was sent while issue was closed.
Committed patchset #2 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/ef23b14712be35baab5b30b01768...

Powered by Google App Engine
This is Rietveld 408576698