Chromium Code Reviews
        
  DescriptionImage 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
      
     
  
  Messages
    Total messages: 28 (18 generated)
     
  
  
       |