| 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 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
| (...skipping 823 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 834 } | 834 } |
| 835 | 835 |
| 836 void SigninScreenHandler::ClearUserPodPassword() { | 836 void SigninScreenHandler::ClearUserPodPassword() { |
| 837 core_oobe_actor_->ClearUserPodPassword(); | 837 core_oobe_actor_->ClearUserPodPassword(); |
| 838 } | 838 } |
| 839 | 839 |
| 840 void SigninScreenHandler::RefocusCurrentPod() { | 840 void SigninScreenHandler::RefocusCurrentPod() { |
| 841 core_oobe_actor_->RefocusCurrentPod(); | 841 core_oobe_actor_->RefocusCurrentPod(); |
| 842 } | 842 } |
| 843 | 843 |
| 844 void SigninScreenHandler::OnLoginSuccess(const std::string& username) { |
| 845 core_oobe_actor_->OnLoginSuccess(username); |
| 846 } |
| 847 |
| 844 void SigninScreenHandler::OnUserRemoved(const std::string& username) { | 848 void SigninScreenHandler::OnUserRemoved(const std::string& username) { |
| 845 CallJS("login.AccountPickerScreen.removeUser", username); | 849 CallJS("login.AccountPickerScreen.removeUser", username); |
| 846 if (delegate_->GetUsers().empty()) | 850 if (delegate_->GetUsers().empty()) |
| 847 OnShowAddUser(""); | 851 OnShowAddUser(""); |
| 848 } | 852 } |
| 849 | 853 |
| 850 void SigninScreenHandler::OnUserImageChanged(const User& user) { | 854 void SigninScreenHandler::OnUserImageChanged(const User& user) { |
| 851 if (page_is_ready()) | 855 if (page_is_ready()) |
| 852 CallJS("login.AccountPickerScreen.updateUserImage", user.email()); | 856 CallJS("login.AccountPickerScreen.updateUserImage", user.email()); |
| 853 } | 857 } |
| (...skipping 971 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1825 return gaia_screen_handler_->frame_error(); | 1829 return gaia_screen_handler_->frame_error(); |
| 1826 } | 1830 } |
| 1827 | 1831 |
| 1828 void SigninScreenHandler::OnCapsLockChanged(bool enabled) { | 1832 void SigninScreenHandler::OnCapsLockChanged(bool enabled) { |
| 1829 caps_lock_enabled_ = enabled; | 1833 caps_lock_enabled_ = enabled; |
| 1830 if (page_is_ready()) | 1834 if (page_is_ready()) |
| 1831 CallJS("login.AccountPickerScreen.setCapsLockState", caps_lock_enabled_); | 1835 CallJS("login.AccountPickerScreen.setCapsLockState", caps_lock_enabled_); |
| 1832 } | 1836 } |
| 1833 | 1837 |
| 1834 } // namespace chromeos | 1838 } // namespace chromeos |
| OLD | NEW |