| 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 | 9 // https://w3c.github.io/mediacapture-image/#mediasettingsrange |
| 10 struct Range { | 10 struct Range { |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 struct PhotoCapabilities { | 24 struct PhotoCapabilities { |
| 25 Range iso; | 25 Range iso; |
| 26 Range height; | 26 Range height; |
| 27 Range width; | 27 Range width; |
| 28 Range zoom; | 28 Range zoom; |
| 29 MeteringMode focus_mode; | 29 MeteringMode focus_mode; |
| 30 MeteringMode exposure_mode; | 30 MeteringMode exposure_mode; |
| 31 Range exposure_compensation; | 31 Range exposure_compensation; |
| 32 MeteringMode white_balance_mode; | 32 MeteringMode white_balance_mode; |
| 33 FillLightMode fill_light_mode; | 33 FillLightMode fill_light_mode; |
| 34 bool red_eye_reduction; |
| 34 }; | 35 }; |
| 35 | 36 |
| 36 // Equivalent to idl Point2D. | 37 // Equivalent to idl Point2D. |
| 37 // TODO(mcasas): use gfx::mojom::PointF after https://crbug.com/640049. | 38 // TODO(mcasas): use gfx::mojom::PointF after https://crbug.com/640049. |
| 38 struct Point2D { | 39 struct Point2D { |
| 39 float x; | 40 float x; |
| 40 float y; | 41 float y; |
| 41 }; | 42 }; |
| 42 | 43 |
| 43 // Equivalent to idl PhotoSettings, | 44 // Equivalent to idl PhotoSettings, |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 // https://w3c.github.io/mediacapture-image/index.html#widl-ImageCapture-set
Options-Promise-void--PhotoSettings-photoSettings | 86 // https://w3c.github.io/mediacapture-image/index.html#widl-ImageCapture-set
Options-Promise-void--PhotoSettings-photoSettings |
| 86 SetOptions(string source_id, PhotoSettings settings) | 87 SetOptions(string source_id, PhotoSettings settings) |
| 87 => (bool success); | 88 => (bool success); |
| 88 | 89 |
| 89 // Takes a Photo from the given |source_id|, returning it encoded in |blob| | 90 // Takes a Photo from the given |source_id|, returning it encoded in |blob| |
| 90 // with the format specified in its |mime_type|. | 91 // with the format specified in its |mime_type|. |
| 91 // https://w3c.github.io/mediacapture-image/index.html#widl-ImageCapture-tak
ePhoto-Promise-Blob | 92 // https://w3c.github.io/mediacapture-image/index.html#widl-ImageCapture-tak
ePhoto-Promise-Blob |
| 92 TakePhoto(string source_id) | 93 TakePhoto(string source_id) |
| 93 => (Blob blob); | 94 => (Blob blob); |
| 94 }; | 95 }; |
| OLD | NEW |