Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(271)

Unified Diff: chrome/browser/chromeos/login/ui/login_display_host_impl.cc

Issue 2649103006: arc: Add splash screen for ARC++ Kiosk startup (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/login/ui/login_display_host_impl.cc
diff --git a/chrome/browser/chromeos/login/ui/login_display_host_impl.cc b/chrome/browser/chromeos/login/ui/login_display_host_impl.cc
index d14718a07fa62b1e359f2e849d93c037af3049e2..bb2ecb942062e732fa0ffdc44a365a9c44318134 100644
--- a/chrome/browser/chromeos/login/ui/login_display_host_impl.cc
+++ b/chrome/browser/chromeos/login/ui/login_display_host_impl.cc
@@ -126,6 +126,9 @@ const char kUserAddingURL[] = "chrome://oobe/user-adding";
// URL which corresponds to the app launch splash WebUI.
const char kAppLaunchSplashURL[] = "chrome://oobe/app-launch-splash";
+// URL which corresponds to the ARC kiosk splash WebUI.
+const char kArcKioskSplashURL[] = "chrome://oobe/arc-kiosk-splash";
+
// Duration of sign-in transition animation.
const int kLoginFadeoutTransitionDurationMs = 700;
@@ -784,6 +787,25 @@ void LoginDisplayHostImpl::StartAppLaunch(const std::string& app_id,
app_launch_controller_->StartAppLaunch(auto_launch);
}
+void LoginDisplayHostImpl::StartArcKiosk(const AccountId& account_id) {
+ VLOG(1) << "Login WebUI >> start ARC kiosk.";
+ SetStatusAreaVisible(false);
+
+ // Animation is not supported in Mash.
+ if (!chrome::IsRunningInMash())
+ finalize_animation_type_ = ANIMATION_FADE_OUT;
+ if (!login_window_) {
+ LoadURL(GURL(kAppLaunchSplashURL));
+ LoadURL(GURL(kArcKioskSplashURL));
+ }
+
+ login_view_->set_should_emit_login_prompt_visible(false);
+
+ arc_kiosk_controller_.reset(new ArcKioskController(this, GetOobeUI()));
+
+ arc_kiosk_controller_->StartArcKiosk(account_id);
+}
+
////////////////////////////////////////////////////////////////////////////////
// LoginDisplayHostImpl, public

Powered by Google App Engine
This is Rietveld 408576698