OLD | NEW |
---|---|
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_CHROMEOS_LOGIN_SCREEN_LOCKER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_LOCKER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_LOCKER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_LOCKER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 14 matching lines...) Expand all Loading... | |
25 | 25 |
26 namespace chromeos { | 26 namespace chromeos { |
27 | 27 |
28 class Authenticator; | 28 class Authenticator; |
29 class BackgroundView; | 29 class BackgroundView; |
30 class InputEventObserver; | 30 class InputEventObserver; |
31 class LockerInputEventObserver; | 31 class LockerInputEventObserver; |
32 class MessageBubble; | 32 class MessageBubble; |
33 class MouseEventRelay; | 33 class MouseEventRelay; |
34 class ScreenLockView; | 34 class ScreenLockView; |
35 class ThrobberManager; | |
35 class LoginFailure; | 36 class LoginFailure; |
36 | 37 |
37 namespace test { | 38 namespace test { |
38 class ScreenLockerTester; | 39 class ScreenLockerTester; |
39 } // namespace test | 40 } // namespace test |
40 | 41 |
41 // ScreenLocker creates a background view as well as ScreenLockView to | 42 // ScreenLocker creates a background view as well as ScreenLockView to |
42 // authenticate the user. ScreenLocker manages its life cycle and will | 43 // authenticate the user. ScreenLocker manages its life cycle and will |
43 // delete itself when it's unlocked. | 44 // delete itself when it's unlocked. |
44 class ScreenLocker : public LoginStatusConsumer, | 45 class ScreenLocker : public LoginStatusConsumer, |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
111 // Returns the tester | 112 // Returns the tester |
112 static test::ScreenLockerTester* GetTester(); | 113 static test::ScreenLockerTester* GetTester(); |
113 | 114 |
114 private: | 115 private: |
115 friend class DeleteTask<ScreenLocker>; | 116 friend class DeleteTask<ScreenLocker>; |
116 friend class test::ScreenLockerTester; | 117 friend class test::ScreenLockerTester; |
117 friend class LockerInputEventObserver; | 118 friend class LockerInputEventObserver; |
118 | 119 |
119 virtual ~ScreenLocker(); | 120 virtual ~ScreenLocker(); |
120 | 121 |
122 // Starts/Stops throbber. | |
123 void StartThrobber(); | |
124 void StopThrobber(); | |
oshima
2010/12/09 21:52:10
Looks like it's simpler to have these method and T
altimofeev
2010/12/10 16:37:40
I put it here because created throbber belongs to
| |
125 | |
121 // Sets the authenticator. | 126 // Sets the authenticator. |
122 void SetAuthenticator(Authenticator* authenticator); | 127 void SetAuthenticator(Authenticator* authenticator); |
123 | 128 |
124 // Called when the screen lock is ready. | 129 // Called when the screen lock is ready. |
125 void ScreenLockReady(); | 130 void ScreenLockReady(); |
126 | 131 |
127 // Called when the window manager is ready to handle locked state. | 132 // Called when the window manager is ready to handle locked state. |
128 void OnWindowManagerReady(); | 133 void OnWindowManagerReady(); |
129 | 134 |
130 // Shows error_info_ bubble with the |message| and |arrow_location| specified. | 135 // Shows error_info_ bubble with the |message| and |arrow_location| specified. |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
196 | 201 |
197 // Reference to the single instance of the screen locker object. | 202 // Reference to the single instance of the screen locker object. |
198 // This is used to make sure there is only one screen locker instance. | 203 // This is used to make sure there is only one screen locker instance. |
199 static ScreenLocker* screen_locker_; | 204 static ScreenLocker* screen_locker_; |
200 | 205 |
201 // The time when the screen locker object is created. | 206 // The time when the screen locker object is created. |
202 base::Time start_time_; | 207 base::Time start_time_; |
203 // The time when the authentication is started. | 208 // The time when the authentication is started. |
204 base::Time authentication_start_time_; | 209 base::Time authentication_start_time_; |
205 | 210 |
211 scoped_ptr<ThrobberManager> throbber_manager_; | |
212 | |
206 DISALLOW_COPY_AND_ASSIGN(ScreenLocker); | 213 DISALLOW_COPY_AND_ASSIGN(ScreenLocker); |
207 }; | 214 }; |
208 | 215 |
209 } // namespace chromeos | 216 } // namespace chromeos |
210 | 217 |
211 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_LOCKER_H_ | 218 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_LOCKER_H_ |
OLD | NEW |