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

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

Issue 2664673002: Media Capture Depth Stream Extensions API: videoKind settings and constraint. (Closed)
Patch Set: GetVideoKindForFormat moved to utility. thanks guidou@. Created 3 years, 10 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 e384d0428e80d6282f0497c263ecd740ac21c70f..1a2ec0ee7e39ccd5648dd1dee9d9fa3abc64e123 100644
--- a/third_party/WebKit/Source/modules/mediastream/MediaTrackConstraintSet.idl
+++ b/third_party/WebKit/Source/modules/mediastream/MediaTrackConstraintSet.idl
@@ -23,17 +23,18 @@ dictionary MediaTrackConstraintSet {
[RuntimeEnabled=MediaConstraints] ConstrainLong channelCount;
[RuntimeEnabled=MediaConstraints] ConstrainDOMString deviceId;
[RuntimeEnabled=MediaConstraints] ConstrainDOMString groupId;
+ // Media Capture Depth Stream Extensions
+ // https://w3c.github.io/mediacapture-depth/#mediatrackconstraints
+ // TODO(aleksandar.stojiljkovic): videoKind, depthNear, depthFar,
+ // focalLengthX and focalLengthY attributes should be declared as partial
+ // dictionary but IDL parser can't support it yet. http://crbug.com/579896.
+ [RuntimeEnabled=MediaConstraints,MediaCaptureDepth] ConstrainDOMString videoKind;
+ [RuntimeEnabled=MediaConstraints,MediaCaptureDepth] ConstrainDouble depthNear;
+ [RuntimeEnabled=MediaConstraints,MediaCaptureDepth] ConstrainDouble depthFar;
+ [RuntimeEnabled=MediaConstraints,MediaCaptureDepth] ConstrainDouble focalLengthX;
+ [RuntimeEnabled=MediaConstraints,MediaCaptureDepth] ConstrainDouble focalLengthY;
// The "mandatory" and "_optional" members are retained for conformance
// 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