| 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 871 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 882 } | 882 } |
| 883 | 883 |
| 884 void SigninScreenHandler::ShowSigninUI(const std::string& email) { | 884 void SigninScreenHandler::ShowSigninUI(const std::string& email) { |
| 885 core_oobe_actor_->ShowSignInUI(email); | 885 core_oobe_actor_->ShowSignInUI(email); |
| 886 } | 886 } |
| 887 | 887 |
| 888 void SigninScreenHandler::ShowControlBar(bool show) { | 888 void SigninScreenHandler::ShowControlBar(bool show) { |
| 889 core_oobe_actor_->ShowControlBar(show); | 889 core_oobe_actor_->ShowControlBar(show); |
| 890 } | 890 } |
| 891 | 891 |
| 892 void SigninScreenHandler::SetKeyboardState(bool shown) { |
| 893 core_oobe_actor_->SetKeyboardState(shown); |
| 894 } |
| 895 |
| 892 void SigninScreenHandler::ShowGaiaPasswordChanged(const std::string& username) { | 896 void SigninScreenHandler::ShowGaiaPasswordChanged(const std::string& username) { |
| 893 email_ = username; | 897 email_ = username; |
| 894 password_changed_for_.insert(email_); | 898 password_changed_for_.insert(email_); |
| 895 core_oobe_actor_->ShowSignInUI(email_); | 899 core_oobe_actor_->ShowSignInUI(email_); |
| 896 CallJS("login.setAuthType", | 900 CallJS("login.setAuthType", |
| 897 username, | 901 username, |
| 898 static_cast<int>(ONLINE_SIGN_IN), | 902 static_cast<int>(ONLINE_SIGN_IN), |
| 899 base::StringValue("")); | 903 base::StringValue("")); |
| 900 } | 904 } |
| 901 | 905 |
| (...skipping 909 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1811 DCHECK(gaia_screen_handler_); | 1815 DCHECK(gaia_screen_handler_); |
| 1812 return gaia_screen_handler_->frame_state(); | 1816 return gaia_screen_handler_->frame_state(); |
| 1813 } | 1817 } |
| 1814 | 1818 |
| 1815 net::Error SigninScreenHandler::FrameError() const { | 1819 net::Error SigninScreenHandler::FrameError() const { |
| 1816 DCHECK(gaia_screen_handler_); | 1820 DCHECK(gaia_screen_handler_); |
| 1817 return gaia_screen_handler_->frame_error(); | 1821 return gaia_screen_handler_->frame_error(); |
| 1818 } | 1822 } |
| 1819 | 1823 |
| 1820 } // namespace chromeos | 1824 } // namespace chromeos |
| OLD | NEW |