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

Side by Side Diff: chrome/browser/ui/ash/session_controller_client.h

Issue 2836163002: mash: Shell ref clean up for screen lock (Closed)
Patch Set: Created 3 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_ASH_SESSION_CONTROLLER_CLIENT_H_ 5 #ifndef CHROME_BROWSER_UI_ASH_SESSION_CONTROLLER_CLIENT_H_
6 #define CHROME_BROWSER_UI_ASH_SESSION_CONTROLLER_CLIENT_H_ 6 #define CHROME_BROWSER_UI_ASH_SESSION_CONTROLLER_CLIENT_H_
7 7
8 #include "ash/public/interfaces/session_controller.mojom.h" 8 #include "ash/public/interfaces/session_controller.mojom.h"
9 #include "base/callback_forward.h" 9 #include "base/callback_forward.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 26 matching lines...) Expand all
37 37
38 static SessionControllerClient* Get(); 38 static SessionControllerClient* Get();
39 39
40 // Calls SessionController to start locking ash. |callback| will be invoked 40 // Calls SessionController to start locking ash. |callback| will be invoked
41 // to indicate whether the lock is successful. If |locked| is true, the post 41 // to indicate whether the lock is successful. If |locked| is true, the post
42 // lock animation is finished and ash is fully locked. Otherwise, the lock 42 // lock animation is finished and ash is fully locked. Otherwise, the lock
43 // is failed somehow. 43 // is failed somehow.
44 using StartLockCallback = base::Callback<void(bool locked)>; 44 using StartLockCallback = base::Callback<void(bool locked)>;
45 void StartLock(StartLockCallback callback); 45 void StartLock(StartLockCallback callback);
46 46
47 // Notifies SessionController that chrome lock animations are finished.
48 void NotifyChromeLockAnimationsComplete();
49
47 // Calls ash SessionController to run unlock animation. 50 // Calls ash SessionController to run unlock animation.
48 // |animation_finished_callback| will be invoked when the animation finishes. 51 // |animation_finished_callback| will be invoked when the animation finishes.
49 void RunUnlockAnimation(base::Closure animation_finished_callback); 52 void RunUnlockAnimation(base::Closure animation_finished_callback);
50 53
51 // ash::mojom::SessionControllerClient: 54 // ash::mojom::SessionControllerClient:
52 void RequestLockScreen() override; 55 void RequestLockScreen() override;
53 void SwitchActiveUser(const AccountId& account_id) override; 56 void SwitchActiveUser(const AccountId& account_id) override;
54 void CycleActiveUser(ash::CycleUserDirection direction) override; 57 void CycleActiveUser(ash::CycleUserDirection direction) override;
55 58
56 // user_manager::UserManager::UserSessionStateObserver: 59 // user_manager::UserManager::UserSessionStateObserver:
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 108
106 // For observing NOTIFICATION_APP_TERMINATING. 109 // For observing NOTIFICATION_APP_TERMINATING.
107 content::NotificationRegistrar registrar_; 110 content::NotificationRegistrar registrar_;
108 111
109 ash::mojom::SessionInfoPtr last_sent_session_info_; 112 ash::mojom::SessionInfoPtr last_sent_session_info_;
110 113
111 DISALLOW_COPY_AND_ASSIGN(SessionControllerClient); 114 DISALLOW_COPY_AND_ASSIGN(SessionControllerClient);
112 }; 115 };
113 116
114 #endif // CHROME_BROWSER_UI_ASH_SESSION_CONTROLLER_CLIENT_H_ 117 #endif // CHROME_BROWSER_UI_ASH_SESSION_CONTROLLER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698