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 910 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
921 core_oobe_actor_->ShowPasswordChangedScreen(show_password_error); | 921 core_oobe_actor_->ShowPasswordChangedScreen(show_password_error); |
922 } | 922 } |
923 | 923 |
924 void SigninScreenHandler::ShowSigninScreenForCreds( | 924 void SigninScreenHandler::ShowSigninScreenForCreds( |
925 const std::string& username, | 925 const std::string& username, |
926 const std::string& password) { | 926 const std::string& password) { |
927 DCHECK(gaia_screen_handler_); | 927 DCHECK(gaia_screen_handler_); |
928 gaia_screen_handler_->ShowSigninScreenForCreds(username, password); | 928 gaia_screen_handler_->ShowSigninScreenForCreds(username, password); |
929 } | 929 } |
930 | 930 |
| 931 void SigninScreenHandler::ShowWhitelistCheckFailedError() { |
| 932 DCHECK(gaia_screen_handler_); |
| 933 gaia_screen_handler_->ShowWhitelistCheckFailedError(); |
| 934 } |
| 935 |
931 void SigninScreenHandler::Observe(int type, | 936 void SigninScreenHandler::Observe(int type, |
932 const content::NotificationSource& source, | 937 const content::NotificationSource& source, |
933 const content::NotificationDetails& details) { | 938 const content::NotificationDetails& details) { |
934 switch (type) { | 939 switch (type) { |
935 case chrome::NOTIFICATION_AUTH_NEEDED: { | 940 case chrome::NOTIFICATION_AUTH_NEEDED: { |
936 has_pending_auth_ui_ = true; | 941 has_pending_auth_ui_ = true; |
937 break; | 942 break; |
938 } | 943 } |
939 case chrome::NOTIFICATION_AUTH_SUPPLIED: | 944 case chrome::NOTIFICATION_AUTH_SUPPLIED: |
940 has_pending_auth_ui_ = false; | 945 has_pending_auth_ui_ = false; |
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1385 return gaia_screen_handler_->frame_error(); | 1390 return gaia_screen_handler_->frame_error(); |
1386 } | 1391 } |
1387 | 1392 |
1388 void SigninScreenHandler::OnCapsLockChanged(bool enabled) { | 1393 void SigninScreenHandler::OnCapsLockChanged(bool enabled) { |
1389 caps_lock_enabled_ = enabled; | 1394 caps_lock_enabled_ = enabled; |
1390 if (page_is_ready()) | 1395 if (page_is_ready()) |
1391 CallJS("login.AccountPickerScreen.setCapsLockState", caps_lock_enabled_); | 1396 CallJS("login.AccountPickerScreen.setCapsLockState", caps_lock_enabled_); |
1392 } | 1397 } |
1393 | 1398 |
1394 } // namespace chromeos | 1399 } // namespace chromeos |
OLD | NEW |