Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / chrome / browser / chromeos / login / screens / kiosk_autolaunch_screen.h
blob9814191a89b3823e4910c34619802883de8bb698
1 // Copyright 2013 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.
5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_KIOSK_AUTOLAUNCH_SCREEN_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_KIOSK_AUTOLAUNCH_SCREEN_H_
8 #include <string>
10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h"
12 #include "chrome/browser/chromeos/login/screens/base_screen.h"
13 #include "chrome/browser/chromeos/login/screens/kiosk_autolaunch_screen_actor.h"
15 namespace chromeos {
17 // Representation independent class that controls screen showing auto launch
18 // warning to users.
19 class KioskAutolaunchScreen : public BaseScreen,
20 public KioskAutolaunchScreenActor::Delegate {
21 public:
22 KioskAutolaunchScreen(BaseScreenDelegate* base_screen_delegate,
23 KioskAutolaunchScreenActor* actor);
24 ~KioskAutolaunchScreen() override;
26 // BaseScreen implementation:
27 void PrepareToShow() override {}
28 void Show() override;
29 void Hide() override {}
30 std::string GetName() const override;
32 // KioskAutolaunchScreenActor::Delegate implementation:
33 void OnExit(bool confirmed) override;
34 void OnActorDestroyed(KioskAutolaunchScreenActor* actor) override;
36 private:
37 KioskAutolaunchScreenActor* actor_;
39 DISALLOW_COPY_AND_ASSIGN(KioskAutolaunchScreen);
42 } // namespace chromeos
44 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_KIOSK_AUTOLAUNCH_SCREEN_H_