| 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_
|
|
|