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

Side by Side Diff: third_party/WebKit/Source/modules/mediastream/MediaTrackConstraintSet.idl

Issue 2768653002: Cleanup: remove someof MediaTrack's stable flags and correct ImageCapture ones (Closed)
Patch Set: Created 3 years, 9 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 ConstrainLong width;
14 [RuntimeEnabled=MediaConstraints] ConstrainLong height; 14 ConstrainLong height;
15 [RuntimeEnabled=MediaConstraints] ConstrainDouble aspectRatio; 15 ConstrainDouble aspectRatio;
16 [RuntimeEnabled=MediaConstraints] ConstrainDouble frameRate; 16 ConstrainDouble frameRate;
17 [RuntimeEnabled=MediaConstraints] ConstrainDOMString facingMode; 17 ConstrainDOMString facingMode;
18 [RuntimeEnabled=MediaConstraints] ConstrainDouble volume; 18 ConstrainDouble volume;
19 [RuntimeEnabled=MediaConstraints] ConstrainLong sampleRate; 19 ConstrainLong sampleRate;
20 [RuntimeEnabled=MediaConstraints] ConstrainLong sampleSize; 20 ConstrainLong sampleSize;
21 [RuntimeEnabled=MediaConstraints] ConstrainBoolean echoCancellation; 21 ConstrainBoolean echoCancellation;
22 [RuntimeEnabled=MediaConstraints] ConstrainDouble latency; 22 ConstrainDouble latency;
23 [RuntimeEnabled=MediaConstraints] ConstrainLong channelCount; 23 ConstrainLong channelCount;
24 [RuntimeEnabled=MediaConstraints] ConstrainDOMString deviceId; 24 ConstrainDOMString deviceId;
25 [RuntimeEnabled=MediaConstraints] ConstrainDOMString groupId; 25 ConstrainDOMString groupId;
26 // Media Capture Depth Stream Extensions 26 // Media Capture Depth Stream Extensions
27 // https://w3c.github.io/mediacapture-depth/#mediatrackconstraints 27 // https://w3c.github.io/mediacapture-depth/#mediatrackconstraints
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=MediaConstraints,MediaCaptureDepth] ConstrainDOMString video Kind; 31 [RuntimeEnabled=MediaCaptureDepth] ConstrainDOMString videoKind;
32 [RuntimeEnabled=MediaConstraints,MediaCaptureDepth] ConstrainDouble depthNea r; 32 [RuntimeEnabled=MediaCaptureDepth] ConstrainDouble depthNear;
33 [RuntimeEnabled=MediaConstraints,MediaCaptureDepth] ConstrainDouble depthFar ; 33 [RuntimeEnabled=MediaCaptureDepth] ConstrainDouble depthFar;
34 [RuntimeEnabled=MediaConstraints,MediaCaptureDepth] ConstrainDouble focalLen gthX; 34 [RuntimeEnabled=MediaCaptureDepth] ConstrainDouble focalLengthX;
35 [RuntimeEnabled=MediaConstraints,MediaCaptureDepth] ConstrainDouble focalLen gthY; 35 [RuntimeEnabled=MediaCaptureDepth] ConstrainDouble focalLengthY;
36 // W3C Image Capture API 36 // W3C Image Capture API
37 // https://w3c.github.io/mediacapture-image/#mediatrackconstraintset-section 37 // https://w3c.github.io/mediacapture-image/#mediatrackconstraintset-section
38 // TODO(mcasas) move out when partial dictionaries are supported 38 // TODO(mcasas) move out when partial dictionaries are supported
39 // http://crbug.com/579896. 39 // http://crbug.com/579896.
40 [RuntimeEnabled=MediaConstraints,ImageCapture] ConstrainDOMString whiteBalan ceMode; 40 [OriginTrialEnabled=ImageCapture] ConstrainDOMString whiteBalanceMode;
41 [RuntimeEnabled=MediaConstraints,ImageCapture] ConstrainDOMString exposureMo de; 41 [OriginTrialEnabled=ImageCapture] ConstrainDOMString exposureMode;
42 [RuntimeEnabled=MediaConstraints,ImageCapture] ConstrainDOMString focusMode; 42 [OriginTrialEnabled=ImageCapture] ConstrainDOMString focusMode;
43 // TODO(mcasas): add support for ConstrainPoint2D pointsOfInterest, see 43 // TODO(mcasas): add support for ConstrainPoint2D pointsOfInterest, see
44 // https://crbug.com/700607 44 // https://crbug.com/700607
45 [RuntimeEnabled=MediaConstraints,ImageCapture] ConstrainDouble exposureCo mpensation; 45 [OriginTrialEnabled=ImageCapture] ConstrainDouble exposureCompensation;
46 [RuntimeEnabled=MediaConstraints,ImageCapture] ConstrainDouble colorTempe rature; 46 [OriginTrialEnabled=ImageCapture] ConstrainDouble colorTemperature;
47 [RuntimeEnabled=MediaConstraints,ImageCapture] ConstrainDouble iso; 47 [OriginTrialEnabled=ImageCapture] ConstrainDouble iso;
48 [RuntimeEnabled=MediaConstraints,ImageCapture] ConstrainDouble brightness ; 48 [OriginTrialEnabled=ImageCapture] ConstrainDouble brightness;
49 [RuntimeEnabled=MediaConstraints,ImageCapture] ConstrainDouble contrast; 49 [OriginTrialEnabled=ImageCapture] ConstrainDouble contrast;
50 [RuntimeEnabled=MediaConstraints,ImageCapture] ConstrainDouble saturation ; 50 [OriginTrialEnabled=ImageCapture] ConstrainDouble saturation;
51 [RuntimeEnabled=MediaConstraints,ImageCapture] ConstrainDouble sharpness; 51 [OriginTrialEnabled=ImageCapture] ConstrainDouble sharpness;
52 [RuntimeEnabled=MediaConstraints,ImageCapture] ConstrainDouble zoom; 52 [OriginTrialEnabled=ImageCapture] ConstrainDouble zoom;
53 [RuntimeEnabled=MediaConstraints,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 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698