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

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

Issue 11276025: Add lock pod animation on unlock. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Make it compile 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_H_ 5 #ifndef ASH_WM_SESSION_STATE_CONTROLLER_H_
6 #define ASH_WM_SESSION_STATE_CONTROLLER_H_ 6 #define ASH_WM_SESSION_STATE_CONTROLLER_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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 124
125 // Cancels shutting down and reverts shutdown animation. 125 // Cancels shutting down and reverts shutdown animation.
126 virtual void CancelShutdownAnimation() = 0; 126 virtual void CancelShutdownAnimation() = 0;
127 127
128 // Called when Chrome gets a request to display the lock screen. 128 // Called when Chrome gets a request to display the lock screen.
129 virtual void OnStartingLock() = 0; 129 virtual void OnStartingLock() = 0;
130 130
131 // Displays the shutdown animation and requests shutdown when it's done. 131 // Displays the shutdown animation and requests shutdown when it's done.
132 virtual void RequestShutdown() = 0; 132 virtual void RequestShutdown() = 0;
133 133
134 // Called when ScreenLocker is ready to close, but not yet destroyed.
135 // Can be used to display "hiding" animations on unlock.
136 // |callback| will be called when all animations are done.
137 virtual void OnLockScreenHide(base::Callback<void(void)>& callback) = 0;
138
134 protected: 139 protected:
135 friend class test::PowerButtonControllerTest; 140 friend class test::PowerButtonControllerTest;
136 141
137 bool IsLoggedInAsNonGuest() const; 142 bool IsLoggedInAsNonGuest() const;
138 143
139 scoped_ptr<internal::SessionStateAnimator> animator_; 144 scoped_ptr<internal::SessionStateAnimator> animator_;
140 145
141 scoped_ptr<SessionStateControllerDelegate> delegate_; 146 scoped_ptr<SessionStateControllerDelegate> delegate_;
142 147
143 private: 148 private:
144 DISALLOW_COPY_AND_ASSIGN(SessionStateController); 149 DISALLOW_COPY_AND_ASSIGN(SessionStateController);
145 }; 150 };
146 151
147 } // namespace ash 152 } // namespace ash
148 153
149 #endif // ASH_WM_SESSION_STATE_CONTROLLER_H_ 154 #endif // ASH_WM_SESSION_STATE_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698