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_LOGIN_DISPLAY_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_DISPLAY_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_DISPLAY_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_DISPLAY_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 // Sign in into guest session. | 60 // Sign in into guest session. |
61 virtual void LoginAsGuest() = 0; | 61 virtual void LoginAsGuest() = 0; |
62 | 62 |
63 // Decrypt cryptohome using user provided |old_password| | 63 // Decrypt cryptohome using user provided |old_password| |
64 // and migrate to new password. | 64 // and migrate to new password. |
65 virtual void MigrateUserData(const std::string& old_password) = 0; | 65 virtual void MigrateUserData(const std::string& old_password) = 0; |
66 | 66 |
67 // Sign in into the public account identified by |username|. | 67 // Sign in into the public account identified by |username|. |
68 virtual void LoginAsPublicAccount(const std::string& username) = 0; | 68 virtual void LoginAsPublicAccount(const std::string& username) = 0; |
69 | 69 |
| 70 // Notify the delegate when the sign-in UI is finished loading. |
| 71 virtual void OnSigninScreenReady() = 0; |
| 72 |
70 // Called when existing user pod is selected in the UI. | 73 // Called when existing user pod is selected in the UI. |
71 virtual void OnUserSelected(const std::string& username) = 0; | 74 virtual void OnUserSelected(const std::string& username) = 0; |
72 | 75 |
73 // Called when the user requests enterprise enrollment. | 76 // Called when the user requests enterprise enrollment. |
74 virtual void OnStartEnterpriseEnrollment() = 0; | 77 virtual void OnStartEnterpriseEnrollment() = 0; |
75 | 78 |
76 // Called when the user requests device reset. | 79 // Called when the user requests device reset. |
77 virtual void OnStartDeviceReset() = 0; | 80 virtual void OnStartDeviceReset() = 0; |
78 | 81 |
79 // Shows wrong HWID screen. | 82 // Shows wrong HWID screen. |
80 virtual void ShowWrongHWIDScreen() = 0; | 83 virtual void ShowWrongHWIDScreen() = 0; |
81 | 84 |
| 85 // Restarts the public-session auto-login timer if it is running. |
| 86 virtual void ResetPublicSessionAutoLoginTimer() = 0; |
| 87 |
82 // Ignore password change, remove existing cryptohome and | 88 // Ignore password change, remove existing cryptohome and |
83 // force full sync of user data. | 89 // force full sync of user data. |
84 virtual void ResyncUserData() = 0; | 90 virtual void ResyncUserData() = 0; |
85 | 91 |
86 // Sets the displayed email for the next login attempt with |CompleteLogin|. | 92 // Sets the displayed email for the next login attempt with |CompleteLogin|. |
87 // If it succeeds, user's displayed email value will be updated to |email|. | 93 // If it succeeds, user's displayed email value will be updated to |email|. |
88 virtual void SetDisplayEmail(const std::string& email) = 0; | 94 virtual void SetDisplayEmail(const std::string& email) = 0; |
89 | 95 |
90 // Sign out the currently signed in user. | 96 // Sign out the currently signed in user. |
91 // Used when the lock screen is being displayed. | 97 // Used when the lock screen is being displayed. |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 | 176 |
171 // Bounds of the login UI background. | 177 // Bounds of the login UI background. |
172 gfx::Rect background_bounds_; | 178 gfx::Rect background_bounds_; |
173 | 179 |
174 DISALLOW_COPY_AND_ASSIGN(LoginDisplay); | 180 DISALLOW_COPY_AND_ASSIGN(LoginDisplay); |
175 }; | 181 }; |
176 | 182 |
177 } // namespace chromeos | 183 } // namespace chromeos |
178 | 184 |
179 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_DISPLAY_H_ | 185 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_DISPLAY_H_ |
OLD | NEW |