| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 HelpAppLauncher::HelpTopic help_topic_id) = 0; | 85 HelpAppLauncher::HelpTopic help_topic_id) = 0; |
| 86 virtual void ShowErrorScreen(LoginDisplay::SigninError error_id) = 0; | 86 virtual void ShowErrorScreen(LoginDisplay::SigninError error_id) = 0; |
| 87 virtual void ShowGaiaPasswordChanged(const std::string& username) = 0; | 87 virtual void ShowGaiaPasswordChanged(const std::string& username) = 0; |
| 88 virtual void ShowSigninUI(const std::string& email) = 0; | 88 virtual void ShowSigninUI(const std::string& email) = 0; |
| 89 virtual void ShowPasswordChangedDialog(bool show_password_error) = 0; | 89 virtual void ShowPasswordChangedDialog(bool show_password_error) = 0; |
| 90 // Show sign-in screen for the given credentials. | 90 // Show sign-in screen for the given credentials. |
| 91 virtual void ShowSigninScreenForCreds(const std::string& username, | 91 virtual void ShowSigninScreenForCreds(const std::string& username, |
| 92 const std::string& password) = 0; | 92 const std::string& password) = 0; |
| 93 virtual void LoadUsers(const base::ListValue& users_list, | 93 virtual void LoadUsers(const base::ListValue& users_list, |
| 94 bool show_guest) = 0; | 94 bool show_guest) = 0; |
| 95 virtual void SetPublicSessionDisplayName(const std::string& user_id, |
| 96 const std::string& display_name) = 0; |
| 95 | 97 |
| 96 protected: | 98 protected: |
| 97 virtual ~LoginDisplayWebUIHandler() {} | 99 virtual ~LoginDisplayWebUIHandler() {} |
| 98 }; | 100 }; |
| 99 | 101 |
| 100 // An interface for SigninScreenHandler to call WebUILoginDisplay. | 102 // An interface for SigninScreenHandler to call WebUILoginDisplay. |
| 101 class SigninScreenHandlerDelegate { | 103 class SigninScreenHandlerDelegate { |
| 102 public: | 104 public: |
| 103 // --------------- Password change flow methods. | 105 // --------------- Password change flow methods. |
| 104 // Cancels current password changed flow. | 106 // Cancels current password changed flow. |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 const std::string& help_link_text, | 286 const std::string& help_link_text, |
| 285 HelpAppLauncher::HelpTopic help_topic_id) OVERRIDE; | 287 HelpAppLauncher::HelpTopic help_topic_id) OVERRIDE; |
| 286 virtual void ShowGaiaPasswordChanged(const std::string& username) OVERRIDE; | 288 virtual void ShowGaiaPasswordChanged(const std::string& username) OVERRIDE; |
| 287 virtual void ShowSigninUI(const std::string& email) OVERRIDE; | 289 virtual void ShowSigninUI(const std::string& email) OVERRIDE; |
| 288 virtual void ShowPasswordChangedDialog(bool show_password_error) OVERRIDE; | 290 virtual void ShowPasswordChangedDialog(bool show_password_error) OVERRIDE; |
| 289 virtual void ShowErrorScreen(LoginDisplay::SigninError error_id) OVERRIDE; | 291 virtual void ShowErrorScreen(LoginDisplay::SigninError error_id) OVERRIDE; |
| 290 virtual void ShowSigninScreenForCreds(const std::string& username, | 292 virtual void ShowSigninScreenForCreds(const std::string& username, |
| 291 const std::string& password) OVERRIDE; | 293 const std::string& password) OVERRIDE; |
| 292 virtual void LoadUsers(const base::ListValue& users_list, | 294 virtual void LoadUsers(const base::ListValue& users_list, |
| 293 bool show_guest) OVERRIDE; | 295 bool show_guest) OVERRIDE; |
| 296 virtual void SetPublicSessionDisplayName( |
| 297 const std::string& user_id, |
| 298 const std::string& display_name) OVERRIDE; |
| 294 | 299 |
| 295 // content::NotificationObserver implementation: | 300 // content::NotificationObserver implementation: |
| 296 virtual void Observe(int type, | 301 virtual void Observe(int type, |
| 297 const content::NotificationSource& source, | 302 const content::NotificationSource& source, |
| 298 const content::NotificationDetails& details) OVERRIDE; | 303 const content::NotificationDetails& details) OVERRIDE; |
| 299 | 304 |
| 300 // ScreenlockBridge::LockHandler implementation: | 305 // ScreenlockBridge::LockHandler implementation: |
| 301 virtual void ShowBannerMessage(const std::string& message) OVERRIDE; | 306 virtual void ShowBannerMessage(const std::string& message) OVERRIDE; |
| 302 virtual void ShowUserPodCustomIcon(const std::string& username, | 307 virtual void ShowUserPodCustomIcon(const std::string& username, |
| 303 const gfx::Image& icon) OVERRIDE; | 308 const gfx::Image& icon) OVERRIDE; |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 475 bool is_enrolling_consumer_management_; | 480 bool is_enrolling_consumer_management_; |
| 476 | 481 |
| 477 base::WeakPtrFactory<SigninScreenHandler> weak_factory_; | 482 base::WeakPtrFactory<SigninScreenHandler> weak_factory_; |
| 478 | 483 |
| 479 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); | 484 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); |
| 480 }; | 485 }; |
| 481 | 486 |
| 482 } // namespace chromeos | 487 } // namespace chromeos |
| 483 | 488 |
| 484 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ | 489 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ |
| OLD | NEW |