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

Unified Diff: chrome/browser/chromeos/login/screens/arc_kiosk_splash_screen_actor.h

Issue 2649103006: arc: Add splash screen for ARC++ Kiosk startup (Closed)
Patch Set: fix comments - better use of base::Time 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/screens/arc_kiosk_splash_screen_actor.h
diff --git a/chrome/browser/chromeos/login/screens/arc_kiosk_splash_screen_actor.h b/chrome/browser/chromeos/login/screens/arc_kiosk_splash_screen_actor.h
new file mode 100644
index 0000000000000000000000000000000000000000..6ea75830e17fcd84e2895279973936f9ac6c67a4
--- /dev/null
+++ b/chrome/browser/chromeos/login/screens/arc_kiosk_splash_screen_actor.h
@@ -0,0 +1,42 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ARC_KIOSK_SPLASH_SCREEN_ACTOR_H_
+#define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ARC_KIOSK_SPLASH_SCREEN_ACTOR_H_
+
+namespace chromeos {
+
+// Interface for UI implemenations of the ArcKioskSplashScreen.
+class ArcKioskSplashScreenActor {
+ public:
+ enum ArcKioskState {
Luis Héctor Chávez 2017/01/26 17:37:45 nit: enum class And since you are now forced to u
Sergey Poromov 2017/01/26 18:30:22 Done.
+ ARC_KIOSK_STATE_STARTING_SESSION,
+ ARC_KIOSK_STATE_WAITING_APP_LAUNCH,
+ ARC_KIOSK_STATE_WAITING_APP_WINDOW,
+ };
+
+ class Delegate {
+ public:
+ // Invoked when the launch bailout shortcut key is pressed.
+ virtual void OnCancelArcKioskLaunch() = 0;
+
+ protected:
+ virtual ~Delegate() = default;
+ };
+
+ virtual ~ArcKioskSplashScreenActor() = default;
+
+ // Shows the contents of the screen.
+ virtual void Show() = 0;
+
+ // Set the current ARC kiosk state.
+ virtual void UpdateArcKioskState(ArcKioskState state) = 0;
+
+ // Sets screen this actor belongs to.
+ virtual void SetDelegate(Delegate* delegate) = 0;
+};
+
+} // namespace chromeos
+
+#endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ARC_KIOSK_SPLASH_SCREEN_ACTOR_H_

Powered by Google App Engine
This is Rietveld 408576698