| 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 virtual void OnPreferencesChanged() = 0; | 78 virtual void OnPreferencesChanged() = 0; |
| 79 virtual void ResetSigninScreenHandlerDelegate() = 0; | 79 virtual void ResetSigninScreenHandlerDelegate() = 0; |
| 80 virtual void ShowError(int login_attempts, | 80 virtual void ShowError(int login_attempts, |
| 81 const std::string& error_text, | 81 const std::string& error_text, |
| 82 const std::string& help_link_text, | 82 const std::string& help_link_text, |
| 83 HelpAppLauncher::HelpTopic help_topic_id) = 0; | 83 HelpAppLauncher::HelpTopic help_topic_id) = 0; |
| 84 virtual void ShowErrorScreen(LoginDisplay::SigninError error_id) = 0; | 84 virtual void ShowErrorScreen(LoginDisplay::SigninError error_id) = 0; |
| 85 virtual void ShowGaiaPasswordChanged(const std::string& username) = 0; | 85 virtual void ShowGaiaPasswordChanged(const std::string& username) = 0; |
| 86 virtual void ShowSigninUI(const std::string& email) = 0; | 86 virtual void ShowSigninUI(const std::string& email) = 0; |
| 87 virtual void ShowControlBar(bool show) = 0; | 87 virtual void ShowControlBar(bool show) = 0; |
| 88 virtual void SetKeyboardState(bool shown) = 0; |
| 88 virtual void ShowPasswordChangedDialog(bool show_password_error) = 0; | 89 virtual void ShowPasswordChangedDialog(bool show_password_error) = 0; |
| 89 // Show sign-in screen for the given credentials. | 90 // Show sign-in screen for the given credentials. |
| 90 virtual void ShowSigninScreenForCreds(const std::string& username, | 91 virtual void ShowSigninScreenForCreds(const std::string& username, |
| 91 const std::string& password) = 0; | 92 const std::string& password) = 0; |
| 92 protected: | 93 protected: |
| 93 virtual ~LoginDisplayWebUIHandler() {} | 94 virtual ~LoginDisplayWebUIHandler() {} |
| 94 }; | 95 }; |
| 95 | 96 |
| 96 // An interface for SigninScreenHandler to call WebUILoginDisplay. | 97 // An interface for SigninScreenHandler to call WebUILoginDisplay. |
| 97 class SigninScreenHandlerDelegate { | 98 class SigninScreenHandlerDelegate { |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 virtual void OnUserImageChanged(const User& user) OVERRIDE; | 274 virtual void OnUserImageChanged(const User& user) OVERRIDE; |
| 274 virtual void OnPreferencesChanged() OVERRIDE; | 275 virtual void OnPreferencesChanged() OVERRIDE; |
| 275 virtual void ResetSigninScreenHandlerDelegate() OVERRIDE; | 276 virtual void ResetSigninScreenHandlerDelegate() OVERRIDE; |
| 276 virtual void ShowError(int login_attempts, | 277 virtual void ShowError(int login_attempts, |
| 277 const std::string& error_text, | 278 const std::string& error_text, |
| 278 const std::string& help_link_text, | 279 const std::string& help_link_text, |
| 279 HelpAppLauncher::HelpTopic help_topic_id) OVERRIDE; | 280 HelpAppLauncher::HelpTopic help_topic_id) OVERRIDE; |
| 280 virtual void ShowGaiaPasswordChanged(const std::string& username) OVERRIDE; | 281 virtual void ShowGaiaPasswordChanged(const std::string& username) OVERRIDE; |
| 281 virtual void ShowSigninUI(const std::string& email) OVERRIDE; | 282 virtual void ShowSigninUI(const std::string& email) OVERRIDE; |
| 282 virtual void ShowControlBar(bool show) OVERRIDE; | 283 virtual void ShowControlBar(bool show) OVERRIDE; |
| 284 virtual void SetKeyboardState(bool shown) OVERRIDE; |
| 283 virtual void ShowPasswordChangedDialog(bool show_password_error) OVERRIDE; | 285 virtual void ShowPasswordChangedDialog(bool show_password_error) OVERRIDE; |
| 284 virtual void ShowErrorScreen(LoginDisplay::SigninError error_id) OVERRIDE; | 286 virtual void ShowErrorScreen(LoginDisplay::SigninError error_id) OVERRIDE; |
| 285 virtual void ShowSigninScreenForCreds(const std::string& username, | 287 virtual void ShowSigninScreenForCreds(const std::string& username, |
| 286 const std::string& password) OVERRIDE; | 288 const std::string& password) OVERRIDE; |
| 287 | 289 |
| 288 // ui::EventHandler implementation: | 290 // ui::EventHandler implementation: |
| 289 virtual void OnKeyEvent(ui::KeyEvent* key) OVERRIDE; | 291 virtual void OnKeyEvent(ui::KeyEvent* key) OVERRIDE; |
| 290 | 292 |
| 291 // content::NotificationObserver implementation: | 293 // content::NotificationObserver implementation: |
| 292 virtual void Observe(int type, | 294 virtual void Observe(int type, |
| (...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 541 | 543 |
| 542 // Helper that retrieves the authenticated user's e-mail address. | 544 // Helper that retrieves the authenticated user's e-mail address. |
| 543 scoped_ptr<AuthenticatedUserEmailRetriever> email_retriever_; | 545 scoped_ptr<AuthenticatedUserEmailRetriever> email_retriever_; |
| 544 | 546 |
| 545 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); | 547 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); |
| 546 }; | 548 }; |
| 547 | 549 |
| 548 } // namespace chromeos | 550 } // namespace chromeos |
| 549 | 551 |
| 550 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ | 552 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ |
| OLD | NEW |