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

Side by Side 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: 80-char line fix in test html. 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // https://w3c.github.io/mediacapture-main/#idl-def-mediatrackconstraintset 5 // https://w3c.github.io/mediacapture-main/#idl-def-mediatrackconstraintset
6 6
7 typedef (long or ConstrainLongRange) ConstrainLong; 7 typedef (long or ConstrainLongRange) ConstrainLong;
8 typedef (double or ConstrainDoubleRange) ConstrainDouble; 8 typedef (double or ConstrainDoubleRange) ConstrainDouble;
9 typedef (boolean or ConstrainBooleanParameters) ConstrainBoolean; 9 typedef (boolean or ConstrainBooleanParameters) ConstrainBoolean;
10 typedef (DOMString or sequence<DOMString> or ConstrainDOMStringParameters) Const rainDOMString; 10 typedef (DOMString or sequence<DOMString> or ConstrainDOMStringParameters) Const rainDOMString;
11 11
12 dictionary MediaTrackConstraintSet { 12 dictionary MediaTrackConstraintSet {
13 [RuntimeEnabled=MediaConstraints] ConstrainLong width; 13 [RuntimeEnabled=MediaConstraints] ConstrainLong width;
14 [RuntimeEnabled=MediaConstraints] ConstrainLong height; 14 [RuntimeEnabled=MediaConstraints] ConstrainLong height;
15 [RuntimeEnabled=MediaConstraints] ConstrainDouble aspectRatio; 15 [RuntimeEnabled=MediaConstraints] ConstrainDouble aspectRatio;
16 [RuntimeEnabled=MediaConstraints] ConstrainDouble frameRate; 16 [RuntimeEnabled=MediaConstraints] ConstrainDouble frameRate;
17 [RuntimeEnabled=MediaConstraints] ConstrainDOMString facingMode; 17 [RuntimeEnabled=MediaConstraints] ConstrainDOMString facingMode;
18 [RuntimeEnabled=MediaConstraints] ConstrainDouble volume; 18 [RuntimeEnabled=MediaConstraints] ConstrainDouble volume;
19 [RuntimeEnabled=MediaConstraints] ConstrainLong sampleRate; 19 [RuntimeEnabled=MediaConstraints] ConstrainLong sampleRate;
20 [RuntimeEnabled=MediaConstraints] ConstrainLong sampleSize; 20 [RuntimeEnabled=MediaConstraints] ConstrainLong sampleSize;
21 [RuntimeEnabled=MediaConstraints] ConstrainBoolean echoCancellation; 21 [RuntimeEnabled=MediaConstraints] ConstrainBoolean echoCancellation;
22 [RuntimeEnabled=MediaConstraints] ConstrainDouble latency; 22 [RuntimeEnabled=MediaConstraints] ConstrainDouble latency;
23 [RuntimeEnabled=MediaConstraints] ConstrainLong channelCount; 23 [RuntimeEnabled=MediaConstraints] ConstrainLong channelCount;
24 [RuntimeEnabled=MediaConstraints] ConstrainDOMString deviceId; 24 [RuntimeEnabled=MediaConstraints] ConstrainDOMString deviceId;
25 [RuntimeEnabled=MediaConstraints] ConstrainDOMString groupId; 25 [RuntimeEnabled=MediaConstraints] ConstrainDOMString groupId;
26 // The "mandatory" and "_optional" members are retained for conformance 26 // The "mandatory" and "_optional" members are retained for conformance
27 // with https://www.w3.org/TR/2013/WD-mediacapture-streams-20130903/ 27 // with https://www.w3.org/TR/2013/WD-mediacapture-streams-20130903/
28 Dictionary mandatory; 28 Dictionary mandatory;
29 sequence<Dictionary> _optional; 29 sequence<Dictionary> _optional;
30 // Media Capture Depth Stream Extensions
31 // https://w3c.github.io/mediacapture-depth/#mediatrackconstraints
32 // TODO(aleksandar.stojiljkovic): depthNear, depthFar, focalLengthX and
33 // focalLengthY attributes should be declared as partial dictionary but IDL
34 // parser can't support it yet. Please see: http://crbug.com/579896.
35 [RuntimeEnabled=MediaCaptureDepth] ConstrainDouble depthNear;
36 [RuntimeEnabled=MediaCaptureDepth] ConstrainDouble depthFar;
37 [RuntimeEnabled=MediaCaptureDepth] ConstrainDouble focalLengthX;
38 [RuntimeEnabled=MediaCaptureDepth] ConstrainDouble focalLengthY;
30 }; 39 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698