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

Side by Side 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: 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ARC_KIOSK_SPLASH_SCREEN_ACTOR_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ARC_KIOSK_SPLASH_SCREEN_ACTOR_H_
7
8 namespace chromeos {
9
10 // Interface for UI implemenations of the ArcKioskSplashScreen.
11 class ArcKioskSplashScreenActor {
12 public:
13 enum ArcKioskState {
14 ARC_KIOSK_STATE_STARTING_SESSION,
15 ARC_KIOSK_STATE_WAITING_APP_LAUNCH,
16 ARC_KIOSK_STATE_WAITING_APP_WINDOW,
17 };
18
19 class Delegate {
20 public:
21 // Invoked when the launch bailout shortcut key is pressed.
22 virtual void OnCancelArcKioskLaunch() = 0;
23
24 protected:
25 virtual ~Delegate() {}
Luis Héctor Chávez 2017/01/24 18:40:24 nit: = default
Sergey Poromov 2017/01/25 14:29:21 Done.
26 };
27
28 virtual ~ArcKioskSplashScreenActor() {}
Luis Héctor Chávez 2017/01/24 18:40:24 nit: = default
Sergey Poromov 2017/01/25 14:29:22 Done.
29
30 // Shows the contents of the screen.
31 virtual void Show() = 0;
32
33 // Set the current ARC kiosk state.
34 virtual void UpdateArcKioskState(ArcKioskState state) = 0;
35
36 // Sets screen this actor belongs to.
37 virtual void SetDelegate(Delegate* delegate) = 0;
38 };
39
40 } // namespace chromeos
41
42 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ARC_KIOSK_SPLASH_SCREEN_ACTOR_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698