| 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 #include "chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h" | 5 #include "chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 658 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 669 | 669 |
| 670 void SigninScreenHandler::SetFocusPODCallbackForTesting( | 670 void SigninScreenHandler::SetFocusPODCallbackForTesting( |
| 671 base::Closure callback) { | 671 base::Closure callback) { |
| 672 test_focus_pod_callback_ = callback; | 672 test_focus_pod_callback_ = callback; |
| 673 } | 673 } |
| 674 | 674 |
| 675 void SigninScreenHandler::ZeroOfflineTimeoutForTesting() { | 675 void SigninScreenHandler::ZeroOfflineTimeoutForTesting() { |
| 676 zero_offline_timeout_for_test_ = true; | 676 zero_offline_timeout_for_test_ = true; |
| 677 } | 677 } |
| 678 | 678 |
| 679 bool SigninScreenHandler::GetKeyboardRemappedPrefValue( |
| 680 const std::string& pref_name, |
| 681 int* value) { |
| 682 return focused_pod_account_id_ && focused_pod_account_id_->is_valid() && |
| 683 user_manager::known_user::GetIntegerPref(*focused_pod_account_id_, |
| 684 pref_name, value); |
| 685 } |
| 686 |
| 679 // SigninScreenHandler, private: ----------------------------------------------- | 687 // SigninScreenHandler, private: ----------------------------------------------- |
| 680 | 688 |
| 681 void SigninScreenHandler::ShowImpl() { | 689 void SigninScreenHandler::ShowImpl() { |
| 682 if (!page_is_ready()) { | 690 if (!page_is_ready()) { |
| 683 show_on_init_ = true; | 691 show_on_init_ = true; |
| 684 return; | 692 return; |
| 685 } | 693 } |
| 686 | 694 |
| 687 if (!ime_state_.get()) | 695 if (!ime_state_.get()) |
| 688 ime_state_ = input_method::InputMethodManager::Get()->GetActiveIMEState(); | 696 ime_state_ = input_method::InputMethodManager::Get()->GetActiveIMEState(); |
| (...skipping 948 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1637 rate.initial_delay_in_ms = auto_repeat_delay; | 1645 rate.initial_delay_in_ms = auto_repeat_delay; |
| 1638 rate.repeat_interval_in_ms = auto_repeat_interval; | 1646 rate.repeat_interval_in_ms = auto_repeat_interval; |
| 1639 input_method::InputMethodManager::Get() | 1647 input_method::InputMethodManager::Get() |
| 1640 ->GetImeKeyboard() | 1648 ->GetImeKeyboard() |
| 1641 ->SetAutoRepeatEnabled(true); | 1649 ->SetAutoRepeatEnabled(true); |
| 1642 input_method::InputMethodManager::Get()->GetImeKeyboard()->SetAutoRepeatRate( | 1650 input_method::InputMethodManager::Get()->GetImeKeyboard()->SetAutoRepeatRate( |
| 1643 rate); | 1651 rate); |
| 1644 } | 1652 } |
| 1645 | 1653 |
| 1646 } // namespace chromeos | 1654 } // namespace chromeos |
| OLD | NEW |