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

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: use base::Bind for timer start 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..e7979fef602d586b2bf8bd213cdc2a88f46da89e
--- /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 class ArcKioskState {
+ STARTING_SESSION,
+ WAITING_APP_LAUNCH,
+ WAITING_APP_WINDOW,
+ };
+
+ class Delegate {
+ public:
+ // Invoked when the launch bailout shortcut key is pressed.
+ virtual void OnCancelArcKioskLaunch() = 0;
+
+ protected:
+ virtual ~Delegate() = default;
achuithb 2017/02/03 00:35:00 add private DISALLOW_COPY_AND_ASSIGN
Sergey Poromov 2017/02/03 15:15:36 Done.
+ };
+
+ 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;
+};
achuithb 2017/02/03 00:35:00 Add private DISALLOW_COPY_AND_ASSIGN
Sergey Poromov 2017/02/03 15:15:36 Done.
+
+} // namespace chromeos
+
+#endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ARC_KIOSK_SPLASH_SCREEN_ACTOR_H_

Powered by Google App Engine
This is Rietveld 408576698