| OLD | NEW |
| 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/getusermedia.html#idl-def-MediaTrackC
onstraintSet | 5 // https://w3c.github.io/mediacapture-main/getusermedia.html#idl-def-MediaTrackC
onstraintSet |
| 6 | 6 |
| 7 typedef ConstrainLongRange ConstrainLong; | 7 typedef (long or ConstrainLongRange) ConstrainLong; |
| 8 typedef ConstrainDoubleRange ConstrainDouble; | 8 typedef (double or ConstrainDoubleRange) ConstrainDouble; |
| 9 typedef ConstrainBooleanParameters ConstrainBoolean; | 9 typedef (boolean or ConstrainBooleanParameters) ConstrainBoolean; |
| 10 typedef ConstrainDOMStringParameters ConstrainDOMString; | 10 typedef (DOMString or sequence<DOMString> or ConstrainDOMStringParameters) Const
rainDOMString; |
| 11 // The spec says that the typedefs should be: | |
| 12 // typedef (long or ConstrainLongRange) ConstrainLong; | |
| 13 // typedef (double or ConstrainDoubleRange) ConstrainDouble; | |
| 14 // typedef (boolean or ConstrainBooleanParameters) ConstrainBoolean; | |
| 15 // typedef (DOMString or sequence<DOMString> or ConstrainDomStringParameters) Co
nstrainDomString; | |
| 16 // This is blocked on https://crbug.com/524424 | |
| 17 | 11 |
| 18 dictionary MediaTrackConstraintSet { | 12 dictionary MediaTrackConstraintSet { |
| 19 [RuntimeEnabled=MediaConstraints] ConstrainLong width; | 13 [RuntimeEnabled=MediaConstraints] ConstrainLong width; |
| 20 [RuntimeEnabled=MediaConstraints] ConstrainLong height; | 14 [RuntimeEnabled=MediaConstraints] ConstrainLong height; |
| 21 [RuntimeEnabled=MediaConstraints] ConstrainDouble aspectRatio; | 15 [RuntimeEnabled=MediaConstraints] ConstrainDouble aspectRatio; |
| 22 [RuntimeEnabled=MediaConstraints] ConstrainDouble frameRate; | 16 [RuntimeEnabled=MediaConstraints] ConstrainDouble frameRate; |
| 23 [RuntimeEnabled=MediaConstraints] ConstrainDOMString facingMode; | 17 [RuntimeEnabled=MediaConstraints] ConstrainDOMString facingMode; |
| 24 [RuntimeEnabled=MediaConstraints] ConstrainDouble volume; | 18 [RuntimeEnabled=MediaConstraints] ConstrainDouble volume; |
| 25 [RuntimeEnabled=MediaConstraints] ConstrainLong sampleRate; | 19 [RuntimeEnabled=MediaConstraints] ConstrainLong sampleRate; |
| 26 [RuntimeEnabled=MediaConstraints] ConstrainLong sampleSize; | 20 [RuntimeEnabled=MediaConstraints] ConstrainLong sampleSize; |
| 27 [RuntimeEnabled=MediaConstraints] ConstrainBoolean echoCancellation; | 21 [RuntimeEnabled=MediaConstraints] ConstrainBoolean echoCancellation; |
| 28 [RuntimeEnabled=MediaConstraints] ConstrainDouble latency; | 22 [RuntimeEnabled=MediaConstraints] ConstrainDouble latency; |
| 29 [RuntimeEnabled=MediaConstraints] ConstrainLong channelCount; | 23 [RuntimeEnabled=MediaConstraints] ConstrainLong channelCount; |
| 30 [RuntimeEnabled=MediaConstraints] ConstrainDOMString deviceId; | 24 [RuntimeEnabled=MediaConstraints] ConstrainDOMString deviceId; |
| 31 [RuntimeEnabled=MediaConstraints] ConstrainDOMString groupId; | 25 [RuntimeEnabled=MediaConstraints] ConstrainDOMString groupId; |
| 32 // The "mandatory" and "_optional" members are retained for conformance | 26 // The "mandatory" and "_optional" members are retained for conformance |
| 33 // with https://www.w3.org/TR/2013/WD-mediacapture-streams-20130903/ | 27 // with https://www.w3.org/TR/2013/WD-mediacapture-streams-20130903/ |
| 34 Dictionary mandatory; | 28 Dictionary mandatory; |
| 35 sequence<Dictionary> _optional; | 29 sequence<Dictionary> _optional; |
| 36 }; | 30 }; |
| OLD | NEW |