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

Side by Side Diff: third_party/WebKit/Source/modules/imagecapture/PhotoCapabilities.h

Issue 2787933002: ImageCapture: separate fillLightMode, redEyeReduction and Torch (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
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 #ifndef PhotoCapabilities_h 5 #ifndef PhotoCapabilities_h
6 #define PhotoCapabilities_h 6 #define PhotoCapabilities_h
7 7
8 #include "bindings/core/v8/ScriptWrappable.h" 8 #include "bindings/core/v8/ScriptWrappable.h"
9 #include "media/capture/mojo/image_capture.mojom-blink.h" 9 #include "media/capture/mojo/image_capture.mojom-blink.h"
10 #include "modules/imagecapture/MediaSettingsRange.h" 10 #include "modules/imagecapture/MediaSettingsRange.h"
(...skipping 16 matching lines...) Expand all
27 27
28 MediaSettingsRange* imageWidth() const { return m_imageWidth; } 28 MediaSettingsRange* imageWidth() const { return m_imageWidth; }
29 void setImageWidth(MediaSettingsRange* value) { m_imageWidth = value; } 29 void setImageWidth(MediaSettingsRange* value) { m_imageWidth = value; }
30 30
31 Vector<String> fillLightMode() const; 31 Vector<String> fillLightMode() const;
32 void setFillLightMode(Vector<media::mojom::blink::FillLightMode> modes) { 32 void setFillLightMode(Vector<media::mojom::blink::FillLightMode> modes) {
33 m_fillLightModes = modes; 33 m_fillLightModes = modes;
34 } 34 }
35 35
36 String redEyeReduction() const; 36 String redEyeReduction() const;
37 void setRedEyeReduction(bool redEyeReduction) { 37 void setRedEyeReduction(
38 media::mojom::blink::RedEyeReduction redEyeReduction) {
38 m_redEyeReduction = redEyeReduction; 39 m_redEyeReduction = redEyeReduction;
39 } 40 }
40 41
41 DECLARE_VIRTUAL_TRACE(); 42 DECLARE_VIRTUAL_TRACE();
42 43
43 private: 44 private:
44 PhotoCapabilities() = default; 45 PhotoCapabilities() = default;
45 46
46 Member<MediaSettingsRange> m_imageHeight; 47 Member<MediaSettingsRange> m_imageHeight;
47 Member<MediaSettingsRange> m_imageWidth; 48 Member<MediaSettingsRange> m_imageWidth;
48 Vector<media::mojom::blink::FillLightMode> m_fillLightModes; 49 Vector<media::mojom::blink::FillLightMode> m_fillLightModes;
49 bool m_redEyeReduction; 50 media::mojom::blink::RedEyeReduction m_redEyeReduction;
50 }; 51 };
51 52
52 } // namespace blink 53 } // namespace blink
53 54
54 #endif // PhotoCapabilities_h 55 #endif // PhotoCapabilities_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698