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-image/##photocapabilities-section | 5 // https://w3c.github.io/mediacapture-image/##photocapabilities-section |
6 | 6 |
7 enum MeteringMode { | 7 enum MeteringMode { |
8 "none", | 8 "none", |
9 "manual", | 9 "manual", |
10 "single-shot", | 10 "single-shot", |
11 "continuous", | 11 "continuous", |
12 }; | 12 }; |
13 | 13 |
| 14 enum RedEyeReduction { |
| 15 "never", |
| 16 "always", |
| 17 "controllable", |
| 18 }; |
| 19 |
14 enum FillLightMode { | 20 enum FillLightMode { |
15 "none", | |
16 "off", | 21 "off", |
17 "auto", | 22 "auto", |
18 "flash", | 23 "flash", |
19 "torch", | |
20 }; | 24 }; |
21 | 25 |
22 [ | 26 [ |
23 OriginTrialEnabled=ImageCapture, | 27 OriginTrialEnabled=ImageCapture, |
24 ] interface PhotoCapabilities { | 28 ] interface PhotoCapabilities { |
25 readonly attribute MediaSettingsRange imageHeight; | 29 readonly attribute RedEyeReduction redEyeReduction; |
26 readonly attribute MediaSettingsRange imageWidth; | 30 readonly attribute MediaSettingsRange imageHeight; |
27 readonly attribute FillLightMode fillLightMode; | 31 readonly attribute MediaSettingsRange imageWidth; |
28 readonly attribute boolean redEyeReduction; | 32 readonly attribute FrozenArray<FillLightMode> fillLightMode; |
29 }; | 33 }; |
OLD | NEW |