X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fui%2Fdisplay%2Fchromeos%2Fdisplay_configurator.h;h=f13d7821d63ed0056a85c7d80704a9c65ce3ee36;hb=1afa4dd80ef85af7c90efaea6959db1d92330844;hp=bd0576c1019a0148f9430d726ffbdbeb8b152c95;hpb=90762837333c13ccf56f2ad88e4481fc71e8d281;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/ui/display/chromeos/display_configurator.h b/src/ui/display/chromeos/display_configurator.h index bd0576c..f13d782 100644 --- a/src/ui/display/chromeos/display_configurator.h +++ b/src/ui/display/chromeos/display_configurator.h @@ -145,6 +145,14 @@ class DISPLAY_EXPORT DisplayConfigurator : public NativeDisplayObserver { return cached_displays_; } + // Called when an external process no longer needs to control the display + // and Chrome can take control. + void TakeControl(); + + // Called when an external process needs to control the display and thus + // Chrome should relinquish it. + void RelinquishControl(); + void set_state_controller(StateController* controller) { state_controller_ = controller; } @@ -186,7 +194,7 @@ class DISPLAY_EXPORT DisplayConfigurator : public NativeDisplayObserver { bool SetDisplayMode(MultipleDisplayState new_state); // NativeDisplayDelegate::Observer overrides: - virtual void OnConfigurationChanged() OVERRIDE; + virtual void OnConfigurationChanged() override; void AddObserver(Observer* observer); void RemoveObserver(Observer* observer); @@ -267,9 +275,13 @@ class DISPLAY_EXPORT DisplayConfigurator : public NativeDisplayObserver { bool try_panel_fitting, bool preserve_aspect); - // Configures displays. + // Configures displays. Invoked by |configure_timer_|. void ConfigureDisplays(); + // Restores |requested_power_state_| after the system has resumed, + // additionally forcing a probe. Invoked by |configure_timer_|. + void RestoreRequestedPowerStateAfterResume(); + // Notifies observers about an attempted state change. void NotifyObservers(bool success, MultipleDisplayState attempted_state); @@ -346,6 +358,9 @@ class DISPLAY_EXPORT DisplayConfigurator : public NativeDisplayObserver { // Display protection requests of each client. ProtectionRequests client_protection_requests_; + // Display controlled by an external entity. + bool display_externally_controlled_; + DISALLOW_COPY_AND_ASSIGN(DisplayConfigurator); };