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