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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 | 66 |
67 std::string email_; | 67 std::string email_; |
68 bool oobe_ui_; | 68 bool oobe_ui_; |
69 }; | 69 }; |
70 | 70 |
71 // An interface for WebUILoginDisplay to call SigninScreenHandler. | 71 // An interface for WebUILoginDisplay to call SigninScreenHandler. |
72 class LoginDisplayWebUIHandler { | 72 class LoginDisplayWebUIHandler { |
73 public: | 73 public: |
74 virtual void ClearAndEnablePassword() = 0; | 74 virtual void ClearAndEnablePassword() = 0; |
75 virtual void ClearUserPodPassword() = 0; | 75 virtual void ClearUserPodPassword() = 0; |
76 virtual void OnLoginSuccess(const std::string& username) = 0; | |
77 virtual void OnUserRemoved(const std::string& username) = 0; | 76 virtual void OnUserRemoved(const std::string& username) = 0; |
78 virtual void OnUserImageChanged(const User& user) = 0; | 77 virtual void OnUserImageChanged(const User& user) = 0; |
79 virtual void OnPreferencesChanged() = 0; | 78 virtual void OnPreferencesChanged() = 0; |
80 virtual void ResetSigninScreenHandlerDelegate() = 0; | 79 virtual void ResetSigninScreenHandlerDelegate() = 0; |
81 virtual void ShowError(int login_attempts, | 80 virtual void ShowError(int login_attempts, |
82 const std::string& error_text, | 81 const std::string& error_text, |
83 const std::string& help_link_text, | 82 const std::string& help_link_text, |
84 HelpAppLauncher::HelpTopic help_topic_id) = 0; | 83 HelpAppLauncher::HelpTopic help_topic_id) = 0; |
85 virtual void ShowErrorScreen(LoginDisplay::SigninError error_id) = 0; | 84 virtual void ShowErrorScreen(LoginDisplay::SigninError error_id) = 0; |
86 virtual void ShowGaiaPasswordChanged(const std::string& username) = 0; | 85 virtual void ShowGaiaPasswordChanged(const std::string& username) = 0; |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 virtual void DeclareLocalizedValues(LocalizedValuesBuilder* builder) OVERRIDE; | 262 virtual void DeclareLocalizedValues(LocalizedValuesBuilder* builder) OVERRIDE; |
264 virtual void Initialize() OVERRIDE; | 263 virtual void Initialize() OVERRIDE; |
265 virtual gfx::NativeWindow GetNativeWindow() OVERRIDE; | 264 virtual gfx::NativeWindow GetNativeWindow() OVERRIDE; |
266 | 265 |
267 // WebUIMessageHandler implementation: | 266 // WebUIMessageHandler implementation: |
268 virtual void RegisterMessages() OVERRIDE; | 267 virtual void RegisterMessages() OVERRIDE; |
269 | 268 |
270 // LoginDisplayWebUIHandler implementation: | 269 // LoginDisplayWebUIHandler implementation: |
271 virtual void ClearAndEnablePassword() OVERRIDE; | 270 virtual void ClearAndEnablePassword() OVERRIDE; |
272 virtual void ClearUserPodPassword() OVERRIDE; | 271 virtual void ClearUserPodPassword() OVERRIDE; |
273 virtual void OnLoginSuccess(const std::string& username) OVERRIDE; | |
274 virtual void OnUserRemoved(const std::string& username) OVERRIDE; | 272 virtual void OnUserRemoved(const std::string& username) OVERRIDE; |
275 virtual void OnUserImageChanged(const User& user) OVERRIDE; | 273 virtual void OnUserImageChanged(const User& user) OVERRIDE; |
276 virtual void OnPreferencesChanged() OVERRIDE; | 274 virtual void OnPreferencesChanged() OVERRIDE; |
277 virtual void ResetSigninScreenHandlerDelegate() OVERRIDE; | 275 virtual void ResetSigninScreenHandlerDelegate() OVERRIDE; |
278 virtual void ShowError(int login_attempts, | 276 virtual void ShowError(int login_attempts, |
279 const std::string& error_text, | 277 const std::string& error_text, |
280 const std::string& help_link_text, | 278 const std::string& help_link_text, |
281 HelpAppLauncher::HelpTopic help_topic_id) OVERRIDE; | 279 HelpAppLauncher::HelpTopic help_topic_id) OVERRIDE; |
282 virtual void ShowGaiaPasswordChanged(const std::string& username) OVERRIDE; | 280 virtual void ShowGaiaPasswordChanged(const std::string& username) OVERRIDE; |
283 virtual void ShowSigninUI(const std::string& email) OVERRIDE; | 281 virtual void ShowSigninUI(const std::string& email) OVERRIDE; |
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
546 | 544 |
547 // Helper that retrieves the authenticated user's e-mail address. | 545 // Helper that retrieves the authenticated user's e-mail address. |
548 scoped_ptr<AuthenticatedUserEmailRetriever> email_retriever_; | 546 scoped_ptr<AuthenticatedUserEmailRetriever> email_retriever_; |
549 | 547 |
550 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); | 548 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); |
551 }; | 549 }; |
552 | 550 |
553 } // namespace chromeos | 551 } // namespace chromeos |
554 | 552 |
555 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ | 553 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ |
OLD | NEW |