| 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 887 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 898 } | 898 } |
| 899 | 899 |
| 900 void SigninScreenHandler::ShowSigninUI(const std::string& email) { | 900 void SigninScreenHandler::ShowSigninUI(const std::string& email) { |
| 901 core_oobe_actor_->ShowSignInUI(email); | 901 core_oobe_actor_->ShowSignInUI(email); |
| 902 } | 902 } |
| 903 | 903 |
| 904 void SigninScreenHandler::ShowControlBar(bool show) { | 904 void SigninScreenHandler::ShowControlBar(bool show) { |
| 905 core_oobe_actor_->ShowControlBar(show); | 905 core_oobe_actor_->ShowControlBar(show); |
| 906 } | 906 } |
| 907 | 907 |
| 908 void SigninScreenHandler::SetKeyboardState(bool shown) { |
| 909 core_oobe_actor_->SetKeyboardState(shown); |
| 910 } |
| 911 |
| 912 void SigninScreenHandler::SetClientAreaSize(int width, int height) { |
| 913 core_oobe_actor_->SetClientAreaSize(width, height); |
| 914 } |
| 915 |
| 908 void SigninScreenHandler::ShowGaiaPasswordChanged(const std::string& username) { | 916 void SigninScreenHandler::ShowGaiaPasswordChanged(const std::string& username) { |
| 909 email_ = username; | 917 email_ = username; |
| 910 password_changed_for_.insert(email_); | 918 password_changed_for_.insert(email_); |
| 911 core_oobe_actor_->ShowSignInUI(email_); | 919 core_oobe_actor_->ShowSignInUI(email_); |
| 912 CallJS("login.setAuthType", | 920 CallJS("login.setAuthType", |
| 913 username, | 921 username, |
| 914 static_cast<int>(ONLINE_SIGN_IN), | 922 static_cast<int>(ONLINE_SIGN_IN), |
| 915 base::StringValue("")); | 923 base::StringValue("")); |
| 916 } | 924 } |
| 917 | 925 |
| (...skipping 911 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1829 return gaia_screen_handler_->frame_error(); | 1837 return gaia_screen_handler_->frame_error(); |
| 1830 } | 1838 } |
| 1831 | 1839 |
| 1832 void SigninScreenHandler::OnCapsLockChanged(bool enabled) { | 1840 void SigninScreenHandler::OnCapsLockChanged(bool enabled) { |
| 1833 caps_lock_enabled_ = enabled; | 1841 caps_lock_enabled_ = enabled; |
| 1834 if (page_is_ready()) | 1842 if (page_is_ready()) |
| 1835 CallJS("login.AccountPickerScreen.setCapsLockState", caps_lock_enabled_); | 1843 CallJS("login.AccountPickerScreen.setCapsLockState", caps_lock_enabled_); |
| 1836 } | 1844 } |
| 1837 | 1845 |
| 1838 } // namespace chromeos | 1846 } // namespace chromeos |
| OLD | NEW |