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

Issue 2773593004: Image Capture: prune Photo{Capabilities/Settings} and add MediaTrackConstraintSet.pointsOfInterest (Closed)

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

Description

Image Capture: prune Photo{Capabilities/Settings} and add MediaTrackConstraintSet.pointsOfInterest - This CL removes from PhotoCapabilities.idl the fields that are not there anymore according to the spec [1], leaving just four of them. The corresponding code and LayoutTests are updated. Same for PhotoSettings.idl [2]. - This CL also adds ConstrainPoint2D data type [3] and uses it for MediaTrackConstraintSet.pointsOfInterest, wiring it down to the mojo interface and in the mock. - This is the one and only important change visible to the users. (There is an Origin Trial going on for Image Capture in M56-57-58, but these changes will land in 59.x.y.z, so shouldn't affect them, in any case an update to blink-dev@ is being brewed and there's a migration guide: https://tinyurl.com/image-capture-migration-guide ) - No more MediaStreamTrack idl changes are expected after this CL \o/ TEST= Layouttests etc updated. BUG=700607 [1] https://w3c.github.io/mediacapture-image/##photocapabilities-section [2] https://w3c.github.io/mediacapture-image/##photosettings-section [3] https://w3c.github.io/mediacapture-image/#additional-constrainable-props Review-Url: https://codereview.chromium.org/2773593004 Cr-Commit-Position: refs/heads/master@{#459367} Committed: https://chromium.googlesource.com/chromium/src/+/7f9e2de323e9265aee33ba9683ba98b09fec6769

Patch Set 1 : Update global-interface-listing-expected.txt #

Total comments: 4

Patch Set 2 : reillyg@ comments on idl urls. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+93 lines, -387 lines) Patch
M third_party/WebKit/LayoutTests/fast/imagecapture/ImageCapture-MediaTrackSupportedConstraints.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/imagecapture/MediaStreamTrack-applyConstraints.html View 2 chunks +3 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/imagecapture/MediaStreamTrack-applyConstraints-getSettings.html View 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/imagecapture/MediaStreamTrack-getCapabilities.html View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/imagecapture/getphotocapabilities.html View 4 chunks +0 lines, -81 lines 0 comments Download
M third_party/WebKit/LayoutTests/imagecapture/resources/mock-imagecapture.js View 3 chunks +30 lines, -32 lines 0 comments Download
M third_party/WebKit/LayoutTests/imagecapture/setoptions.html View 3 chunks +15 lines, -65 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt View 1 chunk +0 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/bindings/modules/v8/generated.gni View 1 chunk +2 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/imagecapture/ConstrainPoint2DParameters.idl View 1 chunk +10 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/imagecapture/ImageCapture.h View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/imagecapture/ImageCapture.cpp View 7 chunks +19 lines, -64 lines 0 comments Download
M third_party/WebKit/Source/modules/imagecapture/PhotoCapabilities.h View 2 chunks +0 lines, -59 lines 0 comments Download
M third_party/WebKit/Source/modules/imagecapture/PhotoCapabilities.cpp View 2 chunks +0 lines, -40 lines 0 comments Download
M third_party/WebKit/Source/modules/imagecapture/PhotoCapabilities.idl View 1 2 chunks +2 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/modules/imagecapture/PhotoSettings.idl View 1 1 chunk +1 line, -14 lines 0 comments Download
M third_party/WebKit/Source/modules/mediastream/MediaTrackConstraintSet.idl View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/modules_idl_files.gni View 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (19 generated)
mcasas
reillyg@ PTAL at the removals and (small) changes. haraken@ RS plz the addition of idl ...
3 years, 9 months ago (2017-03-23 21:22:42 UTC) #6
Guido Urdaneta
mediastream lgtm
3 years, 9 months ago (2017-03-23 22:59:04 UTC) #8
Reilly Grant (use Gerrit)
lgtm with nits https://codereview.chromium.org/2773593004/diff/40001/third_party/WebKit/Source/modules/imagecapture/PhotoCapabilities.idl File third_party/WebKit/Source/modules/imagecapture/PhotoCapabilities.idl (right): https://codereview.chromium.org/2773593004/diff/40001/third_party/WebKit/Source/modules/imagecapture/PhotoCapabilities.idl#newcode5 third_party/WebKit/Source/modules/imagecapture/PhotoCapabilities.idl:5: // https://www.w3.org/TR/image-capture/#PhotoCapabilities This should probably point ...
3 years, 9 months ago (2017-03-23 23:58:48 UTC) #12
haraken
LGTM
3 years, 9 months ago (2017-03-24 00:40:38 UTC) #15
mcasas
https://codereview.chromium.org/2773593004/diff/40001/third_party/WebKit/Source/modules/imagecapture/PhotoCapabilities.idl File third_party/WebKit/Source/modules/imagecapture/PhotoCapabilities.idl (right): https://codereview.chromium.org/2773593004/diff/40001/third_party/WebKit/Source/modules/imagecapture/PhotoCapabilities.idl#newcode5 third_party/WebKit/Source/modules/imagecapture/PhotoCapabilities.idl:5: // https://www.w3.org/TR/image-capture/#PhotoCapabilities On 2017/03/23 23:58:48, Reilly Grant wrote: > ...
3 years, 9 months ago (2017-03-24 01:09:35 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/2773593004/60001
3 years, 9 months ago (2017-03-24 04:22:15 UTC) #23
commit-bot: I haz the power
3 years, 9 months ago (2017-03-24 05:48:56 UTC) #26
Message was sent while issue was closed.
Committed patchset #2 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/7f9e2de323e9265aee33ba9683ba...

Powered by Google App Engine
This is Rietveld 408576698