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

Unified Diff: ash/system/chromeos/power/power_event_observer.h

Issue 910393002: Disable rendering when suspending on chrome os (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make PowerEventObserver getter cros-specific Created 5 years, 10 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 | « ash/shell.h ('k') | ash/system/chromeos/power/power_event_observer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/chromeos/power/power_event_observer.h
diff --git a/ash/system/chromeos/power/power_event_observer.h b/ash/system/chromeos/power/power_event_observer.h
index 941e234edd938db53e5fe6c8832c67c4f896e53b..37fe5bb27dca07831ebff812bfd41c467eaa77ae 100644
--- a/ash/system/chromeos/power/power_event_observer.h
+++ b/ash/system/chromeos/power/power_event_observer.h
@@ -23,6 +23,12 @@ class ASH_EXPORT PowerEventObserver
PowerEventObserver();
~PowerEventObserver() override;
+ // Called by the WebUIScreenLocker when all the lock screen animations have
+ // completed. This really should be implemented via an observer but since
+ // ash/ isn't allowed to depend on chrome/ we need to have the
+ // WebUIScreenLocker reach into ash::Shell to make this call.
+ void OnLockAnimationsComplete();
+
// chromeos::PowerManagerClient::Observer overrides:
void BrightnessChanged(int level, bool user_initiated) override;
void SuspendImminent() override;
@@ -35,8 +41,11 @@ class ASH_EXPORT PowerEventObserver
// Is the screen currently locked?
bool screen_locked_;
- // If set, called when the lock screen has been shown to confirm that the
- // system is ready to be suspended.
+ // Have the lock screen animations completed?
+ bool waiting_for_lock_screen_animations_;
+
+ // If set, called when the lock screen animations have completed to confirm
+ // that the system is ready to be suspended.
base::Closure screen_lock_callback_;
private:
« no previous file with comments | « ash/shell.h ('k') | ash/system/chromeos/power/power_event_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698