| 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 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 // shouldn't grab the focus. |offline| is true when offline version of the | 269 // shouldn't grab the focus. |offline| is true when offline version of the |
| 270 // extension should be used. | 270 // extension should be used. |
| 271 void LoadAuthExtension(bool force, bool silent_load, bool offline); | 271 void LoadAuthExtension(bool force, bool silent_load, bool offline); |
| 272 | 272 |
| 273 // Updates authentication extension. Called when device settings that affect | 273 // Updates authentication extension. Called when device settings that affect |
| 274 // sign-in (allow BWSI and allow whitelist) are changed. | 274 // sign-in (allow BWSI and allow whitelist) are changed. |
| 275 void UpdateAuthExtension(); | 275 void UpdateAuthExtension(); |
| 276 void UpdateAddButtonStatus(); | 276 void UpdateAddButtonStatus(); |
| 277 | 277 |
| 278 // WebUI message handlers. | 278 // WebUI message handlers. |
| 279 void HandleCompleteAuthentication(const base::ListValue* args); | 279 void HandleCompleteAuthentication(const std::string& email, |
| 280 void HandleCompleteLogin(const base::ListValue* args); | 280 const std::string& password, |
| 281 void HandleGetUsers(const base::ListValue* args); | 281 const std::string& auth_code); |
| 282 void HandleAuthenticateUser(const base::ListValue* args); | 282 void HandleCompleteLogin(const std::string& typed_email, |
| 283 void HandleLaunchDemoUser(const base::ListValue* args); | 283 const std::string& password); |
| 284 void HandleLaunchIncognito(const base::ListValue* args); | 284 void HandleGetUsers(); |
| 285 void HandleLaunchPublicAccount(const base::ListValue* args); | 285 void HandleAuthenticateUser(const std::string& username, |
| 286 const std::string& password); |
| 287 void HandleLaunchDemoUser(); |
| 288 void HandleLaunchIncognito(); |
| 289 void HandleLaunchPublicAccount(const std::string& username); |
| 286 void HandleOfflineLogin(const base::ListValue* args); | 290 void HandleOfflineLogin(const base::ListValue* args); |
| 287 void HandleShutdownSystem(const base::ListValue* args); | 291 void HandleShutdownSystem(); |
| 288 void HandleLoadWallpaper(const base::ListValue* args); | 292 void HandleLoadWallpaper(const std::string& email); |
| 289 void HandleRebootSystem(const base::ListValue* args); | 293 void HandleRebootSystem(); |
| 290 void HandleRemoveUser(const base::ListValue* args); | 294 void HandleRemoveUser(const std::string& email); |
| 291 void HandleShowAddUser(const base::ListValue* args); | 295 void HandleShowAddUser(const base::ListValue* args); |
| 292 void HandleToggleEnrollmentScreen(const base::ListValue* args); | 296 void HandleToggleEnrollmentScreen(); |
| 293 void HandleToggleResetScreen(const base::ListValue* args); | 297 void HandleToggleResetScreen(); |
| 294 void HandleLaunchHelpApp(const base::ListValue* args); | 298 void HandleLaunchHelpApp(double help_topic_id); |
| 295 void HandleCreateAccount(const base::ListValue* args); | 299 void HandleCreateAccount(); |
| 296 void HandleAccountPickerReady(const base::ListValue* args); | 300 void HandleAccountPickerReady(); |
| 297 void HandleWallpaperReady(const base::ListValue* args); | 301 void HandleWallpaperReady(); |
| 298 void HandleLoginWebuiReady(const base::ListValue* args); | 302 void HandleLoginWebuiReady(); |
| 299 void HandleDemoWebuiReady(const base::ListValue* args); | 303 void HandleDemoWebuiReady(); |
| 300 void HandleSignOutUser(const base::ListValue* args); | 304 void HandleSignOutUser(); |
| 301 void HandleUserImagesLoaded(const base::ListValue* args); | 305 void HandleUserImagesLoaded(); |
| 302 void HandleNetworkErrorShown(const base::ListValue* args); | 306 void HandleNetworkErrorShown(); |
| 303 void HandleOpenProxySettings(const base::ListValue* args); | 307 void HandleOpenProxySettings(); |
| 304 void HandleLoginVisible(const base::ListValue* args); | 308 void HandleLoginVisible(const std::string& source); |
| 305 void HandleCancelPasswordChangedFlow(const base::ListValue* args); | 309 void HandleCancelPasswordChangedFlow(); |
| 306 void HandleMigrateUserData(const base::ListValue* args); | 310 void HandleMigrateUserData(const std::string& password); |
| 307 void HandleResyncUserData(const base::ListValue* args); | 311 void HandleResyncUserData(); |
| 308 void HandleLoginUIStateChanged(const base::ListValue* args); | 312 void HandleLoginUIStateChanged(const std::string& source, bool new_value); |
| 309 void HandleUnlockOnLoginSuccess(const base::ListValue* args); | 313 void HandleUnlockOnLoginSuccess(); |
| 310 void HandleLoginScreenUpdate(const base::ListValue* args); | 314 void HandleLoginScreenUpdate(); |
| 311 void HandleShowGaiaFrameError(const base::ListValue* args); | 315 void HandleShowGaiaFrameError(int error); |
| 312 void HandleShowLoadingTimeoutError(const base::ListValue* args); | 316 void HandleShowLoadingTimeoutError(); |
| 313 void HandleUpdateOfflineLogin(const base::ListValue* args); | 317 void HandleUpdateOfflineLogin(bool offline_login_active); |
| 314 void HandleShowLocallyManagedUserCreationScreen(const base::ListValue* args); | 318 void HandleShowLocallyManagedUserCreationScreen(); |
| 315 | 319 |
| 316 // Fills |user_dict| with information about |user|. | 320 // Fills |user_dict| with information about |user|. |
| 317 static void FillUserDictionary(User* user, | 321 static void FillUserDictionary(User* user, |
| 318 bool is_owner, | 322 bool is_owner, |
| 319 DictionaryValue* user_dict); | 323 DictionaryValue* user_dict); |
| 320 | 324 |
| 321 // Sends user list to account picker. | 325 // Sends user list to account picker. |
| 322 void SendUserList(bool animated); | 326 void SendUserList(bool animated); |
| 323 | 327 |
| 324 // Kick off cookie / local storage cleanup. | 328 // Kick off cookie / local storage cleanup. |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 433 // NOTIFICATION_AUTH_NEEDED and reset on either NOTIFICATION_AUTH_SUPPLIED or | 437 // NOTIFICATION_AUTH_NEEDED and reset on either NOTIFICATION_AUTH_SUPPLIED or |
| 434 // NOTIFICATION_AUTH_CANCELLED. | 438 // NOTIFICATION_AUTH_CANCELLED. |
| 435 bool has_pending_auth_ui_; | 439 bool has_pending_auth_ui_; |
| 436 | 440 |
| 437 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); | 441 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); |
| 438 }; | 442 }; |
| 439 | 443 |
| 440 } // namespace chromeos | 444 } // namespace chromeos |
| 441 | 445 |
| 442 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ | 446 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ |
| OLD | NEW |