| 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 "media/capture/mojo/image_capture.mojom-blink.h" | 8 #include "media/capture/mojo/image_capture.mojom-blink.h" |
| 9 #include "modules/imagecapture/MediaSettingsRange.h" | 9 #include "modules/imagecapture/MediaSettingsRange.h" |
| 10 #include "platform/bindings/ScriptWrappable.h" | 10 #include "platform/bindings/ScriptWrappable.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 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 fill_light_modes_ = modes; | 33 fill_light_modes_ = modes; |
| 34 } | 34 } |
| 35 | 35 |
| 36 String redEyeReduction() const; | 36 String redEyeReduction() const; |
| 37 void SetRedEyeReduction( | 37 void SetRedEyeReduction( |
| 38 media::mojom::blink::RedEyeReduction red_eye_reduction) { | 38 media::mojom::blink::RedEyeReduction red_eye_reduction) { |
| 39 red_eye_reduction_ = red_eye_reduction; | 39 red_eye_reduction_ = red_eye_reduction; |
| 40 } | 40 } |
| 41 bool IsRedEyeReductionControllable() const; |
| 41 | 42 |
| 42 DECLARE_VIRTUAL_TRACE(); | 43 DECLARE_VIRTUAL_TRACE(); |
| 43 | 44 |
| 44 private: | 45 private: |
| 45 PhotoCapabilities() = default; | 46 PhotoCapabilities() = default; |
| 46 | 47 |
| 47 Member<MediaSettingsRange> image_height_; | 48 Member<MediaSettingsRange> image_height_; |
| 48 Member<MediaSettingsRange> image_width_; | 49 Member<MediaSettingsRange> image_width_; |
| 49 Vector<media::mojom::blink::FillLightMode> fill_light_modes_; | 50 Vector<media::mojom::blink::FillLightMode> fill_light_modes_; |
| 50 media::mojom::blink::RedEyeReduction red_eye_reduction_; | 51 media::mojom::blink::RedEyeReduction red_eye_reduction_; |
| 51 }; | 52 }; |
| 52 | 53 |
| 53 } // namespace blink | 54 } // namespace blink |
| 54 | 55 |
| 55 #endif // PhotoCapabilities_h | 56 #endif // PhotoCapabilities_h |
| OLD | NEW |