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 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
334 | 334 |
335 // Restore input focus to current user pod. | 335 // Restore input focus to current user pod. |
336 void RefocusCurrentPod(); | 336 void RefocusCurrentPod(); |
337 | 337 |
338 // Hides the PIN keyboard if it is no longer available. | 338 // Hides the PIN keyboard if it is no longer available. |
339 void HidePinKeyboardIfNeeded(const AccountId& account_id); | 339 void HidePinKeyboardIfNeeded(const AccountId& account_id); |
340 | 340 |
341 // WebUI message handlers. | 341 // WebUI message handlers. |
342 void HandleGetUsers(); | 342 void HandleGetUsers(); |
343 void HandleAuthenticateUser(const AccountId& account_id, | 343 void HandleAuthenticateUser(const AccountId& account_id, |
344 const std::string& password); | 344 const std::string& password, |
| 345 bool authenticated_by_pin); |
345 void HandleAttemptUnlock(const std::string& username); | 346 void HandleAttemptUnlock(const std::string& username); |
346 void HandleLaunchIncognito(); | 347 void HandleLaunchIncognito(); |
347 void HandleLaunchPublicSession(const AccountId& account_id, | 348 void HandleLaunchPublicSession(const AccountId& account_id, |
348 const std::string& locale, | 349 const std::string& locale, |
349 const std::string& input_method); | 350 const std::string& input_method); |
350 void HandleOfflineLogin(const base::ListValue* args); | 351 void HandleOfflineLogin(const base::ListValue* args); |
351 void HandleShutdownSystem(); | 352 void HandleShutdownSystem(); |
352 void HandleLoadWallpaper(const AccountId& account_id); | 353 void HandleLoadWallpaper(const AccountId& account_id); |
353 void HandleRebootSystem(); | 354 void HandleRebootSystem(); |
354 void HandleRemoveUser(const AccountId& account_id); | 355 void HandleRemoveUser(const AccountId& account_id); |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
513 std::unique_ptr<LoginFeedback> login_feedback_; | 514 std::unique_ptr<LoginFeedback> login_feedback_; |
514 | 515 |
515 base::WeakPtrFactory<SigninScreenHandler> weak_factory_; | 516 base::WeakPtrFactory<SigninScreenHandler> weak_factory_; |
516 | 517 |
517 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); | 518 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); |
518 }; | 519 }; |
519 | 520 |
520 } // namespace chromeos | 521 } // namespace chromeos |
521 | 522 |
522 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ | 523 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ |
OLD | NEW |