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 24 matching lines...) Expand all Loading... |
35 Range color_temperature; | 35 Range color_temperature; |
36 Range iso; | 36 Range iso; |
37 | 37 |
38 Range brightness; | 38 Range brightness; |
39 Range contrast; | 39 Range contrast; |
40 Range saturation; | 40 Range saturation; |
41 Range sharpness; | 41 Range sharpness; |
42 | 42 |
43 Range zoom; | 43 Range zoom; |
44 | 44 |
| 45 bool supports_torch; |
45 bool torch; | 46 bool torch; |
46 | 47 |
47 // https://w3c.github.io/mediacapture-image/##photocapabilities-section | 48 // https://w3c.github.io/mediacapture-image/##photocapabilities-section |
48 RedEyeReduction red_eye_reduction; | 49 RedEyeReduction red_eye_reduction; |
49 Range height; | 50 Range height; |
50 Range width; | 51 Range width; |
51 array<FillLightMode> fill_light_mode; | 52 array<FillLightMode> fill_light_mode; |
52 }; | 53 }; |
53 | 54 |
54 // Equivalent to idl Point2D. | 55 // Equivalent to idl Point2D. |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 // https://www.w3.org/TR/image-capture/#dom-imagecapture-setoptions | 124 // https://www.w3.org/TR/image-capture/#dom-imagecapture-setoptions |
124 SetOptions(string source_id, PhotoSettings settings) | 125 SetOptions(string source_id, PhotoSettings settings) |
125 => (bool success); | 126 => (bool success); |
126 | 127 |
127 // Takes a Photo from the given |source_id|, returning it encoded in |blob| | 128 // Takes a Photo from the given |source_id|, returning it encoded in |blob| |
128 // with the format specified in its |mime_type|. | 129 // with the format specified in its |mime_type|. |
129 // https://www.w3.org/TR/image-capture/#dom-imagecapture-takephoto | 130 // https://www.w3.org/TR/image-capture/#dom-imagecapture-takephoto |
130 TakePhoto(string source_id) | 131 TakePhoto(string source_id) |
131 => (Blob blob); | 132 => (Blob blob); |
132 }; | 133 }; |
OLD | NEW |