| 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 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 void OnMaximizeModeStarted() override; | 312 void OnMaximizeModeStarted() override; |
| 313 void OnMaximizeModeEnded() override; | 313 void OnMaximizeModeEnded() override; |
| 314 | 314 |
| 315 void UpdateAddButtonStatus(); | 315 void UpdateAddButtonStatus(); |
| 316 | 316 |
| 317 // Restore input focus to current user pod. | 317 // Restore input focus to current user pod. |
| 318 void RefocusCurrentPod(); | 318 void RefocusCurrentPod(); |
| 319 | 319 |
| 320 // WebUI message handlers. | 320 // WebUI message handlers. |
| 321 void HandleGetUsers(); | 321 void HandleGetUsers(); |
| 322 void HandleAuthenticateUser(const std::string& username, | 322 void HandleAuthenticateUser(const AccountId& account_id, |
| 323 const std::string& password); | 323 const std::string& password); |
| 324 void HandleAttemptUnlock(const std::string& username); | 324 void HandleAttemptUnlock(const std::string& username); |
| 325 void HandleLaunchIncognito(); | 325 void HandleLaunchIncognito(); |
| 326 void HandleLaunchPublicSession(const std::string& user_id, | 326 void HandleLaunchPublicSession(const AccountId& account_id, |
| 327 const std::string& locale, | 327 const std::string& locale, |
| 328 const std::string& input_method); | 328 const std::string& input_method); |
| 329 void HandleOfflineLogin(const base::ListValue* args); | 329 void HandleOfflineLogin(const base::ListValue* args); |
| 330 void HandleShutdownSystem(); | 330 void HandleShutdownSystem(); |
| 331 void HandleLoadWallpaper(const std::string& email); | 331 void HandleLoadWallpaper(const std::string& email); |
| 332 void HandleRebootSystem(); | 332 void HandleRebootSystem(); |
| 333 void HandleRemoveUser(const std::string& email); | 333 void HandleRemoveUser(const std::string& email); |
| 334 void HandleShowAddUser(const base::ListValue* args); | 334 void HandleShowAddUser(const base::ListValue* args); |
| 335 void HandleToggleEnrollmentScreen(); | 335 void HandleToggleEnrollmentScreen(); |
| 336 void HandleToggleEnableDebuggingScreen(); | 336 void HandleToggleEnableDebuggingScreen(); |
| 337 void HandleToggleKioskEnableScreen(); | 337 void HandleToggleKioskEnableScreen(); |
| 338 void HandleToggleResetScreen(); | 338 void HandleToggleResetScreen(); |
| 339 void HandleToggleKioskAutolaunchScreen(); | 339 void HandleToggleKioskAutolaunchScreen(); |
| 340 void HandleAccountPickerReady(); | 340 void HandleAccountPickerReady(); |
| 341 void HandleWallpaperReady(); | 341 void HandleWallpaperReady(); |
| 342 void HandleSignOutUser(); | 342 void HandleSignOutUser(); |
| 343 void HandleOpenProxySettings(); | 343 void HandleOpenProxySettings(); |
| 344 void HandleLoginVisible(const std::string& source); | 344 void HandleLoginVisible(const std::string& source); |
| 345 void HandleCancelPasswordChangedFlow(const std::string& user_id); | 345 void HandleCancelPasswordChangedFlow(const AccountId& account_id); |
| 346 void HandleCancelUserAdding(); | 346 void HandleCancelUserAdding(); |
| 347 void HandleMigrateUserData(const std::string& password); | 347 void HandleMigrateUserData(const std::string& password); |
| 348 void HandleResyncUserData(); | 348 void HandleResyncUserData(); |
| 349 void HandleLoginUIStateChanged(const std::string& source, bool active); | 349 void HandleLoginUIStateChanged(const std::string& source, bool active); |
| 350 void HandleUnlockOnLoginSuccess(); | 350 void HandleUnlockOnLoginSuccess(); |
| 351 void HandleLoginScreenUpdate(); | 351 void HandleLoginScreenUpdate(); |
| 352 void HandleShowLoadingTimeoutError(); | 352 void HandleShowLoadingTimeoutError(); |
| 353 void HandleShowSupervisedUserCreationScreen(); | 353 void HandleShowSupervisedUserCreationScreen(); |
| 354 void HandleFocusPod(const std::string& user_id); | 354 void HandleFocusPod(const AccountId& account_id); |
| 355 void HandleHardlockPod(const std::string& user_id); | 355 void HandleHardlockPod(const std::string& user_id); |
| 356 void HandleLaunchKioskApp(const std::string& app_id, bool diagnostic_mode); | 356 void HandleLaunchKioskApp(const AccountId& app_account_id, |
| 357 void HandleGetPublicSessionKeyboardLayouts(const std::string& user_id, | 357 bool diagnostic_mode); |
| 358 void HandleGetPublicSessionKeyboardLayouts(const AccountId& account_id, |
| 358 const std::string& locale); | 359 const std::string& locale); |
| 359 void HandleCancelConsumerManagementEnrollment(); | 360 void HandleCancelConsumerManagementEnrollment(); |
| 360 void HandleGetTouchViewState(); | 361 void HandleGetTouchViewState(); |
| 361 void HandleLogRemoveUserWarningShown(); | 362 void HandleLogRemoveUserWarningShown(); |
| 362 void HandleFirstIncorrectPasswordAttempt(const std::string& email); | 363 void HandleFirstIncorrectPasswordAttempt(const std::string& serialized_user); |
| 363 void HandleMaxIncorrectPasswordAttempts(const std::string& email); | 364 void HandleMaxIncorrectPasswordAttempts(const AccountId& account_id); |
| 364 | 365 |
| 365 // Sends the list of |keyboard_layouts| available for the |locale| that is | 366 // Sends the list of |keyboard_layouts| available for the |locale| that is |
| 366 // currently selected for the public session identified by |user_id|. | 367 // currently selected for the public session identified by |user_id|. |
| 367 void SendPublicSessionKeyboardLayouts( | 368 void SendPublicSessionKeyboardLayouts( |
| 368 const std::string& user_id, | 369 const AccountId& account_id, |
| 369 const std::string& locale, | 370 const std::string& locale, |
| 370 scoped_ptr<base::ListValue> keyboard_layouts); | 371 scoped_ptr<base::ListValue> keyboard_layouts); |
| 371 | 372 |
| 372 // Returns true iff | 373 // Returns true iff |
| 373 // (i) log in is restricted to some user list, | 374 // (i) log in is restricted to some user list, |
| 374 // (ii) all users in the restricted list are present. | 375 // (ii) all users in the restricted list are present. |
| 375 bool AllWhitelistedUsersPresent(); | 376 bool AllWhitelistedUsersPresent(); |
| 376 | 377 |
| 377 // Cancels password changed flow - switches back to login screen. | 378 // Cancels password changed flow - switches back to login screen. |
| 378 // Called as a callback after cookies are cleared. | 379 // Called as a callback after cookies are cleared. |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 487 scoped_ptr<ErrorScreensHistogramHelper> histogram_helper_; | 488 scoped_ptr<ErrorScreensHistogramHelper> histogram_helper_; |
| 488 | 489 |
| 489 base::WeakPtrFactory<SigninScreenHandler> weak_factory_; | 490 base::WeakPtrFactory<SigninScreenHandler> weak_factory_; |
| 490 | 491 |
| 491 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); | 492 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); |
| 492 }; | 493 }; |
| 493 | 494 |
| 494 } // namespace chromeos | 495 } // namespace chromeos |
| 495 | 496 |
| 496 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ | 497 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ |
| OLD | NEW |