OLD | NEW |
| (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 class ArcKioskState { | |
14 STARTING_SESSION, | |
15 WAITING_APP_LAUNCH, | |
16 WAITING_APP_WINDOW, | |
17 }; | |
18 | |
19 class Delegate { | |
20 public: | |
21 Delegate() = default; | |
22 // Invoked when the launch bailout shortcut key is pressed. | |
23 virtual void OnCancelArcKioskLaunch() = 0; | |
24 | |
25 protected: | |
26 virtual ~Delegate() = default; | |
27 | |
28 private: | |
29 DISALLOW_COPY_AND_ASSIGN(Delegate); | |
30 }; | |
31 | |
32 ArcKioskSplashScreenActor() = default; | |
33 | |
34 virtual ~ArcKioskSplashScreenActor() = default; | |
35 | |
36 // Shows the contents of the screen. | |
37 virtual void Show() = 0; | |
38 | |
39 // Set the current ARC kiosk state. | |
40 virtual void UpdateArcKioskState(ArcKioskState state) = 0; | |
41 | |
42 // Sets screen this actor belongs to. | |
43 virtual void SetDelegate(Delegate* delegate) = 0; | |
44 | |
45 private: | |
46 DISALLOW_COPY_AND_ASSIGN(ArcKioskSplashScreenActor); | |
47 }; | |
48 | |
49 } // namespace chromeos | |
50 | |
51 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ARC_KIOSK_SPLASH_SCREEN_ACTOR_H
_ | |
OLD | NEW |