| 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 bool show_new_user) = 0; | 137 bool show_new_user) = 0; |
| 138 | 138 |
| 139 // Notifies the login UI that the preferences defining how to visualize it to | 139 // Notifies the login UI that the preferences defining how to visualize it to |
| 140 // the user have changed and it needs to refresh. | 140 // the user have changed and it needs to refresh. |
| 141 virtual void OnPreferencesChanged() = 0; | 141 virtual void OnPreferencesChanged() = 0; |
| 142 | 142 |
| 143 // Called when user image has been changed. | 143 // Called when user image has been changed. |
| 144 // |user| contains updated user. | 144 // |user| contains updated user. |
| 145 virtual void OnUserImageChanged(const User& user) = 0; | 145 virtual void OnUserImageChanged(const User& user) = 0; |
| 146 | 146 |
| 147 // After this call login display should be ready to be smoothly destroyed | |
| 148 // (e.g. hide throbber, etc.). | |
| 149 virtual void OnFadeOut() = 0; | |
| 150 | |
| 151 // Called when user is successfully authenticated. | |
| 152 virtual void OnLoginSuccess(const std::string& username) = 0; | |
| 153 | |
| 154 // Changes enabled state of the UI. | 147 // Changes enabled state of the UI. |
| 155 virtual void SetUIEnabled(bool is_enabled) = 0; | 148 virtual void SetUIEnabled(bool is_enabled) = 0; |
| 156 | 149 |
| 157 // Selects user entry with specified |index|. | |
| 158 // Does nothing if current user is already selected. | |
| 159 virtual void SelectPod(int index) = 0; | |
| 160 | |
| 161 // Displays a banner on the login screen containing |message|. | 150 // Displays a banner on the login screen containing |message|. |
| 162 virtual void ShowBannerMessage(const std::string& message) = 0; | 151 virtual void ShowBannerMessage(const std::string& message) = 0; |
| 163 | 152 |
| 164 // Shows a button with an icon inside the user pod of |username|. | 153 // Shows a button with an icon inside the user pod of |username|. |
| 165 virtual void ShowUserPodButton(const std::string& username, | 154 virtual void ShowUserPodButton(const std::string& username, |
| 166 const std::string& iconURL, | 155 const std::string& iconURL, |
| 167 const base::Closure& click_callback) = 0; | 156 const base::Closure& click_callback) = 0; |
| 168 | 157 |
| 169 // Hides the user pod button for a user. | 158 // Hides the user pod button for a user. |
| 170 virtual void HideUserPodButton(const std::string& username) = 0; | 159 virtual void HideUserPodButton(const std::string& username) = 0; |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 // in redesigned login stack. | 220 // in redesigned login stack. |
| 232 // Login stack (and this object) will be recreated for next user sign in. | 221 // Login stack (and this object) will be recreated for next user sign in. |
| 233 bool is_signin_completed_; | 222 bool is_signin_completed_; |
| 234 | 223 |
| 235 DISALLOW_COPY_AND_ASSIGN(LoginDisplay); | 224 DISALLOW_COPY_AND_ASSIGN(LoginDisplay); |
| 236 }; | 225 }; |
| 237 | 226 |
| 238 } // namespace chromeos | 227 } // namespace chromeos |
| 239 | 228 |
| 240 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_H_ | 229 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_H_ |
| OLD | NEW |