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 28 matching lines...) Expand all Loading... |
39 | 39 |
40 class EasyUnlockService; | 40 class EasyUnlockService; |
41 | 41 |
42 namespace base { | 42 namespace base { |
43 class DictionaryValue; | 43 class DictionaryValue; |
44 class ListValue; | 44 class ListValue; |
45 } | 45 } |
46 | 46 |
47 namespace chromeos { | 47 namespace chromeos { |
48 | 48 |
49 class AuthenticatedUserEmailRetriever; | |
50 class CaptivePortalWindowProxy; | 49 class CaptivePortalWindowProxy; |
51 class CoreOobeActor; | 50 class CoreOobeActor; |
52 class GaiaScreenHandler; | 51 class GaiaScreenHandler; |
53 class NativeWindowDelegate; | 52 class NativeWindowDelegate; |
54 class SupervisedUserCreationScreenHandler; | 53 class SupervisedUserCreationScreenHandler; |
55 class User; | 54 class User; |
56 class UserContext; | 55 class UserContext; |
57 | 56 |
58 // Helper class to pass initial parameters to the login screen. | 57 // Helper class to pass initial parameters to the login screen. |
59 class LoginScreenContext { | 58 class LoginScreenContext { |
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
387 void HandleResyncUserData(); | 386 void HandleResyncUserData(); |
388 void HandleLoginUIStateChanged(const std::string& source, bool new_value); | 387 void HandleLoginUIStateChanged(const std::string& source, bool new_value); |
389 void HandleUnlockOnLoginSuccess(); | 388 void HandleUnlockOnLoginSuccess(); |
390 void HandleLoginScreenUpdate(); | 389 void HandleLoginScreenUpdate(); |
391 void HandleShowLoadingTimeoutError(); | 390 void HandleShowLoadingTimeoutError(); |
392 void HandleUpdateOfflineLogin(bool offline_login_active); | 391 void HandleUpdateOfflineLogin(bool offline_login_active); |
393 void HandleShowSupervisedUserCreationScreen(); | 392 void HandleShowSupervisedUserCreationScreen(); |
394 void HandleFocusPod(const std::string& user_id); | 393 void HandleFocusPod(const std::string& user_id); |
395 void HandleHardlockPod(const std::string& user_id); | 394 void HandleHardlockPod(const std::string& user_id); |
396 void HandleLaunchKioskApp(const std::string& app_id, bool diagnostic_mode); | 395 void HandleLaunchKioskApp(const std::string& app_id, bool diagnostic_mode); |
397 void HandleRetrieveAuthenticatedUserEmail(double attempt_token); | |
398 void HandleGetPublicSessionKeyboardLayouts(const std::string& user_id, | 396 void HandleGetPublicSessionKeyboardLayouts(const std::string& user_id, |
399 const std::string& locale); | 397 const std::string& locale); |
400 void HandleCancelConsumerManagementEnrollment(); | 398 void HandleCancelConsumerManagementEnrollment(); |
401 void HandleGetTouchViewState(); | 399 void HandleGetTouchViewState(); |
402 void HandleSwitchToEmbeddedSignin(); | 400 void HandleSwitchToEmbeddedSignin(); |
403 | 401 |
404 // Sends the list of |keyboard_layouts| available for the |locale| that is | 402 // Sends the list of |keyboard_layouts| available for the |locale| that is |
405 // currently selected for the public session identified by |user_id|. | 403 // currently selected for the public session identified by |user_id|. |
406 void SendPublicSessionKeyboardLayouts( | 404 void SendPublicSessionKeyboardLayouts( |
407 const std::string& user_id, | 405 const std::string& user_id, |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
512 auto_enrollment_progress_subscription_; | 510 auto_enrollment_progress_subscription_; |
513 | 511 |
514 bool caps_lock_enabled_; | 512 bool caps_lock_enabled_; |
515 | 513 |
516 base::Closure kiosk_enable_flow_aborted_callback_for_test_; | 514 base::Closure kiosk_enable_flow_aborted_callback_for_test_; |
517 | 515 |
518 // Non-owning ptr. | 516 // Non-owning ptr. |
519 // TODO(ygorshenin@): remove this dependency. | 517 // TODO(ygorshenin@): remove this dependency. |
520 GaiaScreenHandler* gaia_screen_handler_; | 518 GaiaScreenHandler* gaia_screen_handler_; |
521 | 519 |
522 // Helper that retrieves the authenticated user's e-mail address. | |
523 scoped_ptr<AuthenticatedUserEmailRetriever> email_retriever_; | |
524 | |
525 // Maximized mode controller delegate. | 520 // Maximized mode controller delegate. |
526 scoped_ptr<TouchViewControllerDelegate> max_mode_delegate_; | 521 scoped_ptr<TouchViewControllerDelegate> max_mode_delegate_; |
527 | 522 |
528 // Whether consumer management enrollment is in progress. | 523 // Whether consumer management enrollment is in progress. |
529 bool is_enrolling_consumer_management_; | 524 bool is_enrolling_consumer_management_; |
530 | 525 |
531 // Input Method Engine state used at signin screen. | 526 // Input Method Engine state used at signin screen. |
532 scoped_refptr<input_method::InputMethodManager::State> ime_state_; | 527 scoped_refptr<input_method::InputMethodManager::State> ime_state_; |
533 | 528 |
534 // This callback captures "focusPod finished" event for tests. | 529 // This callback captures "focusPod finished" event for tests. |
535 base::Closure test_focus_pod_callback_; | 530 base::Closure test_focus_pod_callback_; |
536 | 531 |
537 // True if SigninScreenHandler has already been added to OobeUI observers. | 532 // True if SigninScreenHandler has already been added to OobeUI observers. |
538 bool oobe_ui_observer_added_; | 533 bool oobe_ui_observer_added_; |
539 | 534 |
540 base::WeakPtrFactory<SigninScreenHandler> weak_factory_; | 535 base::WeakPtrFactory<SigninScreenHandler> weak_factory_; |
541 | 536 |
542 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); | 537 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); |
543 }; | 538 }; |
544 | 539 |
545 } // namespace chromeos | 540 } // namespace chromeos |
546 | 541 |
547 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ | 542 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ |
OLD | NEW |