| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_UI_LOGIN_DISPLAY_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 bool show_new_user) = 0; | 124 bool show_new_user) = 0; |
| 125 | 125 |
| 126 // Notifies the login UI that the preferences defining how to visualize it to | 126 // Notifies the login UI that the preferences defining how to visualize it to |
| 127 // the user have changed and it needs to refresh. | 127 // the user have changed and it needs to refresh. |
| 128 virtual void OnPreferencesChanged() = 0; | 128 virtual void OnPreferencesChanged() = 0; |
| 129 | 129 |
| 130 // Called when user image has been changed. | 130 // Called when user image has been changed. |
| 131 // |user| contains updated user. | 131 // |user| contains updated user. |
| 132 virtual void OnUserImageChanged(const User& user) = 0; | 132 virtual void OnUserImageChanged(const User& user) = 0; |
| 133 | 133 |
| 134 // After this call login display should be ready to be smoothly destroyed | |
| 135 // (e.g. hide throbber, etc.). | |
| 136 virtual void OnFadeOut() = 0; | |
| 137 | |
| 138 // Called when user is successfully authenticated. | |
| 139 virtual void OnLoginSuccess(const std::string& username) = 0; | |
| 140 | |
| 141 // Changes enabled state of the UI. | 134 // Changes enabled state of the UI. |
| 142 virtual void SetUIEnabled(bool is_enabled) = 0; | 135 virtual void SetUIEnabled(bool is_enabled) = 0; |
| 143 | 136 |
| 144 // Selects user entry with specified |index|. | |
| 145 // Does nothing if current user is already selected. | |
| 146 virtual void SelectPod(int index) = 0; | |
| 147 | |
| 148 // Displays simple error bubble with |error_msg_id| specified. | 137 // Displays simple error bubble with |error_msg_id| specified. |
| 149 // |login_attempts| shows number of login attempts made by current user. | 138 // |login_attempts| shows number of login attempts made by current user. |
| 150 // |help_topic_id| is additional help topic that is presented as link. | 139 // |help_topic_id| is additional help topic that is presented as link. |
| 151 virtual void ShowError(int error_msg_id, | 140 virtual void ShowError(int error_msg_id, |
| 152 int login_attempts, | 141 int login_attempts, |
| 153 HelpAppLauncher::HelpTopic help_topic_id) = 0; | 142 HelpAppLauncher::HelpTopic help_topic_id) = 0; |
| 154 | 143 |
| 155 // Displays detailed error screen for error with ID |error_id|. | 144 // Displays detailed error screen for error with ID |error_id|. |
| 156 virtual void ShowErrorScreen(LoginDisplay::SigninError error_id) = 0; | 145 virtual void ShowErrorScreen(LoginDisplay::SigninError error_id) = 0; |
| 157 | 146 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 // in redesigned login stack. | 188 // in redesigned login stack. |
| 200 // Login stack (and this object) will be recreated for next user sign in. | 189 // Login stack (and this object) will be recreated for next user sign in. |
| 201 bool is_signin_completed_; | 190 bool is_signin_completed_; |
| 202 | 191 |
| 203 DISALLOW_COPY_AND_ASSIGN(LoginDisplay); | 192 DISALLOW_COPY_AND_ASSIGN(LoginDisplay); |
| 204 }; | 193 }; |
| 205 | 194 |
| 206 } // namespace chromeos | 195 } // namespace chromeos |
| 207 | 196 |
| 208 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_H_ | 197 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_H_ |
| OLD | NEW |