OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 898 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
909 const base::ListValue* args) { | 909 const base::ListValue* args) { |
910 is_account_picker_showing_first_time_ = true; | 910 is_account_picker_showing_first_time_ = true; |
911 MaybePreloadAuthExtension(); | 911 MaybePreloadAuthExtension(); |
912 | 912 |
913 if (ScreenLocker::default_screen_locker()) { | 913 if (ScreenLocker::default_screen_locker()) { |
914 content::NotificationService::current()->Notify( | 914 content::NotificationService::current()->Notify( |
915 chrome::NOTIFICATION_LOCK_WEBUI_READY, | 915 chrome::NOTIFICATION_LOCK_WEBUI_READY, |
916 content::NotificationService::AllSources(), | 916 content::NotificationService::AllSources(), |
917 content::NotificationService::NoDetails()); | 917 content::NotificationService::NoDetails()); |
918 } | 918 } |
919 | |
920 content::NotificationService::current()->Notify( | |
Nikita (slow)
2012/05/16 15:56:13
I don't think that you need that new notification,
bartfab (slow)
2012/05/16 18:07:10
Done.
| |
921 chrome::NOTIFICATION_ACCOUNT_PICKER_WEBUI_READY, | |
922 content::NotificationService::AllSources(), | |
923 content::NotificationService::NoDetails()); | |
919 } | 924 } |
920 | 925 |
921 void SigninScreenHandler::HandleLoginWebuiReady(const base::ListValue* args) { | 926 void SigninScreenHandler::HandleLoginWebuiReady(const base::ListValue* args) { |
922 if (focus_stolen_) { | 927 if (focus_stolen_) { |
923 // Set focus to the Gaia page. | 928 // Set focus to the Gaia page. |
924 // TODO(altimofeev): temporary solution, until focus parameters are | 929 // TODO(altimofeev): temporary solution, until focus parameters are |
925 // implemented on the Gaia side. | 930 // implemented on the Gaia side. |
926 // Do this only once. Any subsequent call would relod GAIA frame. | 931 // Do this only once. Any subsequent call would relod GAIA frame. |
927 focus_stolen_ = false; | 932 focus_stolen_ = false; |
928 const char code[] = "gWindowOnLoad();"; | 933 const char code[] = "gWindowOnLoad();"; |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
982 } | 987 } |
983 | 988 |
984 void SigninScreenHandler::HandleSignOutUser(const base::ListValue* args) { | 989 void SigninScreenHandler::HandleSignOutUser(const base::ListValue* args) { |
985 if (!delegate_) | 990 if (!delegate_) |
986 return; | 991 return; |
987 delegate_->Signout(); | 992 delegate_->Signout(); |
988 } | 993 } |
989 | 994 |
990 void SigninScreenHandler::HandleUserImagesLoaded(const base::ListValue* args) { | 995 void SigninScreenHandler::HandleUserImagesLoaded(const base::ListValue* args) { |
991 content::NotificationService::current()->Notify( | 996 content::NotificationService::current()->Notify( |
992 chrome::NOTIFICATION_LOGIN_USER_IMAGES_LOADED, | 997 chrome::NOTIFICATION_LOGIN_USER_IMAGES_LOADED, |
Nikita (slow)
2012/05/16 15:56:13
This one is almost the same notification. It is ca
bartfab (slow)
2012/05/16 18:07:10
Done.
| |
993 content::NotificationService::AllSources(), | 998 content::NotificationService::AllSources(), |
994 content::NotificationService::NoDetails()); | 999 content::NotificationService::NoDetails()); |
995 } | 1000 } |
996 | 1001 |
997 void SigninScreenHandler::HandleNetworkErrorShown(const base::ListValue* args) { | 1002 void SigninScreenHandler::HandleNetworkErrorShown(const base::ListValue* args) { |
998 content::NotificationService::current()->Notify( | 1003 content::NotificationService::current()->Notify( |
999 chrome::NOTIFICATION_LOGIN_NETWORK_ERROR_SHOWN, | 1004 chrome::NOTIFICATION_LOGIN_NETWORK_ERROR_SHOWN, |
1000 content::NotificationService::AllSources(), | 1005 content::NotificationService::AllSources(), |
1001 content::NotificationService::NoDetails()); | 1006 content::NotificationService::NoDetails()); |
1002 } | 1007 } |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1050 !dns_clear_task_running_ && | 1055 !dns_clear_task_running_ && |
1051 network_state_informer_->is_online()) { | 1056 network_state_informer_->is_online()) { |
1052 gaia_silent_load_ = true; | 1057 gaia_silent_load_ = true; |
1053 gaia_silent_load_network_ = | 1058 gaia_silent_load_network_ = |
1054 network_state_informer_->active_network_service_path(); | 1059 network_state_informer_->active_network_service_path(); |
1055 LoadAuthExtension(true, true, false); | 1060 LoadAuthExtension(true, true, false); |
1056 } | 1061 } |
1057 } | 1062 } |
1058 | 1063 |
1059 } // namespace chromeos | 1064 } // namespace chromeos |
OLD | NEW |