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

Issue 2872713002: Revert of Image Capture: teach takePhoto() to accept an optional PhotoSettings dictionary (Closed)

Created:
3 years, 7 months ago by khmel
Modified:
3 years, 7 months ago
Reviewers:
mcasas
CC:
chromium-reviews
Target Ref:
refs/branch-heads/3071
Project:
chromium
Visibility:
Public.

Description

Revert of Image Capture: teach takePhoto() to accept an optional PhotoSettings dictionary (patchset #1 id:1 of https://codereview.chromium.org/2866053002/ ) Reason for revert: This breaks build ../../third_party/WebKit/Source/modules/imagecapture/ImageCapture.cpp:570:61: error: function definition is not allowed here media::mojom::blink::PhotoCapabilitiesPtr capabilities) { Sorry, Miguel Original issue's description: > Image Capture: teach takePhoto() to accept an optional PhotoSettings dictionary > > 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} > (cherry picked from commit 3fd00a51e22a0ffa55d0ab14725f9f300b2fc56b) > > Review-Url: https://codereview.chromium.org/2866053002 . > Cr-Commit-Position: refs/branch-heads/3071@{#451} > Cr-Branched-From: a106f0abbf69dad349d4aaf4bcc4f5d376dd2377-refs/heads/master@{#464641} > Committed: https://chromium.googlesource.com/chromium/src/+/dcc52283947a13edbd756eb739ee55a372fa5483 TBR=mcasas@chromium.org # Skipping CQ checks because original CL landed less than 1 days ago. NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=718632 Review-Url: https://codereview.chromium.org/2872713002 Cr-Commit-Position: refs/branch-heads/3071@{#457} Cr-Branched-From: a106f0abbf69dad349d4aaf4bcc4f5d376dd2377-refs/heads/master@{#464641} Committed: https://chromium.googlesource.com/chromium/src/+/d0f1c8d5aa6c645af631bd1772b5aa2afda2cae7

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+122 lines, -213 lines) Patch
D third_party/WebKit/LayoutTests/imagecapture/takephoto-with-photosettings.html View 1 chunk +0 lines, -71 lines 0 comments Download
M third_party/WebKit/Source/modules/imagecapture/ImageCapture.h View 2 chunks +8 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/modules/imagecapture/ImageCapture.cpp View 7 chunks +113 lines, -129 lines 0 comments Download
M third_party/WebKit/Source/modules/imagecapture/ImageCapture.idl View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 6 (3 generated)
khmel
Created Revert of Image Capture: teach takePhoto() to accept an optional PhotoSettings dictionary
3 years, 7 months ago (2017-05-08 19:21:46 UTC) #2
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/2872713002/1
3 years, 7 months ago (2017-05-08 19:23:14 UTC) #3
commit-bot: I haz the power
3 years, 7 months ago (2017-05-08 19:25:24 UTC) #6
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/d0f1c8d5aa6c645af631bd1772b5...

Powered by Google App Engine
This is Rietveld 408576698