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

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

Issue 2830933002: cros: Use SessionController for lock starting code (Closed)
Patch Set: fix nit 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 ab9ba3f9c855aefe834891e15d4effed9a38af47..bad771a1b650b9366464487bfbd1f83e7d4bd08c 100644
--- a/chrome/browser/ui/ash/session_controller_client.h
+++ b/chrome/browser/ui/ash/session_controller_client.h
@@ -37,6 +37,13 @@ class SessionControllerClient
static SessionControllerClient* Get();
+ // Calls SessionController to start locking ash. |callback| will be invoked
+ // to indicate whether the lock is successful. If |locked| is true, the post
+ // lock animation is finished and ash is fully locked. Otherwise, the lock
+ // is failed somehow.
+ using StartLockCallback = base::Callback<void(bool locked)>;
+ void StartLock(StartLockCallback callback);
+
// Calls ash SessionController to run unlock animation.
// |animation_finished_callback| will be invoked when the animation finishes.
void RunUnlockAnimation(base::Closure animation_finished_callback);
« no previous file with comments | « chrome/browser/chromeos/login/lock/webui_screen_locker.cc ('k') | chrome/browser/ui/ash/session_controller_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698