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

Side by Side Diff: ash/wm/session_state_controller_impl2.h

Issue 11276025: Add lock pod animation on unlock. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Add comment Created 8 years, 1 month 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 ASH_WM_SESSION_STATE_CONTROLLER_IMPL2_H_ 5 #ifndef ASH_WM_SESSION_STATE_CONTROLLER_IMPL2_H_
6 #define ASH_WM_SESSION_STATE_CONTROLLER_IMPL2_H_ 6 #define ASH_WM_SESSION_STATE_CONTROLLER_IMPL2_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/shell_observer.h" 9 #include "ash/shell_observer.h"
10 #include "ash/wm/session_state_animator.h" 10 #include "ash/wm/session_state_animator.h"
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 133
134 // Cancels shutting down and reverts shutdown animation. 134 // Cancels shutting down and reverts shutdown animation.
135 virtual void CancelShutdownAnimation() OVERRIDE; 135 virtual void CancelShutdownAnimation() OVERRIDE;
136 136
137 // Called when Chrome gets a request to display the lock screen. 137 // Called when Chrome gets a request to display the lock screen.
138 virtual void OnStartingLock() OVERRIDE; 138 virtual void OnStartingLock() OVERRIDE;
139 139
140 // Displays the shutdown animation and requests shutdown when it's done. 140 // Displays the shutdown animation and requests shutdown when it's done.
141 virtual void RequestShutdown() OVERRIDE; 141 virtual void RequestShutdown() OVERRIDE;
142 142
143 virtual void OnLockScreenHide(base::Callback<void(void)>& callback) OVERRIDE;
144
143 protected: 145 protected:
144 friend class test::PowerButtonControllerTest; 146 friend class test::PowerButtonControllerTest;
145 147
146 bool IsLoggedInAsNonGuest() const; 148 bool IsLoggedInAsNonGuest() const;
147 149
148 private: 150 private:
149 void RequestShutdownImpl(); 151 void RequestShutdownImpl();
150 152
151 // Starts lock timer. 153 // Starts lock timer.
152 void StartLockTimer(); 154 void StartLockTimer();
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 // request shutdown. Gives the animation time to complete before Chrome, X, 212 // request shutdown. Gives the animation time to complete before Chrome, X,
211 // etc. are shut down. 213 // etc. are shut down.
212 base::OneShotTimer<SessionStateControllerImpl2> real_shutdown_timer_; 214 base::OneShotTimer<SessionStateControllerImpl2> real_shutdown_timer_;
213 215
214 DISALLOW_COPY_AND_ASSIGN(SessionStateControllerImpl2); 216 DISALLOW_COPY_AND_ASSIGN(SessionStateControllerImpl2);
215 }; 217 };
216 218
217 } // namespace ash 219 } // namespace ash
218 220
219 #endif // ASH_WM_SESSION_STATE_CONTROLLER_IMPL2_H_ 221 #endif // ASH_WM_SESSION_STATE_CONTROLLER_IMPL2_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698