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 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "ash/shell.h" | 10 #include "ash/shell.h" |
(...skipping 788 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
799 if (!IsSigninScreenHiddenByError()) | 799 if (!IsSigninScreenHiddenByError()) |
800 return; | 800 return; |
801 | 801 |
802 gaia_reload_reason_ = NetworkError::ERROR_REASON_NONE; | 802 gaia_reload_reason_ = NetworkError::ERROR_REASON_NONE; |
803 | 803 |
804 network_error_model_->Hide(); | 804 network_error_model_->Hide(); |
805 histogram_helper_->OnErrorHide(); | 805 histogram_helper_->OnErrorHide(); |
806 | 806 |
807 // Forces a reload for Gaia screen on hiding error message. | 807 // Forces a reload for Gaia screen on hiding error message. |
808 if (IsGaiaVisible() || IsGaiaHiddenByError()) | 808 if (IsGaiaVisible() || IsGaiaHiddenByError()) |
809 ReloadGaia(false); | 809 ReloadGaia(reason == NetworkError::ERROR_REASON_NETWORK_STATE_CHANGED); |
810 } | 810 } |
811 | 811 |
812 void SigninScreenHandler::ReloadGaia(bool force_reload) { | 812 void SigninScreenHandler::ReloadGaia(bool force_reload) { |
813 gaia_screen_handler_->ReloadGaia(force_reload); | 813 gaia_screen_handler_->ReloadGaia(force_reload); |
814 } | 814 } |
815 | 815 |
816 void SigninScreenHandler::Initialize() { | 816 void SigninScreenHandler::Initialize() { |
817 // If delegate_ is NULL here (e.g. WebUIScreenLocker has been destroyed), | 817 // If delegate_ is NULL here (e.g. WebUIScreenLocker has been destroyed), |
818 // don't do anything, just return. | 818 // don't do anything, just return. |
819 if (!delegate_) | 819 if (!delegate_) |
(...skipping 574 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1394 return gaia_screen_handler_->frame_error(); | 1394 return gaia_screen_handler_->frame_error(); |
1395 } | 1395 } |
1396 | 1396 |
1397 void SigninScreenHandler::OnCapsLockChanged(bool enabled) { | 1397 void SigninScreenHandler::OnCapsLockChanged(bool enabled) { |
1398 caps_lock_enabled_ = enabled; | 1398 caps_lock_enabled_ = enabled; |
1399 if (page_is_ready()) | 1399 if (page_is_ready()) |
1400 CallJS("login.AccountPickerScreen.setCapsLockState", caps_lock_enabled_); | 1400 CallJS("login.AccountPickerScreen.setCapsLockState", caps_lock_enabled_); |
1401 } | 1401 } |
1402 | 1402 |
1403 } // namespace chromeos | 1403 } // namespace chromeos |
OLD | NEW |