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 module media.mojom; | 5 module media.mojom; |
6 | 6 |
7 // Equivalent to idl MediaSettingsRange, arbitrary range representing the | 7 // Equivalent to idl MediaSettingsRange, arbitrary range representing the |
8 // allowed variations of a Capability or an Option. | 8 // allowed variations of a Capability or an Option. |
9 // https://w3c.github.io/mediacapture-image/#mediasettingsrange-section | 9 // https://w3c.github.io/mediacapture-image/#mediasettingsrange-section |
10 struct Range { | 10 struct Range { |
(...skipping 11 matching lines...) Expand all Loading... |
22 | 22 |
23 // https://www.w3.org/TR/image-capture/#FillLightMode | 23 // https://www.w3.org/TR/image-capture/#FillLightMode |
24 enum FillLightMode { OFF, AUTO, FLASH }; | 24 enum FillLightMode { OFF, AUTO, FLASH }; |
25 | 25 |
26 // Equivalent to idl's MediaTrackCapabilities plus PhotoCapabilities. | 26 // Equivalent to idl's MediaTrackCapabilities plus PhotoCapabilities. |
27 struct PhotoCapabilities { | 27 struct PhotoCapabilities { |
28 // https://w3c.github.io/mediacapture-image/#mediatrackcapabilities-section | 28 // https://w3c.github.io/mediacapture-image/#mediatrackcapabilities-section |
29 MeteringMode white_balance_mode; | 29 MeteringMode white_balance_mode; |
30 MeteringMode exposure_mode; | 30 MeteringMode exposure_mode; |
31 MeteringMode focus_mode; | 31 MeteringMode focus_mode; |
| 32 array<Point2D> points_of_interest; |
32 | 33 |
33 Range exposure_compensation; | 34 Range exposure_compensation; |
34 Range color_temperature; | 35 Range color_temperature; |
35 Range iso; | 36 Range iso; |
36 | 37 |
37 Range brightness; | 38 Range brightness; |
38 Range contrast; | 39 Range contrast; |
39 Range saturation; | 40 Range saturation; |
40 Range sharpness; | 41 Range sharpness; |
41 | 42 |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 // https://www.w3.org/TR/image-capture/#dom-imagecapture-setoptions | 123 // https://www.w3.org/TR/image-capture/#dom-imagecapture-setoptions |
123 SetOptions(string source_id, PhotoSettings settings) | 124 SetOptions(string source_id, PhotoSettings settings) |
124 => (bool success); | 125 => (bool success); |
125 | 126 |
126 // Takes a Photo from the given |source_id|, returning it encoded in |blob| | 127 // Takes a Photo from the given |source_id|, returning it encoded in |blob| |
127 // with the format specified in its |mime_type|. | 128 // with the format specified in its |mime_type|. |
128 // https://www.w3.org/TR/image-capture/#dom-imagecapture-takephoto | 129 // https://www.w3.org/TR/image-capture/#dom-imagecapture-takephoto |
129 TakePhoto(string source_id) | 130 TakePhoto(string source_id) |
130 => (Blob blob); | 131 => (Blob blob); |
131 }; | 132 }; |
OLD | NEW |