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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
299 void HandleAccountPickerReady(); | 302 void HandleAccountPickerReady(); |
300 void HandleWallpaperReady(); | 303 void HandleWallpaperReady(); |
301 void HandleLoginWebuiReady(); | 304 void HandleLoginWebuiReady(); |
302 void HandleDemoWebuiReady(); | 305 void HandleDemoWebuiReady(); |
303 void HandleSignOutUser(); | 306 void HandleSignOutUser(); |
304 void HandleUserImagesLoaded(); | 307 void HandleUserImagesLoaded(); |
305 void HandleNetworkErrorShown(); | 308 void HandleNetworkErrorShown(); |
306 void HandleOpenProxySettings(); | 309 void HandleOpenProxySettings(); |
307 void HandleLoginVisible(const std::string& source); | 310 void HandleLoginVisible(const std::string& source); |
308 void HandleCancelPasswordChangedFlow(); | 311 void HandleCancelPasswordChangedFlow(); |
| 312 void HandleCancelUserAdding(); |
309 void HandleMigrateUserData(const std::string& password); | 313 void HandleMigrateUserData(const std::string& password); |
310 void HandleResyncUserData(); | 314 void HandleResyncUserData(); |
311 void HandleLoginUIStateChanged(const std::string& source, bool new_value); | 315 void HandleLoginUIStateChanged(const std::string& source, bool new_value); |
312 void HandleUnlockOnLoginSuccess(); | 316 void HandleUnlockOnLoginSuccess(); |
313 void HandleLoginScreenUpdate(); | 317 void HandleLoginScreenUpdate(); |
314 void HandleFrameLoadingCompleted(int status); | 318 void HandleFrameLoadingCompleted(int status); |
315 void HandleShowLoadingTimeoutError(); | 319 void HandleShowLoadingTimeoutError(); |
316 void HandleUpdateOfflineLogin(bool offline_login_active); | 320 void HandleUpdateOfflineLogin(bool offline_login_active); |
317 void HandleShowLocallyManagedUserCreationScreen(); | 321 void HandleShowLocallyManagedUserCreationScreen(); |
318 | 322 |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
446 | 450 |
447 // Testing helper, specifies new value for gaia url. | 451 // Testing helper, specifies new value for gaia url. |
448 GURL gaia_url_for_test_; | 452 GURL gaia_url_for_test_; |
449 | 453 |
450 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); | 454 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); |
451 }; | 455 }; |
452 | 456 |
453 } // namespace chromeos | 457 } // namespace chromeos |
454 | 458 |
455 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ | 459 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ |
OLD | NEW |