OLD | NEW |
---|---|
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 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 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
213 // Shows "critical TPM error" screen. | 213 // Shows "critical TPM error" screen. |
214 void ShowTPMError(); | 214 void ShowTPMError(); |
215 | 215 |
216 // Shows "password changed" dialog. | 216 // Shows "password changed" dialog. |
217 void ShowPasswordChangedDialog(); | 217 void ShowPasswordChangedDialog(); |
218 | 218 |
219 // Creates |login_performer_| if necessary and calls login() on it. | 219 // Creates |login_performer_| if necessary and calls login() on it. |
220 void PerformLogin(const UserContext& user_context, | 220 void PerformLogin(const UserContext& user_context, |
221 LoginPerformer::AuthorizationMode auth_mode); | 221 LoginPerformer::AuthorizationMode auth_mode); |
222 | 222 |
223 // calls login() on previously-used |login_performer|. | |
224 void ContinuePerformLogin(const UserContext& user_context, | |
225 LoginPerformer::AuthorizationMode auth_mode); | |
xiyuan
2017/04/06 16:08:59
nit: maybe we should swap the order of args so tha
fukino
2017/04/07 02:05:49
Done.
| |
226 | |
223 // Updates the |login_display_| attached to this controller. | 227 // Updates the |login_display_| attached to this controller. |
224 void UpdateLoginDisplay(const user_manager::UserList& users); | 228 void UpdateLoginDisplay(const user_manager::UserList& users); |
225 | 229 |
226 // Sends an accessibility alert event to extension listeners. | 230 // Sends an accessibility alert event to extension listeners. |
227 void SendAccessibilityAlert(const std::string& alert_text); | 231 void SendAccessibilityAlert(const std::string& alert_text); |
228 | 232 |
229 // Callback invoked when the keyboard layouts available for a public session | 233 // Callback invoked when the keyboard layouts available for a public session |
230 // have been retrieved. Selects the first layout from the list and continues | 234 // have been retrieved. Selects the first layout from the list and continues |
231 // login. | 235 // login. |
232 void SetPublicSessionKeyboardLayoutAndLogin( | 236 void SetPublicSessionKeyboardLayoutAndLogin( |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
381 | 385 |
382 // Factory of callbacks. | 386 // Factory of callbacks. |
383 base::WeakPtrFactory<ExistingUserController> weak_factory_; | 387 base::WeakPtrFactory<ExistingUserController> weak_factory_; |
384 | 388 |
385 DISALLOW_COPY_AND_ASSIGN(ExistingUserController); | 389 DISALLOW_COPY_AND_ASSIGN(ExistingUserController); |
386 }; | 390 }; |
387 | 391 |
388 } // namespace chromeos | 392 } // namespace chromeos |
389 | 393 |
390 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_ | 394 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_ |
OLD | NEW |