| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 | 66 |
| 67 std::string email_; | 67 std::string email_; |
| 68 bool oobe_ui_; | 68 bool oobe_ui_; |
| 69 }; | 69 }; |
| 70 | 70 |
| 71 // An interface for WebUILoginDisplay to call SigninScreenHandler. | 71 // An interface for WebUILoginDisplay to call SigninScreenHandler. |
| 72 class LoginDisplayWebUIHandler { | 72 class LoginDisplayWebUIHandler { |
| 73 public: | 73 public: |
| 74 virtual void ClearAndEnablePassword() = 0; | 74 virtual void ClearAndEnablePassword() = 0; |
| 75 virtual void ClearUserPodPassword() = 0; | 75 virtual void ClearUserPodPassword() = 0; |
| 76 virtual void OnLoginSuccess(const std::string& username) = 0; |
| 76 virtual void OnUserRemoved(const std::string& username) = 0; | 77 virtual void OnUserRemoved(const std::string& username) = 0; |
| 77 virtual void OnUserImageChanged(const User& user) = 0; | 78 virtual void OnUserImageChanged(const User& user) = 0; |
| 78 virtual void OnPreferencesChanged() = 0; | 79 virtual void OnPreferencesChanged() = 0; |
| 79 virtual void ResetSigninScreenHandlerDelegate() = 0; | 80 virtual void ResetSigninScreenHandlerDelegate() = 0; |
| 80 virtual void ShowError(int login_attempts, | 81 virtual void ShowError(int login_attempts, |
| 81 const std::string& error_text, | 82 const std::string& error_text, |
| 82 const std::string& help_link_text, | 83 const std::string& help_link_text, |
| 83 HelpAppLauncher::HelpTopic help_topic_id) = 0; | 84 HelpAppLauncher::HelpTopic help_topic_id) = 0; |
| 84 virtual void ShowErrorScreen(LoginDisplay::SigninError error_id) = 0; | 85 virtual void ShowErrorScreen(LoginDisplay::SigninError error_id) = 0; |
| 85 virtual void ShowGaiaPasswordChanged(const std::string& username) = 0; | 86 virtual void ShowGaiaPasswordChanged(const std::string& username) = 0; |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 virtual void DeclareLocalizedValues(LocalizedValuesBuilder* builder) OVERRIDE; | 263 virtual void DeclareLocalizedValues(LocalizedValuesBuilder* builder) OVERRIDE; |
| 263 virtual void Initialize() OVERRIDE; | 264 virtual void Initialize() OVERRIDE; |
| 264 virtual gfx::NativeWindow GetNativeWindow() OVERRIDE; | 265 virtual gfx::NativeWindow GetNativeWindow() OVERRIDE; |
| 265 | 266 |
| 266 // WebUIMessageHandler implementation: | 267 // WebUIMessageHandler implementation: |
| 267 virtual void RegisterMessages() OVERRIDE; | 268 virtual void RegisterMessages() OVERRIDE; |
| 268 | 269 |
| 269 // LoginDisplayWebUIHandler implementation: | 270 // LoginDisplayWebUIHandler implementation: |
| 270 virtual void ClearAndEnablePassword() OVERRIDE; | 271 virtual void ClearAndEnablePassword() OVERRIDE; |
| 271 virtual void ClearUserPodPassword() OVERRIDE; | 272 virtual void ClearUserPodPassword() OVERRIDE; |
| 273 virtual void OnLoginSuccess(const std::string& username) OVERRIDE; |
| 272 virtual void OnUserRemoved(const std::string& username) OVERRIDE; | 274 virtual void OnUserRemoved(const std::string& username) OVERRIDE; |
| 273 virtual void OnUserImageChanged(const User& user) OVERRIDE; | 275 virtual void OnUserImageChanged(const User& user) OVERRIDE; |
| 274 virtual void OnPreferencesChanged() OVERRIDE; | 276 virtual void OnPreferencesChanged() OVERRIDE; |
| 275 virtual void ResetSigninScreenHandlerDelegate() OVERRIDE; | 277 virtual void ResetSigninScreenHandlerDelegate() OVERRIDE; |
| 276 virtual void ShowError(int login_attempts, | 278 virtual void ShowError(int login_attempts, |
| 277 const std::string& error_text, | 279 const std::string& error_text, |
| 278 const std::string& help_link_text, | 280 const std::string& help_link_text, |
| 279 HelpAppLauncher::HelpTopic help_topic_id) OVERRIDE; | 281 HelpAppLauncher::HelpTopic help_topic_id) OVERRIDE; |
| 280 virtual void ShowGaiaPasswordChanged(const std::string& username) OVERRIDE; | 282 virtual void ShowGaiaPasswordChanged(const std::string& username) OVERRIDE; |
| 281 virtual void ShowSigninUI(const std::string& email) OVERRIDE; | 283 virtual void ShowSigninUI(const std::string& email) OVERRIDE; |
| (...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 544 | 546 |
| 545 // Helper that retrieves the authenticated user's e-mail address. | 547 // Helper that retrieves the authenticated user's e-mail address. |
| 546 scoped_ptr<AuthenticatedUserEmailRetriever> email_retriever_; | 548 scoped_ptr<AuthenticatedUserEmailRetriever> email_retriever_; |
| 547 | 549 |
| 548 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); | 550 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); |
| 549 }; | 551 }; |
| 550 | 552 |
| 551 } // namespace chromeos | 553 } // namespace chromeos |
| 552 | 554 |
| 553 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ | 555 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ |
| OLD | NEW |