| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 protected: | 65 protected: |
| 66 virtual ~LoginDisplayWebUIHandler() {} | 66 virtual ~LoginDisplayWebUIHandler() {} |
| 67 }; | 67 }; |
| 68 | 68 |
| 69 // An interface for SigninScreenHandler to call WebUILoginDisplay. | 69 // An interface for SigninScreenHandler to call WebUILoginDisplay. |
| 70 class SigninScreenHandlerDelegate { | 70 class SigninScreenHandlerDelegate { |
| 71 public: | 71 public: |
| 72 // Cancels current password changed flow. | 72 // Cancels current password changed flow. |
| 73 virtual void CancelPasswordChangedFlow() = 0; | 73 virtual void CancelPasswordChangedFlow() = 0; |
| 74 | 74 |
| 75 // Cancels user adding. |
| 76 virtual void CancelUserAdding() = 0; |
| 77 |
| 75 // Create a new Google account. | 78 // Create a new Google account. |
| 76 virtual void CreateAccount() = 0; | 79 virtual void CreateAccount() = 0; |
| 77 | 80 |
| 78 // Confirms sign up by provided credentials in |user_context|. | 81 // Confirms sign up by provided credentials in |user_context|. |
| 79 // Used for new user login via GAIA extension. | 82 // Used for new user login via GAIA extension. |
| 80 virtual void CompleteLogin(const UserContext& user_context) = 0; | 83 virtual void CompleteLogin(const UserContext& user_context) = 0; |
| 81 | 84 |
| 82 // Sign in using username and password specified as a part of |user_context|. | 85 // Sign in using username and password specified as a part of |user_context|. |
| 83 // Used for both known and new users. | 86 // Used for both known and new users. |
| 84 virtual void Login(const UserContext& user_context) = 0; | 87 virtual void Login(const UserContext& user_context) = 0; |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 void HandleAccountPickerReady(); | 305 void HandleAccountPickerReady(); |
| 303 void HandleWallpaperReady(); | 306 void HandleWallpaperReady(); |
| 304 void HandleLoginWebuiReady(); | 307 void HandleLoginWebuiReady(); |
| 305 void HandleDemoWebuiReady(); | 308 void HandleDemoWebuiReady(); |
| 306 void HandleSignOutUser(); | 309 void HandleSignOutUser(); |
| 307 void HandleUserImagesLoaded(); | 310 void HandleUserImagesLoaded(); |
| 308 void HandleNetworkErrorShown(); | 311 void HandleNetworkErrorShown(); |
| 309 void HandleOpenProxySettings(); | 312 void HandleOpenProxySettings(); |
| 310 void HandleLoginVisible(const std::string& source); | 313 void HandleLoginVisible(const std::string& source); |
| 311 void HandleCancelPasswordChangedFlow(); | 314 void HandleCancelPasswordChangedFlow(); |
| 315 void HandleCancelUserAdding(); |
| 312 void HandleMigrateUserData(const std::string& password); | 316 void HandleMigrateUserData(const std::string& password); |
| 313 void HandleResyncUserData(); | 317 void HandleResyncUserData(); |
| 314 void HandleLoginUIStateChanged(const std::string& source, bool new_value); | 318 void HandleLoginUIStateChanged(const std::string& source, bool new_value); |
| 315 void HandleUnlockOnLoginSuccess(); | 319 void HandleUnlockOnLoginSuccess(); |
| 316 void HandleLoginScreenUpdate(); | 320 void HandleLoginScreenUpdate(); |
| 317 void HandleFrameLoadingCompleted(int status); | 321 void HandleFrameLoadingCompleted(int status); |
| 318 void HandleShowLoadingTimeoutError(); | 322 void HandleShowLoadingTimeoutError(); |
| 319 void HandleUpdateOfflineLogin(bool offline_login_active); | 323 void HandleUpdateOfflineLogin(bool offline_login_active); |
| 320 void HandleShowLocallyManagedUserCreationScreen(); | 324 void HandleShowLocallyManagedUserCreationScreen(); |
| 321 | 325 |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 449 | 453 |
| 450 // Testing helper, specifies new value for gaia url. | 454 // Testing helper, specifies new value for gaia url. |
| 451 GURL gaia_url_for_test_; | 455 GURL gaia_url_for_test_; |
| 452 | 456 |
| 453 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); | 457 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); |
| 454 }; | 458 }; |
| 455 | 459 |
| 456 } // namespace chromeos | 460 } // namespace chromeos |
| 457 | 461 |
| 458 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ | 462 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ |
| OLD | NEW |