Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(388)

Side by Side Diff: media/capture/mojo/image_capture.mojom

Issue 2798263003: Image Capture: add |supports_torch| field to mojom (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | media/capture/video/android/java/src/org/chromium/media/PhotoCapabilities.java » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 };
OLDNEW
« no previous file with comments | « no previous file | media/capture/video/android/java/src/org/chromium/media/PhotoCapabilities.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698