| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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-mediatracksettings | 5 // https://w3c.github.io/mediacapture-main/#idl-def-mediatracksettings |
| 6 | 6 |
| 7 dictionary MediaTrackSettings { | 7 dictionary MediaTrackSettings { |
| 8 long width; | 8 long width; |
| 9 long height; | 9 long height; |
| 10 // aspectRatio is not implemented. | 10 // aspectRatio is not implemented. |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 // Media Capture Depth Stream Extensions | 26 // Media Capture Depth Stream Extensions |
| 27 // https://w3c.github.io/mediacapture-depth/#mediatracksettings-dictionary | 27 // https://w3c.github.io/mediacapture-depth/#mediatracksettings-dictionary |
| 28 // TODO(aleksandar.stojiljkovic): videoKind, depthNear, depthFar, | 28 // TODO(aleksandar.stojiljkovic): videoKind, depthNear, depthFar, |
| 29 // focalLengthX and focalLengthY attributes should be declared as partial | 29 // focalLengthX and focalLengthY attributes should be declared as partial |
| 30 // dictionary but IDL parser can't support it yet. http://crbug.com/579896. | 30 // dictionary but IDL parser can't support it yet. http://crbug.com/579896. |
| 31 [RuntimeEnabled=MediaCaptureDepth] DOMString videoKind; | 31 [RuntimeEnabled=MediaCaptureDepth] DOMString videoKind; |
| 32 [RuntimeEnabled=MediaCaptureDepth] double depthNear; | 32 [RuntimeEnabled=MediaCaptureDepth] double depthNear; |
| 33 [RuntimeEnabled=MediaCaptureDepth] double depthFar; | 33 [RuntimeEnabled=MediaCaptureDepth] double depthFar; |
| 34 [RuntimeEnabled=MediaCaptureDepth] double focalLengthX; | 34 [RuntimeEnabled=MediaCaptureDepth] double focalLengthX; |
| 35 [RuntimeEnabled=MediaCaptureDepth] double focalLengthY; | 35 [RuntimeEnabled=MediaCaptureDepth] double focalLengthY; |
| 36 // W3C Image Capture API |
| 37 // https://w3c.github.io/mediacapture-image/#mediatracksettings-section |
| 38 // TODO(mcasas) move out when partial dictionaries are supported |
| 39 // http://crbug.com/579896. |
| 40 [RuntimeEnabled=ImageCapture] DOMString whiteBalanceMode; |
| 41 [RuntimeEnabled=ImageCapture] DOMString exposureMode; |
| 42 [RuntimeEnabled=ImageCapture] DOMString focusMode; |
| 43 [RuntimeEnabled=ImageCapture] sequence<Point2D> pointsOfInterest; |
| 44 [RuntimeEnabled=ImageCapture] double exposureCompensation; |
| 45 [RuntimeEnabled=ImageCapture] double colorTemperature; |
| 46 [RuntimeEnabled=ImageCapture] double iso; |
| 47 [RuntimeEnabled=ImageCapture] double brightness; |
| 48 [RuntimeEnabled=ImageCapture] double contrast; |
| 49 [RuntimeEnabled=ImageCapture] double saturation; |
| 50 [RuntimeEnabled=ImageCapture] double sharpness; |
| 51 [RuntimeEnabled=ImageCapture] double zoom; |
| 52 [RuntimeEnabled=ImageCapture] boolean torch; |
| 36 }; | 53 }; |
| OLD | NEW |