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 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
409 else | 409 else |
410 auto_enrollment_progress_subscription_.reset(); | 410 auto_enrollment_progress_subscription_.reset(); |
411 } | 411 } |
412 | 412 |
413 void SigninScreenHandler::SetNativeWindowDelegate( | 413 void SigninScreenHandler::SetNativeWindowDelegate( |
414 NativeWindowDelegate* native_window_delegate) { | 414 NativeWindowDelegate* native_window_delegate) { |
415 native_window_delegate_ = native_window_delegate; | 415 native_window_delegate_ = native_window_delegate; |
416 } | 416 } |
417 | 417 |
418 void SigninScreenHandler::OnNetworkReady() { | 418 void SigninScreenHandler::OnNetworkReady() { |
419 LOG(WARNING) << "OnNetworkReady() call."; | 419 VLOG(1) << "OnNetworkReady() call."; |
420 DCHECK(gaia_screen_handler_); | 420 DCHECK(gaia_screen_handler_); |
421 gaia_screen_handler_->MaybePreloadAuthExtension(); | 421 gaia_screen_handler_->MaybePreloadAuthExtension(); |
422 } | 422 } |
423 | 423 |
424 void SigninScreenHandler::UpdateState(ErrorScreenActor::ErrorReason reason) { | 424 void SigninScreenHandler::UpdateState(ErrorScreenActor::ErrorReason reason) { |
425 UpdateStateInternal(reason, false); | 425 UpdateStateInternal(reason, false); |
426 } | 426 } |
427 | 427 |
428 // SigninScreenHandler, private: ----------------------------------------------- | 428 // SigninScreenHandler, private: ----------------------------------------------- |
429 | 429 |
(...skipping 719 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1149 void SigninScreenHandler::HandleCreateAccount() { | 1149 void SigninScreenHandler::HandleCreateAccount() { |
1150 if (delegate_) | 1150 if (delegate_) |
1151 delegate_->CreateAccount(); | 1151 delegate_->CreateAccount(); |
1152 } | 1152 } |
1153 | 1153 |
1154 void SigninScreenHandler::HandleOpenProxySettings() { | 1154 void SigninScreenHandler::HandleOpenProxySettings() { |
1155 LoginDisplayHostImpl::default_host()->OpenProxySettings(); | 1155 LoginDisplayHostImpl::default_host()->OpenProxySettings(); |
1156 } | 1156 } |
1157 | 1157 |
1158 void SigninScreenHandler::HandleLoginVisible(const std::string& source) { | 1158 void SigninScreenHandler::HandleLoginVisible(const std::string& source) { |
1159 LOG(WARNING) << "Login WebUI >> loginVisible, src: " << source << ", " | 1159 VLOG(1) << "Login WebUI >> loginVisible, src: " << source << ", " |
1160 << "webui_visible_: " << webui_visible_; | 1160 << "webui_visible_: " << webui_visible_; |
1161 if (!webui_visible_) { | 1161 if (!webui_visible_) { |
1162 // There might be multiple messages from OOBE UI so send notifications after | 1162 // There might be multiple messages from OOBE UI so send notifications after |
1163 // the first one only. | 1163 // the first one only. |
1164 content::NotificationService::current()->Notify( | 1164 content::NotificationService::current()->Notify( |
1165 chrome::NOTIFICATION_LOGIN_OR_LOCK_WEBUI_VISIBLE, | 1165 chrome::NOTIFICATION_LOGIN_OR_LOCK_WEBUI_VISIBLE, |
1166 content::NotificationService::AllSources(), | 1166 content::NotificationService::AllSources(), |
1167 content::NotificationService::NoDetails()); | 1167 content::NotificationService::NoDetails()); |
1168 TRACE_EVENT_ASYNC_END0( | 1168 TRACE_EVENT_ASYNC_END0( |
1169 "ui", "ShowLoginWebUI", LoginDisplayHostImpl::kShowLoginWebUIid); | 1169 "ui", "ShowLoginWebUI", LoginDisplayHostImpl::kShowLoginWebUIid); |
1170 } | 1170 } |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1378 return gaia_screen_handler_->frame_error(); | 1378 return gaia_screen_handler_->frame_error(); |
1379 } | 1379 } |
1380 | 1380 |
1381 void SigninScreenHandler::OnCapsLockChanged(bool enabled) { | 1381 void SigninScreenHandler::OnCapsLockChanged(bool enabled) { |
1382 caps_lock_enabled_ = enabled; | 1382 caps_lock_enabled_ = enabled; |
1383 if (page_is_ready()) | 1383 if (page_is_ready()) |
1384 CallJS("login.AccountPickerScreen.setCapsLockState", caps_lock_enabled_); | 1384 CallJS("login.AccountPickerScreen.setCapsLockState", caps_lock_enabled_); |
1385 } | 1385 } |
1386 | 1386 |
1387 } // namespace chromeos | 1387 } // namespace chromeos |
OLD | NEW |