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 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
344 // ash::mojom::TouchView: | 344 // ash::mojom::TouchView: |
345 void OnTouchViewToggled(bool enabled) override; | 345 void OnTouchViewToggled(bool enabled) override; |
346 | 346 |
347 void UpdateAddButtonStatus(); | 347 void UpdateAddButtonStatus(); |
348 | 348 |
349 // Restore input focus to current user pod. | 349 // Restore input focus to current user pod. |
350 void RefocusCurrentPod(); | 350 void RefocusCurrentPod(); |
351 | 351 |
352 // Enable or disable the pin keyboard for the given account. | 352 // Enable or disable the pin keyboard for the given account. |
353 void UpdatePinKeyboardState(const AccountId& account_id); | 353 void UpdatePinKeyboardState(const AccountId& account_id); |
| 354 void UpdatePinKeyboardStateCallback(const AccountId& account_id, |
| 355 bool is_enabled); |
| 356 // Callback run by PinBackend. If |should_enabled| is true the PIN keyboard is |
| 357 // preloaded. |
| 358 void PreloadPinKeyboardCallback(bool should_enabled); |
354 | 359 |
355 // WebUI message handlers. | 360 // WebUI message handlers. |
356 void HandleGetUsers(); | 361 void HandleGetUsers(); |
357 void HandleAuthenticateUser(const AccountId& account_id, | 362 void HandleAuthenticateUser(const AccountId& account_id, |
358 const std::string& password, | 363 const std::string& password, |
359 bool authenticated_by_pin); | 364 bool authenticated_by_pin); |
360 void HandleAttemptUnlock(const std::string& username); | 365 void HandleAttemptUnlock(const std::string& username); |
361 void HandleLaunchIncognito(); | 366 void HandleLaunchIncognito(); |
362 void HandleLaunchPublicSession(const AccountId& account_id, | 367 void HandleLaunchPublicSession(const AccountId& account_id, |
363 const std::string& locale, | 368 const std::string& locale, |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
537 std::unique_ptr<AccountId> focused_pod_account_id_; | 542 std::unique_ptr<AccountId> focused_pod_account_id_; |
538 | 543 |
539 base::WeakPtrFactory<SigninScreenHandler> weak_factory_; | 544 base::WeakPtrFactory<SigninScreenHandler> weak_factory_; |
540 | 545 |
541 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); | 546 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); |
542 }; | 547 }; |
543 | 548 |
544 } // namespace chromeos | 549 } // namespace chromeos |
545 | 550 |
546 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ | 551 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ |
OLD | NEW |