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

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: achuithb@ comments Created 3 years, 10 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..b6a8c85d47507a66a7a17d1ed1d2378e6c90dc5c
--- /dev/null
+++ b/chrome/browser/chromeos/login/screens/arc_kiosk_splash_screen_actor.h
@@ -0,0 +1,51 @@
+// 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:
+ Delegate() = default;
+ // Invoked when the launch bailout shortcut key is pressed.
+ virtual void OnCancelArcKioskLaunch() = 0;
+
+ protected:
+ virtual ~Delegate() = default;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(Delegate);
+ };
+
+ ArcKioskSplashScreenActor() = 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;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(ArcKioskSplashScreenActor);
+};
+
+} // namespace chromeos
+
+#endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ARC_KIOSK_SPLASH_SCREEN_ACTOR_H_
« no previous file with comments | « chrome/browser/chromeos/login/oobe_screen.cc ('k') | chrome/browser/chromeos/login/session/user_session_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698