| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 std::string email_; | 69 std::string email_; |
| 70 bool oobe_ui_; | 70 bool oobe_ui_; |
| 71 }; | 71 }; |
| 72 | 72 |
| 73 // An interface for WebUILoginDisplay to call SigninScreenHandler. | 73 // An interface for WebUILoginDisplay to call SigninScreenHandler. |
| 74 class LoginDisplayWebUIHandler { | 74 class LoginDisplayWebUIHandler { |
| 75 public: | 75 public: |
| 76 virtual void ClearAndEnablePassword() = 0; | 76 virtual void ClearAndEnablePassword() = 0; |
| 77 virtual void ClearUserPodPassword() = 0; | 77 virtual void ClearUserPodPassword() = 0; |
| 78 virtual void OnUserRemoved(const std::string& username) = 0; | 78 virtual void OnUserRemoved(const std::string& username) = 0; |
| 79 virtual void OnUserImageChanged(const User& user) = 0; | 79 virtual void OnUserImageChanged(const user_manager::User& user) = 0; |
| 80 virtual void OnPreferencesChanged() = 0; | 80 virtual void OnPreferencesChanged() = 0; |
| 81 virtual void ResetSigninScreenHandlerDelegate() = 0; | 81 virtual void ResetSigninScreenHandlerDelegate() = 0; |
| 82 virtual void ShowError(int login_attempts, | 82 virtual void ShowError(int login_attempts, |
| 83 const std::string& error_text, | 83 const std::string& error_text, |
| 84 const std::string& help_link_text, | 84 const std::string& help_link_text, |
| 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; |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 // Loads the default sign-in wallpaper. | 162 // Loads the default sign-in wallpaper. |
| 163 virtual void LoadSigninWallpaper() = 0; | 163 virtual void LoadSigninWallpaper() = 0; |
| 164 | 164 |
| 165 // Attempts to remove given user. | 165 // Attempts to remove given user. |
| 166 virtual void RemoveUser(const std::string& username) = 0; | 166 virtual void RemoveUser(const std::string& username) = 0; |
| 167 | 167 |
| 168 // Let the delegate know about the handler it is supposed to be using. | 168 // Let the delegate know about the handler it is supposed to be using. |
| 169 virtual void SetWebUIHandler(LoginDisplayWebUIHandler* webui_handler) = 0; | 169 virtual void SetWebUIHandler(LoginDisplayWebUIHandler* webui_handler) = 0; |
| 170 | 170 |
| 171 // Returns users list to be shown. | 171 // Returns users list to be shown. |
| 172 virtual const UserList& GetUsers() const = 0; | 172 virtual const user_manager::UserList& GetUsers() const = 0; |
| 173 | 173 |
| 174 // Whether login as guest is available. | 174 // Whether login as guest is available. |
| 175 virtual bool IsShowGuest() const = 0; | 175 virtual bool IsShowGuest() const = 0; |
| 176 | 176 |
| 177 // Weather to show the user pods or only GAIA sign in. | 177 // Weather to show the user pods or only GAIA sign in. |
| 178 // Public sessions are always shown. | 178 // Public sessions are always shown. |
| 179 virtual bool IsShowUsers() const = 0; | 179 virtual bool IsShowUsers() const = 0; |
| 180 | 180 |
| 181 // Whether user sign in has completed. | 181 // Whether user sign in has completed. |
| 182 virtual bool IsUserSigninCompleted() const = 0; | 182 virtual bool IsUserSigninCompleted() const = 0; |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 virtual void Initialize() OVERRIDE; | 269 virtual void Initialize() OVERRIDE; |
| 270 virtual gfx::NativeWindow GetNativeWindow() OVERRIDE; | 270 virtual gfx::NativeWindow GetNativeWindow() OVERRIDE; |
| 271 | 271 |
| 272 // WebUIMessageHandler implementation: | 272 // WebUIMessageHandler implementation: |
| 273 virtual void RegisterMessages() OVERRIDE; | 273 virtual void RegisterMessages() OVERRIDE; |
| 274 | 274 |
| 275 // LoginDisplayWebUIHandler implementation: | 275 // LoginDisplayWebUIHandler implementation: |
| 276 virtual void ClearAndEnablePassword() OVERRIDE; | 276 virtual void ClearAndEnablePassword() OVERRIDE; |
| 277 virtual void ClearUserPodPassword() OVERRIDE; | 277 virtual void ClearUserPodPassword() OVERRIDE; |
| 278 virtual void OnUserRemoved(const std::string& username) OVERRIDE; | 278 virtual void OnUserRemoved(const std::string& username) OVERRIDE; |
| 279 virtual void OnUserImageChanged(const User& user) OVERRIDE; | 279 virtual void OnUserImageChanged(const user_manager::User& user) OVERRIDE; |
| 280 virtual void OnPreferencesChanged() OVERRIDE; | 280 virtual void OnPreferencesChanged() OVERRIDE; |
| 281 virtual void ResetSigninScreenHandlerDelegate() OVERRIDE; | 281 virtual void ResetSigninScreenHandlerDelegate() OVERRIDE; |
| 282 virtual void ShowError(int login_attempts, | 282 virtual void ShowError(int login_attempts, |
| 283 const std::string& error_text, | 283 const std::string& error_text, |
| 284 const std::string& help_link_text, | 284 const std::string& help_link_text, |
| 285 HelpAppLauncher::HelpTopic help_topic_id) OVERRIDE; | 285 HelpAppLauncher::HelpTopic help_topic_id) OVERRIDE; |
| 286 virtual void ShowGaiaPasswordChanged(const std::string& username) OVERRIDE; | 286 virtual void ShowGaiaPasswordChanged(const std::string& username) OVERRIDE; |
| 287 virtual void ShowSigninUI(const std::string& email) OVERRIDE; | 287 virtual void ShowSigninUI(const std::string& email) OVERRIDE; |
| 288 virtual void ShowPasswordChangedDialog(bool show_password_error) OVERRIDE; | 288 virtual void ShowPasswordChangedDialog(bool show_password_error) OVERRIDE; |
| 289 virtual void ShowErrorScreen(LoginDisplay::SigninError error_id) OVERRIDE; | 289 virtual void ShowErrorScreen(LoginDisplay::SigninError error_id) OVERRIDE; |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 462 scoped_ptr<AuthenticatedUserEmailRetriever> email_retriever_; | 462 scoped_ptr<AuthenticatedUserEmailRetriever> email_retriever_; |
| 463 | 463 |
| 464 base::WeakPtrFactory<SigninScreenHandler> weak_factory_; | 464 base::WeakPtrFactory<SigninScreenHandler> weak_factory_; |
| 465 | 465 |
| 466 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); | 466 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); |
| 467 }; | 467 }; |
| 468 | 468 |
| 469 } // namespace chromeos | 469 } // namespace chromeos |
| 470 | 470 |
| 471 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ | 471 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ |
| OLD | NEW |