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

Side by Side Diff: chrome/browser/chromeos/login/screens/arc_kiosk_splash_screen_view.h

Issue 2713513009: cros: Break BaseScreenHandler into two classes. (Closed)
Patch Set: Add comments, fix compile Created 3 years, 9 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
1 // Copyright 2017 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ARC_KIOSK_SPLASH_SCREEN_VIEW_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ARC_KIOSK_SPLASH_SCREEN_VIEW_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ARC_KIOSK_SPLASH_SCREEN_VIEW_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ARC_KIOSK_SPLASH_SCREEN_VIEW_H_
7 7
8 #include "chrome/browser/chromeos/login/oobe_screen.h"
9
8 namespace chromeos { 10 namespace chromeos {
9 11
10 // Interface for UI implemenations of the ArcKioskSplashScreen. 12 // Interface for UI implemenations of the ArcKioskSplashScreen.
11 class ArcKioskSplashScreenView { 13 class ArcKioskSplashScreenView {
12 public: 14 public:
13 enum class ArcKioskState { 15 enum class ArcKioskState {
14 STARTING_SESSION, 16 STARTING_SESSION,
15 WAITING_APP_LAUNCH, 17 WAITING_APP_LAUNCH,
16 WAITING_APP_WINDOW, 18 WAITING_APP_WINDOW,
17 }; 19 };
18 20
19 class Delegate { 21 class Delegate {
20 public: 22 public:
21 Delegate() = default; 23 Delegate() = default;
22 // Invoked when the launch bailout shortcut key is pressed. 24 // Invoked when the launch bailout shortcut key is pressed.
23 virtual void OnCancelArcKioskLaunch() = 0; 25 virtual void OnCancelArcKioskLaunch() = 0;
24 26
25 protected: 27 protected:
26 virtual ~Delegate() = default; 28 virtual ~Delegate() = default;
27 29
28 private: 30 private:
29 DISALLOW_COPY_AND_ASSIGN(Delegate); 31 DISALLOW_COPY_AND_ASSIGN(Delegate);
30 }; 32 };
31 33
34 constexpr static OobeScreen kScreenId = OobeScreen::SCREEN_ARC_KIOSK_SPLASH;
35
32 ArcKioskSplashScreenView() = default; 36 ArcKioskSplashScreenView() = default;
33 37
34 virtual ~ArcKioskSplashScreenView() = default; 38 virtual ~ArcKioskSplashScreenView() = default;
35 39
36 // Shows the contents of the screen. 40 // Shows the contents of the screen.
37 virtual void Show() = 0; 41 virtual void Show() = 0;
38 42
39 // Set the current ARC kiosk state. 43 // Set the current ARC kiosk state.
40 virtual void UpdateArcKioskState(ArcKioskState state) = 0; 44 virtual void UpdateArcKioskState(ArcKioskState state) = 0;
41 45
42 // Sets screen this view belongs to. 46 // Sets screen this view belongs to.
43 virtual void SetDelegate(Delegate* delegate) = 0; 47 virtual void SetDelegate(Delegate* delegate) = 0;
44 48
45 private: 49 private:
46 DISALLOW_COPY_AND_ASSIGN(ArcKioskSplashScreenView); 50 DISALLOW_COPY_AND_ASSIGN(ArcKioskSplashScreenView);
47 }; 51 };
48 52
49 } // namespace chromeos 53 } // namespace chromeos
50 54
51 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ARC_KIOSK_SPLASH_SCREEN_VIEW_H_ 55 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ARC_KIOSK_SPLASH_SCREEN_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698