| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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/app_launch_splash_screen_handle
r.h" | 5 #include "chrome/browser/ui/webui/chromeos/login/app_launch_splash_screen_handle
r.h" |
| 6 | 6 |
| 7 #include "chrome/browser/chromeos/app_mode/kiosk_app_manager.h" | 7 #include "chrome/browser/chromeos/app_mode/kiosk_app_manager.h" |
| 8 #include "chrome/browser/chromeos/login/screens/network_error.h" | 8 #include "chrome/browser/chromeos/login/screens/network_error.h" |
| 9 #include "chrome/browser/ui/webui/chromeos/login/oobe_screen.h" | 9 #include "chrome/browser/ui/webui/chromeos/login/oobe_screen.h" |
| 10 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" | 10 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 AddCallback("configureNetwork", | 103 AddCallback("configureNetwork", |
| 104 &AppLaunchSplashScreenHandler::HandleConfigureNetwork); | 104 &AppLaunchSplashScreenHandler::HandleConfigureNetwork); |
| 105 AddCallback("cancelAppLaunch", | 105 AddCallback("cancelAppLaunch", |
| 106 &AppLaunchSplashScreenHandler::HandleCancelAppLaunch); | 106 &AppLaunchSplashScreenHandler::HandleCancelAppLaunch); |
| 107 AddCallback("continueAppLaunch", | 107 AddCallback("continueAppLaunch", |
| 108 &AppLaunchSplashScreenHandler::HandleContinueAppLaunch); | 108 &AppLaunchSplashScreenHandler::HandleContinueAppLaunch); |
| 109 AddCallback("networkConfigRequest", | 109 AddCallback("networkConfigRequest", |
| 110 &AppLaunchSplashScreenHandler::HandleNetworkConfigRequested); | 110 &AppLaunchSplashScreenHandler::HandleNetworkConfigRequested); |
| 111 } | 111 } |
| 112 | 112 |
| 113 void AppLaunchSplashScreenHandler::PrepareToShow() { | |
| 114 } | |
| 115 | |
| 116 void AppLaunchSplashScreenHandler::Hide() { | 113 void AppLaunchSplashScreenHandler::Hide() { |
| 117 } | 114 } |
| 118 | 115 |
| 119 void AppLaunchSplashScreenHandler::ToggleNetworkConfig(bool visible) { | 116 void AppLaunchSplashScreenHandler::ToggleNetworkConfig(bool visible) { |
| 120 CallJS("toggleNetworkConfig", visible); | 117 CallJS("toggleNetworkConfig", visible); |
| 121 } | 118 } |
| 122 | 119 |
| 123 void AppLaunchSplashScreenHandler::UpdateAppLaunchState(AppLaunchState state) { | 120 void AppLaunchSplashScreenHandler::UpdateAppLaunchState(AppLaunchState state) { |
| 124 if (state == state_) | 121 if (state == state_) |
| 125 return; | 122 return; |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 DCHECK(online_state_); | 278 DCHECK(online_state_); |
| 282 if (delegate_ && online_state_) { | 279 if (delegate_ && online_state_) { |
| 283 network_config_requested_ = false; | 280 network_config_requested_ = false; |
| 284 network_config_done_ = true; | 281 network_config_done_ = true; |
| 285 delegate_->OnNetworkConfigRequested(false); | 282 delegate_->OnNetworkConfigRequested(false); |
| 286 Show(app_id_); | 283 Show(app_id_); |
| 287 } | 284 } |
| 288 } | 285 } |
| 289 | 286 |
| 290 } // namespace chromeos | 287 } // namespace chromeos |
| OLD | NEW |