| 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 <memory> | 9 #include <memory> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 369 void HandleCancelPasswordChangedFlow(const AccountId& account_id); | 369 void HandleCancelPasswordChangedFlow(const AccountId& account_id); |
| 370 void HandleCancelUserAdding(); | 370 void HandleCancelUserAdding(); |
| 371 void HandleMigrateUserData(const std::string& password); | 371 void HandleMigrateUserData(const std::string& password); |
| 372 void HandleResyncUserData(); | 372 void HandleResyncUserData(); |
| 373 void HandleLoginUIStateChanged(const std::string& source, bool active); | 373 void HandleLoginUIStateChanged(const std::string& source, bool active); |
| 374 void HandleUnlockOnLoginSuccess(); | 374 void HandleUnlockOnLoginSuccess(); |
| 375 void HandleLoginScreenUpdate(); | 375 void HandleLoginScreenUpdate(); |
| 376 void HandleShowLoadingTimeoutError(); | 376 void HandleShowLoadingTimeoutError(); |
| 377 void HandleShowSupervisedUserCreationScreen(); | 377 void HandleShowSupervisedUserCreationScreen(); |
| 378 void HandleFocusPod(const AccountId& account_id); | 378 void HandleFocusPod(const AccountId& account_id); |
| 379 void HandleNoPodFocused(); |
| 379 void HandleHardlockPod(const std::string& user_id); | 380 void HandleHardlockPod(const std::string& user_id); |
| 380 void HandleLaunchKioskApp(const AccountId& app_account_id, | 381 void HandleLaunchKioskApp(const AccountId& app_account_id, |
| 381 bool diagnostic_mode); | 382 bool diagnostic_mode); |
| 382 void HandleLaunchArcKioskApp(const AccountId& app_account_id); | 383 void HandleLaunchArcKioskApp(const AccountId& app_account_id); |
| 383 void HandleGetPublicSessionKeyboardLayouts(const AccountId& account_id, | 384 void HandleGetPublicSessionKeyboardLayouts(const AccountId& account_id, |
| 384 const std::string& locale); | 385 const std::string& locale); |
| 385 void HandleGetTouchViewState(); | 386 void HandleGetTouchViewState(); |
| 386 void HandleLogRemoveUserWarningShown(); | 387 void HandleLogRemoveUserWarningShown(); |
| 387 void HandleFirstIncorrectPasswordAttempt(const AccountId& account_id); | 388 void HandleFirstIncorrectPasswordAttempt(const AccountId& account_id); |
| 388 void HandleMaxIncorrectPasswordAttempts(const AccountId& account_id); | 389 void HandleMaxIncorrectPasswordAttempts(const AccountId& account_id); |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 424 void OnShowAddUser(); | 425 void OnShowAddUser(); |
| 425 | 426 |
| 426 net::Error FrameError() const; | 427 net::Error FrameError() const; |
| 427 | 428 |
| 428 // input_method::ImeKeyboard::Observer implementation: | 429 // input_method::ImeKeyboard::Observer implementation: |
| 429 void OnCapsLockChanged(bool enabled) override; | 430 void OnCapsLockChanged(bool enabled) override; |
| 430 | 431 |
| 431 // Callback invoked after the feedback is finished. | 432 // Callback invoked after the feedback is finished. |
| 432 void OnFeedbackFinished(); | 433 void OnFeedbackFinished(); |
| 433 | 434 |
| 435 // Called when the cros property controlling allowed input methods changes. |
| 436 void OnAllowedInputMethodsChanged(); |
| 437 |
| 434 // Current UI state of the signin screen. | 438 // Current UI state of the signin screen. |
| 435 UIState ui_state_ = UI_STATE_UNKNOWN; | 439 UIState ui_state_ = UI_STATE_UNKNOWN; |
| 436 | 440 |
| 437 // A delegate that glues this handler with backend LoginDisplay. | 441 // A delegate that glues this handler with backend LoginDisplay. |
| 438 SigninScreenHandlerDelegate* delegate_ = nullptr; | 442 SigninScreenHandlerDelegate* delegate_ = nullptr; |
| 439 | 443 |
| 440 // A delegate used to get gfx::NativeWindow. | 444 // A delegate used to get gfx::NativeWindow. |
| 441 NativeWindowDelegate* native_window_delegate_ = nullptr; | 445 NativeWindowDelegate* native_window_delegate_ = nullptr; |
| 442 | 446 |
| 443 // Whether screen should be shown right after initialization. | 447 // Whether screen should be shown right after initialization. |
| (...skipping 16 matching lines...) Expand all Loading... |
| 460 CoreOobeActor* core_oobe_actor_ = nullptr; | 464 CoreOobeActor* core_oobe_actor_ = nullptr; |
| 461 | 465 |
| 462 NetworkStateInformer::State last_network_state_ = | 466 NetworkStateInformer::State last_network_state_ = |
| 463 NetworkStateInformer::UNKNOWN; | 467 NetworkStateInformer::UNKNOWN; |
| 464 | 468 |
| 465 base::CancelableClosure update_state_closure_; | 469 base::CancelableClosure update_state_closure_; |
| 466 base::CancelableClosure connecting_closure_; | 470 base::CancelableClosure connecting_closure_; |
| 467 | 471 |
| 468 content::NotificationRegistrar registrar_; | 472 content::NotificationRegistrar registrar_; |
| 469 | 473 |
| 474 std::unique_ptr<CrosSettings::ObserverSubscription> |
| 475 allowed_input_methods_subscription_; |
| 476 |
| 470 // Whether there is an auth UI pending. This flag is set on receiving | 477 // Whether there is an auth UI pending. This flag is set on receiving |
| 471 // NOTIFICATION_AUTH_NEEDED and reset on either NOTIFICATION_AUTH_SUPPLIED or | 478 // NOTIFICATION_AUTH_NEEDED and reset on either NOTIFICATION_AUTH_SUPPLIED or |
| 472 // NOTIFICATION_AUTH_CANCELLED. | 479 // NOTIFICATION_AUTH_CANCELLED. |
| 473 bool has_pending_auth_ui_ = false; | 480 bool has_pending_auth_ui_ = false; |
| 474 | 481 |
| 475 // Used for pending GAIA reloads. | 482 // Used for pending GAIA reloads. |
| 476 NetworkError::ErrorReason gaia_reload_reason_ = | 483 NetworkError::ErrorReason gaia_reload_reason_ = |
| 477 NetworkError::ERROR_REASON_NONE; | 484 NetworkError::ERROR_REASON_NONE; |
| 478 | 485 |
| 479 bool caps_lock_enabled_ = false; | 486 bool caps_lock_enabled_ = false; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 504 | 511 |
| 505 // True if SigninScreenHandler has already been added to OobeUI observers. | 512 // True if SigninScreenHandler has already been added to OobeUI observers. |
| 506 bool oobe_ui_observer_added_ = false; | 513 bool oobe_ui_observer_added_ = false; |
| 507 | 514 |
| 508 bool zero_offline_timeout_for_test_ = false; | 515 bool zero_offline_timeout_for_test_ = false; |
| 509 | 516 |
| 510 std::unique_ptr<ErrorScreensHistogramHelper> histogram_helper_; | 517 std::unique_ptr<ErrorScreensHistogramHelper> histogram_helper_; |
| 511 | 518 |
| 512 std::unique_ptr<LoginFeedback> login_feedback_; | 519 std::unique_ptr<LoginFeedback> login_feedback_; |
| 513 | 520 |
| 521 std::unique_ptr<AccountId> focused_pod_account_id_; |
| 522 |
| 514 base::WeakPtrFactory<SigninScreenHandler> weak_factory_; | 523 base::WeakPtrFactory<SigninScreenHandler> weak_factory_; |
| 515 | 524 |
| 516 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); | 525 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); |
| 517 }; | 526 }; |
| 518 | 527 |
| 519 } // namespace chromeos | 528 } // namespace chromeos |
| 520 | 529 |
| 521 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ | 530 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ |
| OLD | NEW |