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/index.html#idl-def-PhotoCapabilities | 5 // https://w3c.github.io/mediacapture-image/index.html#idl-def-PhotoCapabilities |
6 | 6 |
7 enum MeteringMode { | 7 enum MeteringMode { |
8 "unavailable", | 8 "none", |
9 "manual", | 9 "manual", |
10 "single-shot", | 10 "single-shot", |
11 "continuous", | 11 "continuous", |
12 }; | 12 }; |
13 | 13 |
| 14 enum FillLightMode { |
| 15 "none", |
| 16 "off", |
| 17 "auto", |
| 18 "flash", |
| 19 "torch", |
| 20 }; |
| 21 |
14 [ | 22 [ |
15 RuntimeEnabled=ImageCapture, | 23 RuntimeEnabled=ImageCapture, |
16 ] interface PhotoCapabilities { | 24 ] interface PhotoCapabilities { |
17 readonly attribute MediaSettingsRange iso; | 25 readonly attribute MediaSettingsRange iso; |
18 readonly attribute MediaSettingsRange imageHeight; | 26 readonly attribute MediaSettingsRange imageHeight; |
19 readonly attribute MediaSettingsRange imageWidth; | 27 readonly attribute MediaSettingsRange imageWidth; |
20 readonly attribute MediaSettingsRange zoom; | 28 readonly attribute MediaSettingsRange zoom; |
21 readonly attribute MeteringMode focusMode; | 29 readonly attribute MeteringMode focusMode; |
22 readonly attribute MeteringMode exposureMode; | 30 readonly attribute MeteringMode exposureMode; |
23 readonly attribute MediaSettingsRange exposureCompensation; | 31 readonly attribute MediaSettingsRange exposureCompensation; |
24 readonly attribute MeteringMode whiteBalanceMode; | 32 readonly attribute MeteringMode whiteBalanceMode; |
25 | 33 readonly attribute FillLightMode fillLightMode; |
26 // TODO(mcasas): Implement all other PhotoCapabilities fields | 34 // TODO(mcasas): Implement all other PhotoCapabilities fields |
27 // https://crbug.com/518807 | 35 // https://crbug.com/518807 |
28 }; | 36 }; |
OLD | NEW |