| 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 |
| 134 // Changes enabled state of the UI. | 141 // Changes enabled state of the UI. |
| 135 virtual void SetUIEnabled(bool is_enabled) = 0; | 142 virtual void SetUIEnabled(bool is_enabled) = 0; |
| 136 | 143 |
| 144 // Selects user entry with specified |index|. |
| 145 // Does nothing if current user is already selected. |
| 146 virtual void SelectPod(int index) = 0; |
| 147 |
| 137 // Displays simple error bubble with |error_msg_id| specified. | 148 // Displays simple error bubble with |error_msg_id| specified. |
| 138 // |login_attempts| shows number of login attempts made by current user. | 149 // |login_attempts| shows number of login attempts made by current user. |
| 139 // |help_topic_id| is additional help topic that is presented as link. | 150 // |help_topic_id| is additional help topic that is presented as link. |
| 140 virtual void ShowError(int error_msg_id, | 151 virtual void ShowError(int error_msg_id, |
| 141 int login_attempts, | 152 int login_attempts, |
| 142 HelpAppLauncher::HelpTopic help_topic_id) = 0; | 153 HelpAppLauncher::HelpTopic help_topic_id) = 0; |
| 143 | 154 |
| 144 // Displays detailed error screen for error with ID |error_id|. | 155 // Displays detailed error screen for error with ID |error_id|. |
| 145 virtual void ShowErrorScreen(LoginDisplay::SigninError error_id) = 0; | 156 virtual void ShowErrorScreen(LoginDisplay::SigninError error_id) = 0; |
| 146 | 157 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 // in redesigned login stack. | 199 // in redesigned login stack. |
| 189 // Login stack (and this object) will be recreated for next user sign in. | 200 // Login stack (and this object) will be recreated for next user sign in. |
| 190 bool is_signin_completed_; | 201 bool is_signin_completed_; |
| 191 | 202 |
| 192 DISALLOW_COPY_AND_ASSIGN(LoginDisplay); | 203 DISALLOW_COPY_AND_ASSIGN(LoginDisplay); |
| 193 }; | 204 }; |
| 194 | 205 |
| 195 } // namespace chromeos | 206 } // namespace chromeos |
| 196 | 207 |
| 197 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_H_ | 208 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_H_ |
| OLD | NEW |