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

Side by Side Diff: chrome/browser/chromeos/login/screen_locker.h

Issue 5709001: Place the spinner in the right corner of the controls window. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/chrome/browser/chromeos/login
Patch Set: Merged with trunk. Created 10 years 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 | Annotate | Revision Log
OLDNEW
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
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698