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 <algorithm> | 7 #include <algorithm> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "ash/shell.h" | 10 #include "ash/shell.h" |
(...skipping 1218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1229 } | 1229 } |
1230 | 1230 |
1231 void SigninScreenHandler::HandleUpdateOfflineLogin(bool offline_login_active) { | 1231 void SigninScreenHandler::HandleUpdateOfflineLogin(bool offline_login_active) { |
1232 offline_login_active_ = offline_login_active; | 1232 offline_login_active_ = offline_login_active; |
1233 } | 1233 } |
1234 | 1234 |
1235 void SigninScreenHandler::HandleFocusPod(const std::string& user_id) { | 1235 void SigninScreenHandler::HandleFocusPod(const std::string& user_id) { |
1236 SetUserInputMethod(user_id, ime_state_.get()); | 1236 SetUserInputMethod(user_id, ime_state_.get()); |
1237 WallpaperManager::Get()->SetUserWallpaperDelayed(user_id); | 1237 WallpaperManager::Get()->SetUserWallpaperDelayed(user_id); |
1238 ScreenlockBridge::Get()->SetFocusedUser(user_id); | 1238 ScreenlockBridge::Get()->SetFocusedUser(user_id); |
1239 if (delegate_) | |
1240 delegate_->CheckUserStatus(user_id); | |
Nikita (slow)
2015/04/07 11:18:10
FocusPod maybe called multiple times per user and
| |
1239 if (!test_focus_pod_callback_.is_null()) | 1241 if (!test_focus_pod_callback_.is_null()) |
1240 test_focus_pod_callback_.Run(); | 1242 test_focus_pod_callback_.Run(); |
1241 } | 1243 } |
1242 | 1244 |
1243 void SigninScreenHandler::HandleGetPublicSessionKeyboardLayouts( | 1245 void SigninScreenHandler::HandleGetPublicSessionKeyboardLayouts( |
1244 const std::string& user_id, | 1246 const std::string& user_id, |
1245 const std::string& locale) { | 1247 const std::string& locale) { |
1246 GetKeyboardLayoutsForLocale( | 1248 GetKeyboardLayoutsForLocale( |
1247 base::Bind(&SigninScreenHandler::SendPublicSessionKeyboardLayouts, | 1249 base::Bind(&SigninScreenHandler::SendPublicSessionKeyboardLayouts, |
1248 weak_factory_.GetWeakPtr(), | 1250 weak_factory_.GetWeakPtr(), |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1383 return gaia_screen_handler_->frame_error(); | 1385 return gaia_screen_handler_->frame_error(); |
1384 } | 1386 } |
1385 | 1387 |
1386 void SigninScreenHandler::OnCapsLockChanged(bool enabled) { | 1388 void SigninScreenHandler::OnCapsLockChanged(bool enabled) { |
1387 caps_lock_enabled_ = enabled; | 1389 caps_lock_enabled_ = enabled; |
1388 if (page_is_ready()) | 1390 if (page_is_ready()) |
1389 CallJS("login.AccountPickerScreen.setCapsLockState", caps_lock_enabled_); | 1391 CallJS("login.AccountPickerScreen.setCapsLockState", caps_lock_enabled_); |
1390 } | 1392 } |
1391 | 1393 |
1392 } // namespace chromeos | 1394 } // namespace chromeos |
OLD | NEW |