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

Unified Diff: chrome/browser/ui/ash/session_controller_client.h

Issue 2801333002: mash: Run pre-unlock animation via SessionController (Closed)
Patch Set: for #2 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
Index: chrome/browser/ui/ash/session_controller_client.h
diff --git a/chrome/browser/ui/ash/session_controller_client.h b/chrome/browser/ui/ash/session_controller_client.h
index 8120fbf168980d74dd88a631388397e04de82e0d..484c2c18e06e0bf3a01782f7ded4789a66e5e404 100644
--- a/chrome/browser/ui/ash/session_controller_client.h
+++ b/chrome/browser/ui/ash/session_controller_client.h
@@ -6,6 +6,7 @@
#define CHROME_BROWSER_UI_ASH_SESSION_CONTROLLER_CLIENT_H_
#include "ash/public/interfaces/session_controller.mojom.h"
+#include "base/callback_forward.h"
#include "base/macros.h"
#include "components/session_manager/core/session_manager_observer.h"
#include "components/user_manager/user_manager.h"
@@ -31,6 +32,12 @@ class SessionControllerClient
SessionControllerClient();
~SessionControllerClient() override;
+ static SessionControllerClient* Get();
+
+ // Calls ash SessionController to run unlock animation.
+ // |animation_finished_callback| will be invoked when the animation finishes.
+ void RunUnlockAnimation(base::Closure animation_finished_callback);
+
// ash::mojom::SessionControllerClient:
void RequestLockScreen() override;
void SwitchActiveUser(const AccountId& account_id) override;

Powered by Google App Engine
This is Rietveld 408576698