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 880 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
891 default: | 891 default: |
892 NOTREACHED() << "Unknown sign in error"; | 892 NOTREACHED() << "Unknown sign in error"; |
893 break; | 893 break; |
894 } | 894 } |
895 } | 895 } |
896 | 896 |
897 void SigninScreenHandler::ShowSigninUI(const std::string& email) { | 897 void SigninScreenHandler::ShowSigninUI(const std::string& email) { |
898 core_oobe_actor_->ShowSignInUI(email); | 898 core_oobe_actor_->ShowSignInUI(email); |
899 } | 899 } |
900 | 900 |
901 void SigninScreenHandler::ShowControlBar(bool show) { | |
902 core_oobe_actor_->ShowControlBar(show); | |
903 } | |
904 | |
905 void SigninScreenHandler::SetKeyboardState(bool shown) { | |
906 core_oobe_actor_->SetKeyboardState(shown); | |
907 } | |
908 | |
909 void SigninScreenHandler::SetClientAreaSize(int width, int height) { | |
910 core_oobe_actor_->SetClientAreaSize(width, height); | |
911 } | |
912 | |
913 void SigninScreenHandler::ShowGaiaPasswordChanged(const std::string& username) { | 901 void SigninScreenHandler::ShowGaiaPasswordChanged(const std::string& username) { |
914 email_ = username; | 902 email_ = username; |
915 password_changed_for_.insert(email_); | 903 password_changed_for_.insert(email_); |
916 core_oobe_actor_->ShowSignInUI(email_); | 904 core_oobe_actor_->ShowSignInUI(email_); |
917 CallJS("login.setAuthType", | 905 CallJS("login.setAuthType", |
918 username, | 906 username, |
919 static_cast<int>(ONLINE_SIGN_IN), | 907 static_cast<int>(ONLINE_SIGN_IN), |
920 base::StringValue("")); | 908 base::StringValue("")); |
921 } | 909 } |
922 | 910 |
(...skipping 911 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1834 return gaia_screen_handler_->frame_error(); | 1822 return gaia_screen_handler_->frame_error(); |
1835 } | 1823 } |
1836 | 1824 |
1837 void SigninScreenHandler::OnCapsLockChanged(bool enabled) { | 1825 void SigninScreenHandler::OnCapsLockChanged(bool enabled) { |
1838 caps_lock_enabled_ = enabled; | 1826 caps_lock_enabled_ = enabled; |
1839 if (page_is_ready()) | 1827 if (page_is_ready()) |
1840 CallJS("login.AccountPickerScreen.setCapsLockState", caps_lock_enabled_); | 1828 CallJS("login.AccountPickerScreen.setCapsLockState", caps_lock_enabled_); |
1841 } | 1829 } |
1842 | 1830 |
1843 } // namespace chromeos | 1831 } // namespace chromeos |
OLD | NEW |