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 <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <vector> | 10 #include <vector> |
(...skipping 1051 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1062 // to be disabled. We need to show the add user page. | 1062 // to be disabled. We need to show the add user page. |
1063 HandleShowAddUser(nullptr); | 1063 HandleShowAddUser(nullptr); |
1064 return; | 1064 return; |
1065 } | 1065 } |
1066 | 1066 |
1067 if (delegate_->AllowNewUserChanged() || ui_state_ == UI_STATE_UNKNOWN) { | 1067 if (delegate_->AllowNewUserChanged() || ui_state_ == UI_STATE_UNKNOWN) { |
1068 // We need to reload GAIA if UI_STATE_UNKNOWN or the allow new user setting | 1068 // We need to reload GAIA if UI_STATE_UNKNOWN or the allow new user setting |
1069 // has changed so that reloaded GAIA shows/hides the option to create a new | 1069 // has changed so that reloaded GAIA shows/hides the option to create a new |
1070 // account. | 1070 // account. |
1071 UpdateUIState(UI_STATE_ACCOUNT_PICKER, nullptr); | 1071 UpdateUIState(UI_STATE_ACCOUNT_PICKER, nullptr); |
| 1072 UpdateAddButtonStatus(); |
1072 } | 1073 } |
1073 } | 1074 } |
1074 | 1075 |
1075 void SigninScreenHandler::ResetSigninScreenHandlerDelegate() { | 1076 void SigninScreenHandler::ResetSigninScreenHandlerDelegate() { |
1076 SetDelegate(nullptr); | 1077 SetDelegate(nullptr); |
1077 } | 1078 } |
1078 | 1079 |
1079 void SigninScreenHandler::ShowError(int login_attempts, | 1080 void SigninScreenHandler::ShowError(int login_attempts, |
1080 const std::string& error_text, | 1081 const std::string& error_text, |
1081 const std::string& help_link_text, | 1082 const std::string& help_link_text, |
(...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1655 rate.initial_delay_in_ms = auto_repeat_delay; | 1656 rate.initial_delay_in_ms = auto_repeat_delay; |
1656 rate.repeat_interval_in_ms = auto_repeat_interval; | 1657 rate.repeat_interval_in_ms = auto_repeat_interval; |
1657 input_method::InputMethodManager::Get() | 1658 input_method::InputMethodManager::Get() |
1658 ->GetImeKeyboard() | 1659 ->GetImeKeyboard() |
1659 ->SetAutoRepeatEnabled(true); | 1660 ->SetAutoRepeatEnabled(true); |
1660 input_method::InputMethodManager::Get()->GetImeKeyboard()->SetAutoRepeatRate( | 1661 input_method::InputMethodManager::Get()->GetImeKeyboard()->SetAutoRepeatRate( |
1661 rate); | 1662 rate); |
1662 } | 1663 } |
1663 | 1664 |
1664 } // namespace chromeos | 1665 } // namespace chromeos |
OLD | NEW |