Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(90)

Unified Diff: chromeos/display/output_configurator.h

Issue 13006006: chromeos: Support turning displays off in extended mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chromeos/display/output_configurator.h
diff --git a/chromeos/display/output_configurator.h b/chromeos/display/output_configurator.h
index 9117c5a541e8680c15498baba3de9961181dbb88..2a49204b89d1412a0d4b353d32a3826180696702 100644
--- a/chromeos/display/output_configurator.h
+++ b/chromeos/display/output_configurator.h
@@ -78,6 +78,14 @@ class CHROMEOS_EXPORT OutputConfigurator : public MessageLoop::Dispatcher {
const std::vector<OutputInfo>& outputs) const = 0;
};
+ // Flags that can be passed to SetDisplayPower().
+ static const int kSetDisplayPowerNoFlags = 0;
+ // Configure displays even if the passed-in state matches |power_state_|.
+ static const int kSetDisplayPowerForceProbe = 1 << 0;
+ // Do not change the state if multiple displays are connected or if the
+ // only connected display is external.
+ static const int kSetDisplayPowerOnlyIfSingleInternalDisplay = 1 << 1;
+
OutputConfigurator();
virtual ~OutputConfigurator();
@@ -108,9 +116,8 @@ class CHROMEOS_EXPORT OutputConfigurator : public MessageLoop::Dispatcher {
// Called when powerd notifies us that some set of displays should be turned
// on or off. This requires enabling or disabling the CRTC associated with
// the display(s) in question so that the low power state is engaged.
- // If |force_probe| is true, the displays will be configured even if
- // |power_state| matches |power_state_|.
- bool SetDisplayPower(DisplayPowerState power_state, bool force_probe);
+ // |flags| contains bitwise-or-ed kSetDisplayPower* values.
+ bool SetDisplayPower(DisplayPowerState power_state, int flags);
// Force switching the display mode to |new_state|. Returns false if
// it was called in a single-head or headless mode.
« no previous file with comments | « chrome/browser/chromeos/dbus/display_power_service_provider.cc ('k') | chromeos/display/output_configurator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698