| 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 |
| 7 enum FocusMode { |
| 8 "unavailable", |
| 9 "auto", |
| 10 "manual" |
| 11 }; |
| 12 |
| 6 [ | 13 [ |
| 7 RuntimeEnabled=ImageCapture, | 14 RuntimeEnabled=ImageCapture, |
| 8 ] interface PhotoCapabilities { | 15 ] interface PhotoCapabilities { |
| 9 attribute MediaSettingsRange zoom; | 16 readonly attribute MediaSettingsRange zoom; |
| 17 readonly attribute FocusMode focusMode; |
| 10 // TODO(mcasas): Implement all other PhotoCapabilities fields | 18 // TODO(mcasas): Implement all other PhotoCapabilities fields |
| 11 // https://crbug.com/518807 | 19 // https://crbug.com/518807 |
| 12 }; | 20 }; |
| OLD | NEW |