OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROMEOS_DISPLAY_OUTPUT_CONFIGURATOR_H_ | 5 #ifndef CHROMEOS_DISPLAY_OUTPUT_CONFIGURATOR_H_ |
6 #define CHROMEOS_DISPLAY_OUTPUT_CONFIGURATOR_H_ | 6 #define CHROMEOS_DISPLAY_OUTPUT_CONFIGURATOR_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 | 64 |
65 OutputConfigurator(); | 65 OutputConfigurator(); |
66 virtual ~OutputConfigurator(); | 66 virtual ~OutputConfigurator(); |
67 | 67 |
68 int connected_output_count() const { return connected_output_count_; } | 68 int connected_output_count() const { return connected_output_count_; } |
69 | 69 |
70 OutputState output_state() const { return output_state_; } | 70 OutputState output_state() const { return output_state_; } |
71 | 71 |
72 // Initialization, must be called right after constructor. | 72 // Initialization, must be called right after constructor. |
73 // |is_panel_fitting_enabled| indicates hardware panel fitting support. | 73 // |is_panel_fitting_enabled| indicates hardware panel fitting support. |
74 void Init(bool is_panel_fitting_enabled); | 74 // If |background_color_argb| is non zero and there are multiple displays, |
| 75 // OutputConfigurator sets the background color of X's RootWindow to this |
| 76 // color. |
| 77 void Init(bool is_panel_fitting_enabled, uint32 background_color_argb); |
75 | 78 |
76 // Called when the user hits ctrl-F4 to request a display mode change. | 79 // Called when the user hits ctrl-F4 to request a display mode change. |
77 // This method should only return false if it was called in a single-head or | 80 // This method should only return false if it was called in a single-head or |
78 // headless mode. | 81 // headless mode. |
79 bool CycleDisplayMode(); | 82 bool CycleDisplayMode(); |
80 | 83 |
81 // Called when powerd notifies us that some set of displays should be turned | 84 // Called when powerd notifies us that some set of displays should be turned |
82 // on or off. This requires enabling or disabling the CRTC associated with | 85 // on or off. This requires enabling or disabling the CRTC associated with |
83 // the display(s) in question so that the low power state is engaged. | 86 // the display(s) in question so that the low power state is engaged. |
84 bool ScreenPowerSet(bool power_on, bool all_displays); | 87 bool ScreenPowerSet(bool power_on, bool all_displays); |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 | 212 |
210 // Indicates the time at which |output_state_| was entered. | 213 // Indicates the time at which |output_state_| was entered. |
211 base::TimeTicks last_enter_state_time_; | 214 base::TimeTicks last_enter_state_time_; |
212 | 215 |
213 DISALLOW_COPY_AND_ASSIGN(OutputConfigurator); | 216 DISALLOW_COPY_AND_ASSIGN(OutputConfigurator); |
214 }; | 217 }; |
215 | 218 |
216 } // namespace chromeos | 219 } // namespace chromeos |
217 | 220 |
218 #endif // CHROMEOS_DISPLAY_OUTPUT_CONFIGURATOR_H_ | 221 #endif // CHROMEOS_DISPLAY_OUTPUT_CONFIGURATOR_H_ |
OLD | NEW |