Chromium Code Reviews| 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_ |