OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 UI_DISPLAY_TYPES_NATIVE_DISPLAY_DELEGATE_H_ | 5 #ifndef UI_DISPLAY_TYPES_NATIVE_DISPLAY_DELEGATE_H_ |
6 #define UI_DISPLAY_TYPES_NATIVE_DISPLAY_DELEGATE_H_ | 6 #define UI_DISPLAY_TYPES_NATIVE_DISPLAY_DELEGATE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
13 #include "ui/display/types/display_constants.h" | 13 #include "ui/display/types/display_constants.h" |
14 #include "ui/display/types/display_types_export.h" | 14 #include "ui/display/types/display_types_export.h" |
| 15 #include "ui/display/types/virtual_display_controller.h" |
15 | 16 |
16 namespace gfx { | 17 namespace gfx { |
17 class Point; | 18 class Point; |
18 class Size; | 19 class Size; |
19 } | 20 } |
20 | 21 |
21 namespace ui { | 22 namespace ui { |
22 class DisplayMode; | 23 class DisplayMode; |
23 class DisplaySnapshot; | 24 class DisplaySnapshot; |
24 | |
25 class NativeDisplayObserver; | 25 class NativeDisplayObserver; |
26 | 26 |
27 struct GammaRampRGBEntry; | 27 struct GammaRampRGBEntry; |
28 | 28 |
29 typedef base::Callback<void(const std::vector<ui::DisplaySnapshot*>&)> | 29 typedef base::Callback<void(const std::vector<ui::DisplaySnapshot*>&)> |
30 GetDisplaysCallback; | 30 GetDisplaysCallback; |
31 typedef base::Callback<void(bool)> ConfigureCallback; | 31 typedef base::Callback<void(bool)> ConfigureCallback; |
32 typedef base::Callback<void(bool, ui::HDCPState)> GetHDCPStateCallback; | 32 typedef base::Callback<void(bool, ui::HDCPState)> GetHDCPStateCallback; |
33 typedef base::Callback<void(bool)> SetHDCPStateCallback; | 33 typedef base::Callback<void(bool)> SetHDCPStateCallback; |
34 typedef base::Callback<void(bool)> DisplayControlCallback; | 34 typedef base::Callback<void(bool)> DisplayControlCallback; |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 // Set the gamma tables and corection matrix for the display. | 110 // Set the gamma tables and corection matrix for the display. |
111 virtual bool SetColorCorrection( | 111 virtual bool SetColorCorrection( |
112 const ui::DisplaySnapshot& output, | 112 const ui::DisplaySnapshot& output, |
113 const std::vector<GammaRampRGBEntry>& degamma_lut, | 113 const std::vector<GammaRampRGBEntry>& degamma_lut, |
114 const std::vector<GammaRampRGBEntry>& gamma_lut, | 114 const std::vector<GammaRampRGBEntry>& gamma_lut, |
115 const std::vector<float>& correction_matrix) = 0; | 115 const std::vector<float>& correction_matrix) = 0; |
116 | 116 |
117 virtual void AddObserver(NativeDisplayObserver* observer) = 0; | 117 virtual void AddObserver(NativeDisplayObserver* observer) = 0; |
118 | 118 |
119 virtual void RemoveObserver(NativeDisplayObserver* observer) = 0; | 119 virtual void RemoveObserver(NativeDisplayObserver* observer) = 0; |
| 120 |
| 121 // Returns a virtual display controller that can modify the virtual display |
| 122 // state. Will return null if not needed, most likely because this delegate |
| 123 // doesn't use virtual displays. |
| 124 virtual display::VirtualDisplayController* GetVirtualDisplayController() = 0; |
120 }; | 125 }; |
121 | 126 |
122 } // namespace ui | 127 } // namespace ui |
123 | 128 |
124 #endif // UI_DISPLAY_TYPES_NATIVE_DISPLAY_DELEGATE_H_ | 129 #endif // UI_DISPLAY_TYPES_NATIVE_DISPLAY_DELEGATE_H_ |
OLD | NEW |