Chromium Code Reviews| 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 1110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1121 | 1121 |
| 1122 void SigninScreenHandler::SuspendDone(const base::TimeDelta& sleep_duration) { | 1122 void SigninScreenHandler::SuspendDone(const base::TimeDelta& sleep_duration) { |
| 1123 for (user_manager::User* user : | 1123 for (user_manager::User* user : |
| 1124 user_manager::UserManager::Get()->GetUnlockUsers()) { | 1124 user_manager::UserManager::Get()->GetUnlockUsers()) { |
| 1125 HidePinKeyboardIfNeeded(user->GetAccountId()); | 1125 HidePinKeyboardIfNeeded(user->GetAccountId()); |
| 1126 } | 1126 } |
| 1127 } | 1127 } |
| 1128 | 1128 |
| 1129 void SigninScreenHandler::OnTouchViewToggled(bool enabled) { | 1129 void SigninScreenHandler::OnTouchViewToggled(bool enabled) { |
| 1130 touch_view_enabled_ = enabled; | 1130 touch_view_enabled_ = enabled; |
| 1131 CallJS("login.AccountPickerScreen.setTouchViewState", enabled); | 1131 GetOobeUI()->CallJSOrDefer("login.AccountPickerScreen.setTouchViewState", |
|
Alexander Alekseev
2017/02/21 23:46:49
GetOobeUI() is a member of BaseScreenHandler.
Thi
Wenzhao (Colin) Zang
2017/02/22 02:53:34
If BaseScreenHandler calls CallJSOrDeferImpl() in
| |
| 1132 this, enabled); | |
| 1132 } | 1133 } |
| 1133 | 1134 |
| 1134 bool SigninScreenHandler::ShouldLoadGaia() const { | 1135 bool SigninScreenHandler::ShouldLoadGaia() const { |
| 1135 // Fetching of the extension is not started before account picker page is | 1136 // Fetching of the extension is not started before account picker page is |
| 1136 // loaded because it can affect the loading speed. | 1137 // loaded because it can affect the loading speed. |
| 1137 // Do not load the extension for the screen locker, see crosbug.com/25018. | 1138 // Do not load the extension for the screen locker, see crosbug.com/25018. |
| 1138 return !ScreenLocker::default_screen_locker() && | 1139 return !ScreenLocker::default_screen_locker() && |
| 1139 is_account_picker_showing_first_time_; | 1140 is_account_picker_showing_first_time_; |
| 1140 } | 1141 } |
| 1141 | 1142 |
| (...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1637 rate.initial_delay_in_ms = auto_repeat_delay; | 1638 rate.initial_delay_in_ms = auto_repeat_delay; |
| 1638 rate.repeat_interval_in_ms = auto_repeat_interval; | 1639 rate.repeat_interval_in_ms = auto_repeat_interval; |
| 1639 input_method::InputMethodManager::Get() | 1640 input_method::InputMethodManager::Get() |
| 1640 ->GetImeKeyboard() | 1641 ->GetImeKeyboard() |
| 1641 ->SetAutoRepeatEnabled(true); | 1642 ->SetAutoRepeatEnabled(true); |
| 1642 input_method::InputMethodManager::Get()->GetImeKeyboard()->SetAutoRepeatRate( | 1643 input_method::InputMethodManager::Get()->GetImeKeyboard()->SetAutoRepeatRate( |
| 1643 rate); | 1644 rate); |
| 1644 } | 1645 } |
| 1645 | 1646 |
| 1646 } // namespace chromeos | 1647 } // namespace chromeos |
| OLD | NEW |