| 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://www.w3.org/TR/image-capture/#PhotoCapabilities | 5 // https://www.w3.org/TR/image-capture/#PhotoCapabilities |
| 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 FillLightMode { | 14 enum FillLightMode { |
| 15 "none", | 15 "none", |
| 16 "off", | 16 "off", |
| 17 "auto", | 17 "auto", |
| 18 "flash", | 18 "flash", |
| 19 "torch", | 19 "torch", |
| 20 }; | 20 }; |
| 21 | 21 |
| 22 [ | 22 [ |
| 23 RuntimeEnabled=ImageCapture, | 23 RuntimeEnabled=ImageCapture, |
| 24 ] interface PhotoCapabilities { | 24 ] interface PhotoCapabilities { |
| 25 readonly attribute MeteringMode whiteBalanceMode; | 25 readonly attribute MeteringMode whiteBalanceMode; |
| 26 // TODO(mcasas): Implement |colorTemperature| https://crbug.com/650675. | 26 readonly attribute MediaSettingsRange colorTemperature; |
| 27 readonly attribute MeteringMode exposureMode; | 27 readonly attribute MeteringMode exposureMode; |
| 28 readonly attribute MediaSettingsRange exposureCompensation; | 28 readonly attribute MediaSettingsRange exposureCompensation; |
| 29 readonly attribute MediaSettingsRange iso; | 29 readonly attribute MediaSettingsRange iso; |
| 30 readonly attribute boolean redEyeReduction; | 30 readonly attribute boolean redEyeReduction; |
| 31 readonly attribute MeteringMode focusMode; | 31 readonly attribute MeteringMode focusMode; |
| 32 | 32 |
| 33 // TODO(mcasas): Implement |brightness|, |contrast|, |saturation| and | 33 // TODO(mcasas): Implement |brightness|, |contrast|, |saturation| and |
| 34 // |sharpness|, https://crbug.com/650676. | 34 // |sharpness|, https://crbug.com/650676. |
| 35 readonly attribute MediaSettingsRange imageHeight; | 35 readonly attribute MediaSettingsRange imageHeight; |
| 36 readonly attribute MediaSettingsRange imageWidth; | 36 readonly attribute MediaSettingsRange imageWidth; |
| 37 readonly attribute MediaSettingsRange zoom; | 37 readonly attribute MediaSettingsRange zoom; |
| 38 readonly attribute FillLightMode fillLightMode; | 38 readonly attribute FillLightMode fillLightMode; |
| 39 }; | 39 }; |
| OLD | NEW |