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

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

Issue 5809001: Removed old login screen from source. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed long line 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_EXISTING_USER_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 public LoginPerformer::Delegate, 43 public LoginPerformer::Delegate,
44 public MessageBubbleDelegate, 44 public MessageBubbleDelegate,
45 public CaptchaView::Delegate, 45 public CaptchaView::Delegate,
46 public PasswordChangedView::Delegate { 46 public PasswordChangedView::Delegate {
47 public: 47 public:
48 // Initializes views for known users. |background_bounds| determines the 48 // Initializes views for known users. |background_bounds| determines the
49 // bounds of background view. 49 // bounds of background view.
50 ExistingUserController(const std::vector<UserManager::User>& users, 50 ExistingUserController(const std::vector<UserManager::User>& users,
51 const gfx::Rect& background_bounds); 51 const gfx::Rect& background_bounds);
52 52
53 // Returns the current existing user controller if it has been created.
54 static ExistingUserController* current_controller() {
55 return current_controller_;
56 }
57
53 // Creates and shows the appropriate set of windows. 58 // Creates and shows the appropriate set of windows.
54 void Init(); 59 void Init();
55 60
56 // Takes ownership of the specified background widget and view. 61 // Takes ownership of the specified background widget and view.
57 void OwnBackground(views::Widget* background_widget, 62 void OwnBackground(views::Widget* background_widget,
58 chromeos::BackgroundView* background_view); 63 chromeos::BackgroundView* background_view);
59 64
60 // Tries to login from new user pod with given user login and password. 65 // Tries to login from new user pod with given user login and password.
61 // Called after creating new account. 66 // Called after creating new account.
62 void LoginNewUser(const std::string& username, const std::string& password); 67 void LoginNewUser(const std::string& username, const std::string& password);
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 // logins for the same user. 154 // logins for the same user.
150 size_t num_login_attempts_; 155 size_t num_login_attempts_;
151 156
152 // See comment in ProcessWmMessage. 157 // See comment in ProcessWmMessage.
153 base::OneShotTimer<ExistingUserController> delete_timer_; 158 base::OneShotTimer<ExistingUserController> delete_timer_;
154 159
155 // Pointer to the instance that was scheduled to be deleted soon or NULL 160 // Pointer to the instance that was scheduled to be deleted soon or NULL
156 // if there is no such instance. 161 // if there is no such instance.
157 static ExistingUserController* delete_scheduled_instance_; 162 static ExistingUserController* delete_scheduled_instance_;
158 163
164 // Pointer to the current instance of the controller to be used by
165 // automation tests.
166 static ExistingUserController* current_controller_;
Dmitry Polukhin 2010/12/14 14:06:18 Yeah one more static pointer to current controller
whywhat 2010/12/16 10:47:52 Done.
167
159 // Pointer to shown message bubble. We don't need to delete it because 168 // Pointer to shown message bubble. We don't need to delete it because
160 // it will be deleted on bubble closing. 169 // it will be deleted on bubble closing.
161 MessageBubble* bubble_; 170 MessageBubble* bubble_;
162 171
163 // URL that will be opened on browser startup. 172 // URL that will be opened on browser startup.
164 GURL start_url_; 173 GURL start_url_;
165 174
166 // Help application used for help dialogs. 175 // Help application used for help dialogs.
167 scoped_ptr<HelpAppLauncher> help_app_; 176 scoped_ptr<HelpAppLauncher> help_app_;
168 177
169 // Triggers prefetching of user settings. 178 // Triggers prefetching of user settings.
170 scoped_ptr<UserCrosSettingsProvider> user_settings_; 179 scoped_ptr<UserCrosSettingsProvider> user_settings_;
171 180
172 // Factory of callbacks. 181 // Factory of callbacks.
173 ScopedRunnableMethodFactory<ExistingUserController> method_factory_; 182 ScopedRunnableMethodFactory<ExistingUserController> method_factory_;
174 183
175 DISALLOW_COPY_AND_ASSIGN(ExistingUserController); 184 DISALLOW_COPY_AND_ASSIGN(ExistingUserController);
176 }; 185 };
177 186
178 } // namespace chromeos 187 } // namespace chromeos
179 188
180 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_ 189 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698