Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(297)

Side by Side Diff: chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc

Issue 2697063004: Fix of "login is not defined" error in OOBE (Closed)
Patch Set: Move CallJSOrDefer to OobeUI Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/ui/webui/chromeos/login/oobe_ui.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/chromeos/login/oobe_ui.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698