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> |
11 | 11 |
12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
13 #include "base/callback.h" | 13 #include "base/callback.h" |
14 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
15 #include "base/containers/hash_tables.h" | 15 #include "base/containers/hash_tables.h" |
16 #include "base/memory/ref_counted.h" | 16 #include "base/memory/ref_counted.h" |
17 #include "base/memory/scoped_ptr.h" | 17 #include "base/memory/scoped_ptr.h" |
18 #include "base/memory/weak_ptr.h" | 18 #include "base/memory/weak_ptr.h" |
| 19 #include "chrome/browser/chromeos/login/easy_unlock/easy_unlock_types.h" |
19 #include "chrome/browser/chromeos/login/enrollment/auto_enrollment_controller.h" | 20 #include "chrome/browser/chromeos/login/enrollment/auto_enrollment_controller.h" |
20 #include "chrome/browser/chromeos/login/screens/error_screen_actor.h" | 21 #include "chrome/browser/chromeos/login/screens/error_screen_actor.h" |
21 #include "chrome/browser/chromeos/login/signin_specifics.h" | 22 #include "chrome/browser/chromeos/login/signin_specifics.h" |
22 #include "chrome/browser/chromeos/login/ui/login_display.h" | 23 #include "chrome/browser/chromeos/login/ui/login_display.h" |
23 #include "chrome/browser/chromeos/settings/cros_settings.h" | 24 #include "chrome/browser/chromeos/settings/cros_settings.h" |
24 #include "chrome/browser/signin/screenlock_bridge.h" | 25 #include "chrome/browser/signin/screenlock_bridge.h" |
25 #include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h" | 26 #include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h" |
26 #include "chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.h" | 27 #include "chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.h" |
27 #include "chrome/browser/ui/webui/chromeos/login/network_state_informer.h" | 28 #include "chrome/browser/ui/webui/chromeos/login/network_state_informer.h" |
28 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" | 29 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" |
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
432 | 433 |
433 // Shows signin. | 434 // Shows signin. |
434 void OnShowAddUser(); | 435 void OnShowAddUser(); |
435 | 436 |
436 GaiaScreenHandler::FrameState FrameState() const; | 437 GaiaScreenHandler::FrameState FrameState() const; |
437 net::Error FrameError() const; | 438 net::Error FrameError() const; |
438 | 439 |
439 // input_method::ImeKeyboard::Observer implementation: | 440 // input_method::ImeKeyboard::Observer implementation: |
440 virtual void OnCapsLockChanged(bool enabled) OVERRIDE; | 441 virtual void OnCapsLockChanged(bool enabled) OVERRIDE; |
441 | 442 |
| 443 // Fetches easy unlock keys for user list. |
| 444 void FetchEasyUnlockKeysForUserList(const base::ListValue& users_list); |
| 445 |
| 446 // Callback invoked when Easy unlock device data for user is fetched. |
| 447 void OnEasyUnlockDeviceListFetched( |
| 448 const std::string& user_id, |
| 449 bool success, |
| 450 const EasyUnlockDeviceKeyDataList& devices); |
| 451 |
| 452 // Callback invoked when Easy unlock device data for user is fetched for |
| 453 // sign in. |
| 454 void OnEasyUnlockDeviceListFetchedForSignIn( |
| 455 const std::string& user_id, |
| 456 bool success, |
| 457 const EasyUnlockDeviceKeyDataList& devices); |
| 458 |
442 // Current UI state of the signin screen. | 459 // Current UI state of the signin screen. |
443 UIState ui_state_; | 460 UIState ui_state_; |
444 | 461 |
445 // A delegate that glues this handler with backend LoginDisplay. | 462 // A delegate that glues this handler with backend LoginDisplay. |
446 SigninScreenHandlerDelegate* delegate_; | 463 SigninScreenHandlerDelegate* delegate_; |
447 | 464 |
448 // A delegate used to get gfx::NativeWindow. | 465 // A delegate used to get gfx::NativeWindow. |
449 NativeWindowDelegate* native_window_delegate_; | 466 NativeWindowDelegate* native_window_delegate_; |
450 | 467 |
451 // Whether screen should be shown right after initialization. | 468 // Whether screen should be shown right after initialization. |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
502 bool is_enrolling_consumer_management_; | 519 bool is_enrolling_consumer_management_; |
503 | 520 |
504 base::WeakPtrFactory<SigninScreenHandler> weak_factory_; | 521 base::WeakPtrFactory<SigninScreenHandler> weak_factory_; |
505 | 522 |
506 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); | 523 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); |
507 }; | 524 }; |
508 | 525 |
509 } // namespace chromeos | 526 } // namespace chromeos |
510 | 527 |
511 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ | 528 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ |
OLD | NEW |