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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 | 63 |
64 std::string email_; | 64 std::string email_; |
65 bool oobe_ui_; | 65 bool oobe_ui_; |
66 }; | 66 }; |
67 | 67 |
68 // An interface for WebUILoginDisplay to call SigninScreenHandler. | 68 // An interface for WebUILoginDisplay to call SigninScreenHandler. |
69 class LoginDisplayWebUIHandler { | 69 class LoginDisplayWebUIHandler { |
70 public: | 70 public: |
71 virtual void ClearAndEnablePassword() = 0; | 71 virtual void ClearAndEnablePassword() = 0; |
72 virtual void ClearUserPodPassword() = 0; | 72 virtual void ClearUserPodPassword() = 0; |
73 virtual void OnLoginSuccess(const std::string& username) = 0; | |
74 virtual void OnUserRemoved(const std::string& username) = 0; | 73 virtual void OnUserRemoved(const std::string& username) = 0; |
75 virtual void OnUserImageChanged(const User& user) = 0; | 74 virtual void OnUserImageChanged(const User& user) = 0; |
76 virtual void OnPreferencesChanged() = 0; | 75 virtual void OnPreferencesChanged() = 0; |
77 virtual void ResetSigninScreenHandlerDelegate() = 0; | 76 virtual void ResetSigninScreenHandlerDelegate() = 0; |
78 virtual void ShowBannerMessage(const std::string& message) = 0; | 77 virtual void ShowBannerMessage(const std::string& message) = 0; |
79 virtual void ShowUserPodButton(const std::string& username, | 78 virtual void ShowUserPodButton(const std::string& username, |
80 const std::string& iconURL, | 79 const std::string& iconURL, |
81 const base::Closure& click_callback) = 0; | 80 const base::Closure& click_callback) = 0; |
82 virtual void HideUserPodButton(const std::string& username) = 0; | 81 virtual void HideUserPodButton(const std::string& username) = 0; |
83 virtual void SetAuthType(const std::string& username, | 82 virtual void SetAuthType(const std::string& username, |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 virtual void DeclareLocalizedValues(LocalizedValuesBuilder* builder) OVERRIDE; | 267 virtual void DeclareLocalizedValues(LocalizedValuesBuilder* builder) OVERRIDE; |
269 virtual void Initialize() OVERRIDE; | 268 virtual void Initialize() OVERRIDE; |
270 virtual gfx::NativeWindow GetNativeWindow() OVERRIDE; | 269 virtual gfx::NativeWindow GetNativeWindow() OVERRIDE; |
271 | 270 |
272 // WebUIMessageHandler implementation: | 271 // WebUIMessageHandler implementation: |
273 virtual void RegisterMessages() OVERRIDE; | 272 virtual void RegisterMessages() OVERRIDE; |
274 | 273 |
275 // LoginDisplayWebUIHandler implementation: | 274 // LoginDisplayWebUIHandler implementation: |
276 virtual void ClearAndEnablePassword() OVERRIDE; | 275 virtual void ClearAndEnablePassword() OVERRIDE; |
277 virtual void ClearUserPodPassword() OVERRIDE; | 276 virtual void ClearUserPodPassword() OVERRIDE; |
278 virtual void OnLoginSuccess(const std::string& username) OVERRIDE; | |
279 virtual void OnUserRemoved(const std::string& username) OVERRIDE; | 277 virtual void OnUserRemoved(const std::string& username) OVERRIDE; |
280 virtual void OnUserImageChanged(const User& user) OVERRIDE; | 278 virtual void OnUserImageChanged(const User& user) OVERRIDE; |
281 virtual void OnPreferencesChanged() OVERRIDE; | 279 virtual void OnPreferencesChanged() OVERRIDE; |
282 virtual void ResetSigninScreenHandlerDelegate() OVERRIDE; | 280 virtual void ResetSigninScreenHandlerDelegate() OVERRIDE; |
283 virtual void ShowBannerMessage(const std::string& message) OVERRIDE; | 281 virtual void ShowBannerMessage(const std::string& message) OVERRIDE; |
284 virtual void ShowUserPodButton(const std::string& username, | 282 virtual void ShowUserPodButton(const std::string& username, |
285 const std::string& iconURL, | 283 const std::string& iconURL, |
286 const base::Closure& click_callback) OVERRIDE; | 284 const base::Closure& click_callback) OVERRIDE; |
287 virtual void HideUserPodButton(const std::string& username) OVERRIDE; | 285 virtual void HideUserPodButton(const std::string& username) OVERRIDE; |
288 virtual void SetAuthType(const std::string& username, | 286 virtual void SetAuthType(const std::string& username, |
(...skipping 257 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 |