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

Unified Diff: ash/common/session/session_controller.h

Issue 2801333002: mash: Run pre-unlock animation via SessionController (Closed)
Patch Set: fix compile Created 3 years, 8 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 | ash/common/session/session_controller.cc » ('j') | ash/common/session/session_controller.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/session/session_controller.h
diff --git a/ash/common/session/session_controller.h b/ash/common/session/session_controller.h
index 23260387737c59e3f5e0d6a23c3305e11bc5b946..99a1ee8cad87efb2a4e5f486b9fbc5ced6245d04 100644
--- a/ash/common/session/session_controller.h
+++ b/ash/common/session/session_controller.h
@@ -104,6 +104,7 @@ class ASH_EXPORT SessionController
void UpdateUserSession(mojom::UserSessionPtr user_session) override;
void SetUserSessionOrder(
const std::vector<uint32_t>& user_session_order) override;
+ void RunUnlockAnimation(const RunUnlockAnimationCallback& callback) override;
// Test helpers.
void ClearUserSessionsForTest();
@@ -148,6 +149,10 @@ class ASH_EXPORT SessionController
// Last known login status. Used to track login status changes.
LoginStatus login_status_ = LoginStatus::NOT_LOGGED_IN;
+ // Whether unlocking is in progress. The flag is set when the pre-unlock
+ // animation starts and reset when session state is no longer LOCKED.
+ bool is_unlocking_ = false;
+
base::ObserverList<ash::SessionStateObserver> observers_;
DISALLOW_COPY_AND_ASSIGN(SessionController);
« no previous file with comments | « no previous file | ash/common/session/session_controller.cc » ('j') | ash/common/session/session_controller.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698