diff options
Diffstat (limited to 'chromeos/monitor/output_configurator.h')
-rw-r--r-- | chromeos/monitor/output_configurator.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/chromeos/monitor/output_configurator.h b/chromeos/monitor/output_configurator.h index 229515b..ad1318e 100644 --- a/chromeos/monitor/output_configurator.h +++ b/chromeos/monitor/output_configurator.h @@ -62,6 +62,8 @@ class CHROMEOS_EXPORT OutputConfigurator : public MessageLoop::Dispatcher { OutputConfigurator(); virtual ~OutputConfigurator(); + State output_state() const { return output_state_; } + // Called when the user hits ctrl-F4 to request a display mode change. // This method should only return false if it was called in a single-head or // headless mode. @@ -72,6 +74,11 @@ class CHROMEOS_EXPORT OutputConfigurator : public MessageLoop::Dispatcher { // the display(s) in question so that the low power state is engaged. bool ScreenPowerSet(bool power_on, bool all_displays); + // Force switching the display mode to |new_state|. This method is used when + // the user explicitly changes the display mode in the options UI. Returns + // false if it was called in a single-head or headless mode. + bool SetDisplayMode(State new_state); + // Called when an RRNotify event is received. The implementation is // interested in the cases of RRNotify events which correspond to output // add/remove events. Note that Output add/remove events are sent in response |