| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 10 matching lines...) Expand all Loading... |
| 21 class BrowsingDataRemover; | 21 class BrowsingDataRemover; |
| 22 | 22 |
| 23 namespace base { | 23 namespace base { |
| 24 class DictionaryValue; | 24 class DictionaryValue; |
| 25 class ListValue; | 25 class ListValue; |
| 26 } | 26 } |
| 27 | 27 |
| 28 namespace chromeos { | 28 namespace chromeos { |
| 29 | 29 |
| 30 class NetworkStateInformer; | 30 class NetworkStateInformer; |
| 31 class User; |
| 31 | 32 |
| 32 // An interface for WebUILoginDisplay to call SigninScreenHandler. | 33 // An interface for WebUILoginDisplay to call SigninScreenHandler. |
| 33 class LoginDisplayWebUIHandler { | 34 class LoginDisplayWebUIHandler { |
| 34 public: | 35 public: |
| 35 virtual void ClearAndEnablePassword() = 0; | 36 virtual void ClearAndEnablePassword() = 0; |
| 36 virtual void OnLoginSuccess(const std::string& username) = 0; | 37 virtual void OnLoginSuccess(const std::string& username) = 0; |
| 37 virtual void OnUserRemoved(const std::string& username) = 0; | 38 virtual void OnUserRemoved(const std::string& username) = 0; |
| 39 virtual void OnUserImageChanged(const User& user) = 0; |
| 38 virtual void ShowError(int login_attempts, | 40 virtual void ShowError(int login_attempts, |
| 39 const std::string& error_text, | 41 const std::string& error_text, |
| 40 const std::string& help_link_text, | 42 const std::string& help_link_text, |
| 41 HelpAppLauncher::HelpTopic help_topic_id) = 0; | 43 HelpAppLauncher::HelpTopic help_topic_id) = 0; |
| 42 // Show siginin screen for the given credentials. | 44 // Show siginin screen for the given credentials. |
| 43 virtual void ShowSigninScreenForCreds(const std::string& username, | 45 virtual void ShowSigninScreenForCreds(const std::string& username, |
| 44 const std::string& password) = 0; | 46 const std::string& password) = 0; |
| 45 protected: | 47 protected: |
| 46 virtual ~LoginDisplayWebUIHandler() {} | 48 virtual ~LoginDisplayWebUIHandler() {} |
| 47 }; | 49 }; |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 base::DictionaryValue* localized_strings) OVERRIDE; | 118 base::DictionaryValue* localized_strings) OVERRIDE; |
| 117 virtual void Initialize() OVERRIDE; | 119 virtual void Initialize() OVERRIDE; |
| 118 | 120 |
| 119 // WebUIMessageHandler implementation: | 121 // WebUIMessageHandler implementation: |
| 120 virtual void RegisterMessages() OVERRIDE; | 122 virtual void RegisterMessages() OVERRIDE; |
| 121 | 123 |
| 122 // BaseLoginUIHandler implementation. | 124 // BaseLoginUIHandler implementation. |
| 123 virtual void ClearAndEnablePassword() OVERRIDE; | 125 virtual void ClearAndEnablePassword() OVERRIDE; |
| 124 virtual void OnLoginSuccess(const std::string& username) OVERRIDE; | 126 virtual void OnLoginSuccess(const std::string& username) OVERRIDE; |
| 125 virtual void OnUserRemoved(const std::string& username) OVERRIDE; | 127 virtual void OnUserRemoved(const std::string& username) OVERRIDE; |
| 128 virtual void OnUserImageChanged(const User& user) OVERRIDE; |
| 126 virtual void ShowError(int login_attempts, | 129 virtual void ShowError(int login_attempts, |
| 127 const std::string& error_text, | 130 const std::string& error_text, |
| 128 const std::string& help_link_text, | 131 const std::string& help_link_text, |
| 129 HelpAppLauncher::HelpTopic help_topic_id) OVERRIDE; | 132 HelpAppLauncher::HelpTopic help_topic_id) OVERRIDE; |
| 130 virtual void ShowSigninScreenForCreds(const std::string& username, | 133 virtual void ShowSigninScreenForCreds(const std::string& username, |
| 131 const std::string& password) OVERRIDE; | 134 const std::string& password) OVERRIDE; |
| 132 | 135 |
| 133 // BrowsingDataRemover::Observer overrides. | 136 // BrowsingDataRemover::Observer overrides. |
| 134 virtual void OnBrowsingDataRemoverDone() OVERRIDE; | 137 virtual void OnBrowsingDataRemoverDone() OVERRIDE; |
| 135 | 138 |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 | 252 |
| 250 // CapsLock state change notifier instance; | 253 // CapsLock state change notifier instance; |
| 251 SystemKeyEventListener* key_event_listener_; | 254 SystemKeyEventListener* key_event_listener_; |
| 252 | 255 |
| 253 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); | 256 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); |
| 254 }; | 257 }; |
| 255 | 258 |
| 256 } // namespace chromeos | 259 } // namespace chromeos |
| 257 | 260 |
| 258 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ | 261 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ |
| OLD | NEW |