| 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/#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 typedef (sequence<Point2D> or ConstrainPoint2DParameters) ConstrainPoint2D; |
| 11 | 12 |
| 12 dictionary MediaTrackConstraintSet { | 13 dictionary MediaTrackConstraintSet { |
| 13 ConstrainLong width; | 14 ConstrainLong width; |
| 14 ConstrainLong height; | 15 ConstrainLong height; |
| 15 ConstrainDouble aspectRatio; | 16 ConstrainDouble aspectRatio; |
| 16 ConstrainDouble frameRate; | 17 ConstrainDouble frameRate; |
| 17 ConstrainDOMString facingMode; | 18 ConstrainDOMString facingMode; |
| 18 ConstrainDouble volume; | 19 ConstrainDouble volume; |
| 19 ConstrainLong sampleRate; | 20 ConstrainLong sampleRate; |
| 20 ConstrainLong sampleSize; | 21 ConstrainLong sampleSize; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 33 [RuntimeEnabled=MediaCaptureDepth] ConstrainDouble depthFar; | 34 [RuntimeEnabled=MediaCaptureDepth] ConstrainDouble depthFar; |
| 34 [RuntimeEnabled=MediaCaptureDepth] ConstrainDouble focalLengthX; | 35 [RuntimeEnabled=MediaCaptureDepth] ConstrainDouble focalLengthX; |
| 35 [RuntimeEnabled=MediaCaptureDepth] ConstrainDouble focalLengthY; | 36 [RuntimeEnabled=MediaCaptureDepth] ConstrainDouble focalLengthY; |
| 36 // W3C Image Capture API | 37 // W3C Image Capture API |
| 37 // https://w3c.github.io/mediacapture-image/#mediatrackconstraintset-section | 38 // https://w3c.github.io/mediacapture-image/#mediatrackconstraintset-section |
| 38 // TODO(mcasas) move out when partial dictionaries are supported | 39 // TODO(mcasas) move out when partial dictionaries are supported |
| 39 // http://crbug.com/579896. | 40 // http://crbug.com/579896. |
| 40 [OriginTrialEnabled=ImageCapture] ConstrainDOMString whiteBalanceMode; | 41 [OriginTrialEnabled=ImageCapture] ConstrainDOMString whiteBalanceMode; |
| 41 [OriginTrialEnabled=ImageCapture] ConstrainDOMString exposureMode; | 42 [OriginTrialEnabled=ImageCapture] ConstrainDOMString exposureMode; |
| 42 [OriginTrialEnabled=ImageCapture] ConstrainDOMString focusMode; | 43 [OriginTrialEnabled=ImageCapture] ConstrainDOMString focusMode; |
| 43 // TODO(mcasas): add support for ConstrainPoint2D pointsOfInterest, see | 44 [OriginTrialEnabled=ImageCapture] ConstrainPoint2D pointsOfInterest; |
| 44 // https://crbug.com/700607 | |
| 45 [OriginTrialEnabled=ImageCapture] ConstrainDouble exposureCompensation; | 45 [OriginTrialEnabled=ImageCapture] ConstrainDouble exposureCompensation; |
| 46 [OriginTrialEnabled=ImageCapture] ConstrainDouble colorTemperature; | 46 [OriginTrialEnabled=ImageCapture] ConstrainDouble colorTemperature; |
| 47 [OriginTrialEnabled=ImageCapture] ConstrainDouble iso; | 47 [OriginTrialEnabled=ImageCapture] ConstrainDouble iso; |
| 48 [OriginTrialEnabled=ImageCapture] ConstrainDouble brightness; | 48 [OriginTrialEnabled=ImageCapture] ConstrainDouble brightness; |
| 49 [OriginTrialEnabled=ImageCapture] ConstrainDouble contrast; | 49 [OriginTrialEnabled=ImageCapture] ConstrainDouble contrast; |
| 50 [OriginTrialEnabled=ImageCapture] ConstrainDouble saturation; | 50 [OriginTrialEnabled=ImageCapture] ConstrainDouble saturation; |
| 51 [OriginTrialEnabled=ImageCapture] ConstrainDouble sharpness; | 51 [OriginTrialEnabled=ImageCapture] ConstrainDouble sharpness; |
| 52 [OriginTrialEnabled=ImageCapture] ConstrainDouble zoom; | 52 [OriginTrialEnabled=ImageCapture] ConstrainDouble zoom; |
| 53 [OriginTrialEnabled=ImageCapture] ConstrainBoolean torch; | 53 [OriginTrialEnabled=ImageCapture] ConstrainBoolean torch; |
| 54 // The "mandatory" and "_optional" members are retained for conformance | 54 // The "mandatory" and "_optional" members are retained for conformance |
| 55 // with https://www.w3.org/TR/2013/WD-mediacapture-streams-20130903/ | 55 // with https://www.w3.org/TR/2013/WD-mediacapture-streams-20130903/ |
| 56 Dictionary mandatory; | 56 Dictionary mandatory; |
| 57 sequence<Dictionary> _optional; | 57 sequence<Dictionary> _optional; |
| 58 }; | 58 }; |
| OLD | NEW |