| 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 #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 Loading... |
| 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 |
| OLD | NEW |