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