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 <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 25 matching lines...) Expand all Loading... |
36 | 36 |
37 class CaptivePortalWindowProxy; | 37 class CaptivePortalWindowProxy; |
38 class ErrorScreenActor; | 38 class ErrorScreenActor; |
39 class NativeWindowDelegate; | 39 class NativeWindowDelegate; |
40 class User; | 40 class User; |
41 | 41 |
42 // An interface for WebUILoginDisplay to call SigninScreenHandler. | 42 // An interface for WebUILoginDisplay to call SigninScreenHandler. |
43 class LoginDisplayWebUIHandler { | 43 class LoginDisplayWebUIHandler { |
44 public: | 44 public: |
45 virtual void ClearAndEnablePassword() = 0; | 45 virtual void ClearAndEnablePassword() = 0; |
| 46 virtual void ClearUserPodPassword() = 0; |
46 virtual void OnLoginSuccess(const std::string& username) = 0; | 47 virtual void OnLoginSuccess(const std::string& username) = 0; |
47 virtual void OnUserRemoved(const std::string& username) = 0; | 48 virtual void OnUserRemoved(const std::string& username) = 0; |
48 virtual void OnUserImageChanged(const User& user) = 0; | 49 virtual void OnUserImageChanged(const User& user) = 0; |
49 virtual void OnPreferencesChanged() = 0; | 50 virtual void OnPreferencesChanged() = 0; |
50 virtual void ResetSigninScreenHandlerDelegate() = 0; | 51 virtual void ResetSigninScreenHandlerDelegate() = 0; |
51 virtual void ShowError(int login_attempts, | 52 virtual void ShowError(int login_attempts, |
52 const std::string& error_text, | 53 const std::string& error_text, |
53 const std::string& help_link_text, | 54 const std::string& help_link_text, |
54 HelpAppLauncher::HelpTopic help_topic_id) = 0; | 55 HelpAppLauncher::HelpTopic help_topic_id) = 0; |
55 virtual void ShowErrorScreen(LoginDisplay::SigninError error_id) = 0; | 56 virtual void ShowErrorScreen(LoginDisplay::SigninError error_id) = 0; |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 virtual void GetLocalizedStrings( | 214 virtual void GetLocalizedStrings( |
214 base::DictionaryValue* localized_strings) OVERRIDE; | 215 base::DictionaryValue* localized_strings) OVERRIDE; |
215 virtual void Initialize() OVERRIDE; | 216 virtual void Initialize() OVERRIDE; |
216 virtual gfx::NativeWindow GetNativeWindow() OVERRIDE; | 217 virtual gfx::NativeWindow GetNativeWindow() OVERRIDE; |
217 | 218 |
218 // WebUIMessageHandler implementation: | 219 // WebUIMessageHandler implementation: |
219 virtual void RegisterMessages() OVERRIDE; | 220 virtual void RegisterMessages() OVERRIDE; |
220 | 221 |
221 // BaseLoginUIHandler implementation: | 222 // BaseLoginUIHandler implementation: |
222 virtual void ClearAndEnablePassword() OVERRIDE; | 223 virtual void ClearAndEnablePassword() OVERRIDE; |
| 224 virtual void ClearUserPodPassword() OVERRIDE; |
223 virtual void OnLoginSuccess(const std::string& username) OVERRIDE; | 225 virtual void OnLoginSuccess(const std::string& username) OVERRIDE; |
224 virtual void OnUserRemoved(const std::string& username) OVERRIDE; | 226 virtual void OnUserRemoved(const std::string& username) OVERRIDE; |
225 virtual void OnUserImageChanged(const User& user) OVERRIDE; | 227 virtual void OnUserImageChanged(const User& user) OVERRIDE; |
226 virtual void OnPreferencesChanged() OVERRIDE; | 228 virtual void OnPreferencesChanged() OVERRIDE; |
227 virtual void ResetSigninScreenHandlerDelegate() OVERRIDE; | 229 virtual void ResetSigninScreenHandlerDelegate() OVERRIDE; |
228 virtual void ShowError(int login_attempts, | 230 virtual void ShowError(int login_attempts, |
229 const std::string& error_text, | 231 const std::string& error_text, |
230 const std::string& help_link_text, | 232 const std::string& help_link_text, |
231 HelpAppLauncher::HelpTopic help_topic_id) OVERRIDE; | 233 HelpAppLauncher::HelpTopic help_topic_id) OVERRIDE; |
232 virtual void ShowGaiaPasswordChanged(const std::string& username) OVERRIDE; | 234 virtual void ShowGaiaPasswordChanged(const std::string& username) OVERRIDE; |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
419 // NOTIFICATION_AUTH_NEEDED and reset on either NOTIFICATION_AUTH_SUPPLIED or | 421 // NOTIFICATION_AUTH_NEEDED and reset on either NOTIFICATION_AUTH_SUPPLIED or |
420 // NOTIFICATION_AUTH_CANCELLED. | 422 // NOTIFICATION_AUTH_CANCELLED. |
421 bool has_pending_auth_ui_; | 423 bool has_pending_auth_ui_; |
422 | 424 |
423 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); | 425 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); |
424 }; | 426 }; |
425 | 427 |
426 } // namespace chromeos | 428 } // namespace chromeos |
427 | 429 |
428 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ | 430 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ |
OLD | NEW |