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

Unified Diff: third_party/WebKit/Source/modules/mediastream/MediaTrackConstraintSet.idl

Issue 2757673005: Image Capture: MediaStreamTrack::applyConstraints() (Closed)
Patch Set: guidou@ and reillyg@ comments Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/mediastream/MediaTrackConstraintSet.idl
diff --git a/third_party/WebKit/Source/modules/mediastream/MediaTrackConstraintSet.idl b/third_party/WebKit/Source/modules/mediastream/MediaTrackConstraintSet.idl
index 1a2ec0ee7e39ccd5648dd1dee9d9fa3abc64e123..44e003844129a70ccb83d99c83bda5a3fa61efe2 100644
--- a/third_party/WebKit/Source/modules/mediastream/MediaTrackConstraintSet.idl
+++ b/third_party/WebKit/Source/modules/mediastream/MediaTrackConstraintSet.idl
@@ -33,6 +33,24 @@ dictionary MediaTrackConstraintSet {
[RuntimeEnabled=MediaConstraints,MediaCaptureDepth] ConstrainDouble depthFar;
[RuntimeEnabled=MediaConstraints,MediaCaptureDepth] ConstrainDouble focalLengthX;
[RuntimeEnabled=MediaConstraints,MediaCaptureDepth] ConstrainDouble focalLengthY;
+ // W3C Image Capture API
+ // https://w3c.github.io/mediacapture-image/#mediatrackconstraintset-section
+ // TODO(mcasas) move out when partial dictionaries are supported
+ // http://crbug.com/579896.
+ [RuntimeEnabled=MediaConstraints,ImageCapture] ConstrainDOMString whiteBalanceMode;
+ [RuntimeEnabled=MediaConstraints,ImageCapture] ConstrainDOMString exposureMode;
+ [RuntimeEnabled=MediaConstraints,ImageCapture] ConstrainDOMString focusMode;
+ // TODO(mcasas): add support for ConstrainPoint2D pointsOfInterest, see
+ // https://crbug.com/700607
+ [RuntimeEnabled=MediaConstraints,ImageCapture] ConstrainDouble exposureCompensation;
+ [RuntimeEnabled=MediaConstraints,ImageCapture] ConstrainDouble colorTemperature;
+ [RuntimeEnabled=MediaConstraints,ImageCapture] ConstrainDouble iso;
+ [RuntimeEnabled=MediaConstraints,ImageCapture] ConstrainDouble brightness;
+ [RuntimeEnabled=MediaConstraints,ImageCapture] ConstrainDouble contrast;
+ [RuntimeEnabled=MediaConstraints,ImageCapture] ConstrainDouble saturation;
+ [RuntimeEnabled=MediaConstraints,ImageCapture] ConstrainDouble sharpness;
+ [RuntimeEnabled=MediaConstraints,ImageCapture] ConstrainDouble zoom;
+ [RuntimeEnabled=MediaConstraints,ImageCapture] ConstrainBoolean torch;
// The "mandatory" and "_optional" members are retained for conformance
// with https://www.w3.org/TR/2013/WD-mediacapture-streams-20130903/
Dictionary mandatory;

Powered by Google App Engine
This is Rietveld 408576698