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 FocusMode { | 7 enum MeteringMode { |
8 "unavailable", | 8 "unavailable", |
9 "manual", | 9 "manual", |
10 "single-shot", | 10 "single-shot", |
11 "continuous", | 11 "continuous", |
12 }; | 12 }; |
13 | 13 |
14 [ | 14 [ |
15 RuntimeEnabled=ImageCapture, | 15 RuntimeEnabled=ImageCapture, |
16 ] interface PhotoCapabilities { | 16 ] interface PhotoCapabilities { |
17 readonly attribute MediaSettingsRange iso; | 17 readonly attribute MediaSettingsRange iso; |
18 // TODO(mcasas): Replace these two with supported and current resolutions. | |
19 // https://github.com/w3c/mediacapture-image/issues/30 | |
20 readonly attribute MediaSettingsRange imageHeight; | 18 readonly attribute MediaSettingsRange imageHeight; |
21 readonly attribute MediaSettingsRange imageWidth; | 19 readonly attribute MediaSettingsRange imageWidth; |
22 readonly attribute MediaSettingsRange zoom; | 20 readonly attribute MediaSettingsRange zoom; |
23 readonly attribute FocusMode focusMode; | 21 readonly attribute MeteringMode focusMode; |
| 22 readonly attribute MeteringMode exposureMode; |
24 // TODO(mcasas): Implement all other PhotoCapabilities fields | 23 // TODO(mcasas): Implement all other PhotoCapabilities fields |
25 // https://crbug.com/518807 | 24 // https://crbug.com/518807 |
26 }; | 25 }; |
OLD | NEW |