| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 virtual void OnUserImageChanged(const User& user) = 0; | 40 virtual void OnUserImageChanged(const User& user) = 0; |
| 41 virtual void OnPreferencesChanged() = 0; | 41 virtual void OnPreferencesChanged() = 0; |
| 42 virtual void ShowError(int login_attempts, | 42 virtual void ShowError(int login_attempts, |
| 43 const std::string& error_text, | 43 const std::string& error_text, |
| 44 const std::string& help_link_text, | 44 const std::string& help_link_text, |
| 45 HelpAppLauncher::HelpTopic help_topic_id) = 0; | 45 HelpAppLauncher::HelpTopic help_topic_id) = 0; |
| 46 virtual void ShowGaiaPasswordChanged(const std::string& username) = 0; | 46 virtual void ShowGaiaPasswordChanged(const std::string& username) = 0; |
| 47 // Show siginin screen for the given credentials. | 47 // Show siginin screen for the given credentials. |
| 48 virtual void ShowSigninScreenForCreds(const std::string& username, | 48 virtual void ShowSigninScreenForCreds(const std::string& username, |
| 49 const std::string& password) = 0; | 49 const std::string& password) = 0; |
| 50 virtual void ResetSigninScreenHandlerDelegate() = 0; |
| 50 protected: | 51 protected: |
| 51 virtual ~LoginDisplayWebUIHandler() {} | 52 virtual ~LoginDisplayWebUIHandler() {} |
| 52 }; | 53 }; |
| 53 | 54 |
| 54 // An interface for SigninScreenHandler to call WebUILoginDisplay. | 55 // An interface for SigninScreenHandler to call WebUILoginDisplay. |
| 55 class SigninScreenHandlerDelegate { | 56 class SigninScreenHandlerDelegate { |
| 56 public: | 57 public: |
| 57 // Confirms sign up by provided |username| and |password| specified. | 58 // Confirms sign up by provided |username| and |password| specified. |
| 58 // Used for new user login via GAIA extension. | 59 // Used for new user login via GAIA extension. |
| 59 virtual void CompleteLogin(const std::string& username, | 60 virtual void CompleteLogin(const std::string& username, |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 virtual void OnUserRemoved(const std::string& username) OVERRIDE; | 145 virtual void OnUserRemoved(const std::string& username) OVERRIDE; |
| 145 virtual void OnUserImageChanged(const User& user) OVERRIDE; | 146 virtual void OnUserImageChanged(const User& user) OVERRIDE; |
| 146 virtual void OnPreferencesChanged() OVERRIDE; | 147 virtual void OnPreferencesChanged() OVERRIDE; |
| 147 virtual void ShowError(int login_attempts, | 148 virtual void ShowError(int login_attempts, |
| 148 const std::string& error_text, | 149 const std::string& error_text, |
| 149 const std::string& help_link_text, | 150 const std::string& help_link_text, |
| 150 HelpAppLauncher::HelpTopic help_topic_id) OVERRIDE; | 151 HelpAppLauncher::HelpTopic help_topic_id) OVERRIDE; |
| 151 virtual void ShowSigninScreenForCreds(const std::string& username, | 152 virtual void ShowSigninScreenForCreds(const std::string& username, |
| 152 const std::string& password) OVERRIDE; | 153 const std::string& password) OVERRIDE; |
| 153 virtual void ShowGaiaPasswordChanged(const std::string& username) OVERRIDE; | 154 virtual void ShowGaiaPasswordChanged(const std::string& username) OVERRIDE; |
| 155 virtual void ResetSigninScreenHandlerDelegate() OVERRIDE; |
| 154 | 156 |
| 155 // BrowsingDataRemover::Observer overrides. | 157 // BrowsingDataRemover::Observer overrides. |
| 156 virtual void OnBrowsingDataRemoverDone() OVERRIDE; | 158 virtual void OnBrowsingDataRemoverDone() OVERRIDE; |
| 157 | 159 |
| 158 // SystemKeyEventListener::CapsLockObserver overrides. | 160 // SystemKeyEventListener::CapsLockObserver overrides. |
| 159 virtual void OnCapsLockChange(bool enabled) OVERRIDE; | 161 virtual void OnCapsLockChange(bool enabled) OVERRIDE; |
| 160 | 162 |
| 161 // content::NotificationObserver implementation. | 163 // content::NotificationObserver implementation. |
| 162 virtual void Observe(int type, | 164 virtual void Observe(int type, |
| 163 const content::NotificationSource& source, | 165 const content::NotificationSource& source, |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 | 272 |
| 271 // CapsLock state change notifier instance; | 273 // CapsLock state change notifier instance; |
| 272 SystemKeyEventListener* key_event_listener_; | 274 SystemKeyEventListener* key_event_listener_; |
| 273 | 275 |
| 274 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); | 276 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); |
| 275 }; | 277 }; |
| 276 | 278 |
| 277 } // namespace chromeos | 279 } // namespace chromeos |
| 278 | 280 |
| 279 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ | 281 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ |
| OLD | NEW |