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

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

Issue 2606983002: Media Capture Depth Stream Extensions API: focal length and depth range. (Closed)
Patch Set: Added to MediaTrackSupportedConstraints and MediaTrackConstraintSet. Thanks mcasas@. Created 3 years, 11 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 e1de498645d1d5662075a78316fb7e864f694425..e384d0428e80d6282f0497c263ecd740ac21c70f 100644
--- a/third_party/WebKit/Source/modules/mediastream/MediaTrackConstraintSet.idl
+++ b/third_party/WebKit/Source/modules/mediastream/MediaTrackConstraintSet.idl
@@ -27,4 +27,13 @@ dictionary MediaTrackConstraintSet {
// with https://www.w3.org/TR/2013/WD-mediacapture-streams-20130903/
Dictionary mandatory;
sequence<Dictionary> _optional;
+ // Media Capture Depth Stream Extensions
+ // https://w3c.github.io/mediacapture-depth/#mediatrackconstraints
+ // TODO(aleksandar.stojiljkovic): depthNear, depthFar, focalLengthX and
+ // focalLengthY attributes should be declared as partial dictionary but IDL
+ // parser can't support it yet. Please see: http://crbug.com/579896.
+ [RuntimeEnabled=MediaCaptureDepth] ConstrainDouble depthNear;
+ [RuntimeEnabled=MediaCaptureDepth] ConstrainDouble depthFar;
+ [RuntimeEnabled=MediaCaptureDepth] ConstrainDouble focalLengthX;
+ [RuntimeEnabled=MediaCaptureDepth] ConstrainDouble focalLengthY;
};

Powered by Google App Engine
This is Rietveld 408576698