| 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/chromeos/login/login_display_host_impl.h" | 5 #include "chrome/browser/chromeos/login/login_display_host_impl.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "ash/audio/sounds.h" | 9 #include "ash/audio/sounds.h" |
| 10 #include "ash/desktop_background/desktop_background_controller.h" | 10 #include "ash/desktop_background/desktop_background_controller.h" |
| (...skipping 639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 650 webui_login_display_->OnPreferencesChanged(); | 650 webui_login_display_->OnPreferencesChanged(); |
| 651 } | 651 } |
| 652 | 652 |
| 653 void LoginDisplayHostImpl::PrewarmAuthentication() { | 653 void LoginDisplayHostImpl::PrewarmAuthentication() { |
| 654 auth_prewarmer_.reset(new AuthPrewarmer()); | 654 auth_prewarmer_.reset(new AuthPrewarmer()); |
| 655 auth_prewarmer_->PrewarmAuthentication( | 655 auth_prewarmer_->PrewarmAuthentication( |
| 656 base::Bind(&LoginDisplayHostImpl::OnAuthPrewarmDone, | 656 base::Bind(&LoginDisplayHostImpl::OnAuthPrewarmDone, |
| 657 pointer_factory_.GetWeakPtr())); | 657 pointer_factory_.GetWeakPtr())); |
| 658 } | 658 } |
| 659 | 659 |
| 660 void LoginDisplayHostImpl::StartDemoAppLaunch() { |
| 661 LOG(WARNING) << "Login WebUI >> starting demo app."; |
| 662 SetStatusAreaVisible(false); |
| 663 |
| 664 demo_app_launcher_.reset(new DemoAppLauncher()); |
| 665 demo_app_launcher_->StartDemoAppLaunch(); |
| 666 } |
| 667 |
| 660 void LoginDisplayHostImpl::StartAppLaunch(const std::string& app_id, | 668 void LoginDisplayHostImpl::StartAppLaunch(const std::string& app_id, |
| 661 bool diagnostic_mode) { | 669 bool diagnostic_mode) { |
| 662 LOG(WARNING) << "Login WebUI >> start app launch."; | 670 LOG(WARNING) << "Login WebUI >> start app launch."; |
| 663 SetStatusAreaVisible(false); | 671 SetStatusAreaVisible(false); |
| 664 finalize_animation_type_ = ANIMATION_FADE_OUT; | 672 finalize_animation_type_ = ANIMATION_FADE_OUT; |
| 665 if (!login_window_) | 673 if (!login_window_) |
| 666 LoadURL(GURL(kAppLaunchSplashURL)); | 674 LoadURL(GURL(kAppLaunchSplashURL)); |
| 667 | 675 |
| 668 login_view_->set_should_emit_login_prompt_visible(false); | 676 login_view_->set_should_emit_login_prompt_visible(false); |
| 669 | 677 |
| (...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1190 scoped_ptr<locale_util::SwitchLanguageCallback> callback( | 1198 scoped_ptr<locale_util::SwitchLanguageCallback> callback( |
| 1191 new locale_util::SwitchLanguageCallback( | 1199 new locale_util::SwitchLanguageCallback( |
| 1192 base::Bind(&OnLanguageSwitchedCallback, base::Passed(data.Pass())))); | 1200 base::Bind(&OnLanguageSwitchedCallback, base::Passed(data.Pass())))); |
| 1193 | 1201 |
| 1194 // Load locale keyboards here. Hardware layout would be automatically enabled. | 1202 // Load locale keyboards here. Hardware layout would be automatically enabled. |
| 1195 locale_util::SwitchLanguage( | 1203 locale_util::SwitchLanguage( |
| 1196 locale, true, true /* login_layouts_only */, callback.Pass()); | 1204 locale, true, true /* login_layouts_only */, callback.Pass()); |
| 1197 } | 1205 } |
| 1198 | 1206 |
| 1199 } // namespace chromeos | 1207 } // namespace chromeos |
| OLD | NEW |