| 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://www.w3.org/TR/image-capture/#MediaSettingsRange | 9 // https://www.w3.org/TR/image-capture/#MediaSettingsRange |
| 10 struct Range { | 10 struct Range { |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 // https://www.w3.org/TR/image-capture/#PhotoCapabilities | 23 // https://www.w3.org/TR/image-capture/#PhotoCapabilities |
| 24 struct PhotoCapabilities { | 24 struct PhotoCapabilities { |
| 25 MeteringMode white_balance_mode; | 25 MeteringMode white_balance_mode; |
| 26 Range color_temperature; | 26 Range color_temperature; |
| 27 MeteringMode exposure_mode; | 27 MeteringMode exposure_mode; |
| 28 Range exposure_compensation; | 28 Range exposure_compensation; |
| 29 Range iso; | 29 Range iso; |
| 30 bool red_eye_reduction; | 30 bool red_eye_reduction; |
| 31 MeteringMode focus_mode; | 31 MeteringMode focus_mode; |
| 32 | 32 |
| 33 Range brightness; |
| 34 Range contrast; |
| 35 Range saturation; |
| 36 Range sharpness; |
| 33 Range height; | 37 Range height; |
| 34 Range width; | 38 Range width; |
| 35 Range zoom; | 39 Range zoom; |
| 36 FillLightMode fill_light_mode; | 40 FillLightMode fill_light_mode; |
| 37 }; | 41 }; |
| 38 | 42 |
| 39 // Equivalent to idl Point2D. | 43 // Equivalent to idl Point2D. |
| 40 // TODO(mcasas): use gfx::mojom::PointF after https://crbug.com/640049. | 44 // TODO(mcasas): use gfx::mojom::PointF after https://crbug.com/640049. |
| 41 struct Point2D { | 45 struct Point2D { |
| 42 float x; | 46 float x; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 56 bool has_exposure_compensation; | 60 bool has_exposure_compensation; |
| 57 uint32 exposure_compensation; | 61 uint32 exposure_compensation; |
| 58 bool has_iso; | 62 bool has_iso; |
| 59 uint32 iso; | 63 uint32 iso; |
| 60 bool has_red_eye_reduction; | 64 bool has_red_eye_reduction; |
| 61 bool red_eye_reduction; | 65 bool red_eye_reduction; |
| 62 bool has_focus_mode; | 66 bool has_focus_mode; |
| 63 MeteringMode focus_mode; | 67 MeteringMode focus_mode; |
| 64 array<Point2D> points_of_interest; | 68 array<Point2D> points_of_interest; |
| 65 | 69 |
| 70 bool has_brightness; |
| 71 uint32 brightness; |
| 72 bool has_contrast; |
| 73 uint32 contrast; |
| 74 bool has_saturation; |
| 75 uint32 saturation; |
| 76 bool has_sharpness; |
| 77 uint32 sharpness; |
| 66 bool has_zoom; | 78 bool has_zoom; |
| 67 uint32 zoom; | 79 uint32 zoom; |
| 68 bool has_width; | 80 bool has_width; |
| 69 uint32 width; | 81 uint32 width; |
| 70 bool has_height; | 82 bool has_height; |
| 71 uint32 height; | 83 uint32 height; |
| 72 bool has_fill_light_mode; | 84 bool has_fill_light_mode; |
| 73 FillLightMode fill_light_mode; | 85 FillLightMode fill_light_mode; |
| 74 }; | 86 }; |
| 75 | 87 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 91 // https://www.w3.org/TR/image-capture/#dom-imagecapture-setoptions | 103 // https://www.w3.org/TR/image-capture/#dom-imagecapture-setoptions |
| 92 SetOptions(string source_id, PhotoSettings settings) | 104 SetOptions(string source_id, PhotoSettings settings) |
| 93 => (bool success); | 105 => (bool success); |
| 94 | 106 |
| 95 // Takes a Photo from the given |source_id|, returning it encoded in |blob| | 107 // Takes a Photo from the given |source_id|, returning it encoded in |blob| |
| 96 // with the format specified in its |mime_type|. | 108 // with the format specified in its |mime_type|. |
| 97 // https://www.w3.org/TR/image-capture/#dom-imagecapture-takephoto | 109 // https://www.w3.org/TR/image-capture/#dom-imagecapture-takephoto |
| 98 TakePhoto(string source_id) | 110 TakePhoto(string source_id) |
| 99 => (Blob blob); | 111 => (Blob blob); |
| 100 }; | 112 }; |
| OLD | NEW |