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

Unified Diff: chromeos/display/output_configurator.h

Issue 22875019: chromeos: Notify observers after display power changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: clean up observer-notifying code Created 7 years, 4 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
« no previous file with comments | « no previous file | chromeos/display/output_configurator.cc » ('j') | chromeos/display/output_configurator.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/display/output_configurator.h
diff --git a/chromeos/display/output_configurator.h b/chromeos/display/output_configurator.h
index 6e25b4d953eb2c6912541ce5f58b219957c1a7ca..704d23670cd55fc1deb57b350f2a061b4bed9993 100644
--- a/chromeos/display/output_configurator.h
+++ b/chromeos/display/output_configurator.h
@@ -347,8 +347,9 @@ class CHROMEOS_EXPORT OutputConfigurator
// Configure outputs.
void ConfigureOutputs();
- // Fires OnDisplayModeChanged() event to the observers.
- void NotifyOnDisplayChanged();
+ // Notifies observers about an attempted state change. Indicates success if
+ // |attempted_state| matches |output_state_| and indicates failure otherwise.
+ void NotifyObservers(OutputState attempted_state);
// Switches to the state specified in |output_state| and |power_state|.
// If the hardware mirroring failed and |mirroring_controller_| is set,
« no previous file with comments | « no previous file | chromeos/display/output_configurator.cc » ('j') | chromeos/display/output_configurator.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698