OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 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_KIOSK_AUTOLAUNCH_SCREEN_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_KIOSK_AUTOLAUNCH_SCREEN_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_KIOSK_AUTOLAUNCH_SCREEN_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_KIOSK_AUTOLAUNCH_SCREEN_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "chrome/browser/chromeos/login/screens/base_screen.h" | 12 #include "chrome/browser/chromeos/login/screens/base_screen.h" |
13 #include "chrome/browser/chromeos/login/screens/kiosk_autolaunch_screen_actor.h" | 13 #include "chrome/browser/chromeos/login/screens/kiosk_autolaunch_screen_view.h" |
14 | 14 |
15 namespace chromeos { | 15 namespace chromeos { |
16 | 16 |
17 // Representation independent class that controls screen showing auto launch | 17 // Representation independent class that controls screen showing auto launch |
18 // warning to users. | 18 // warning to users. |
19 class KioskAutolaunchScreen : public BaseScreen, | 19 class KioskAutolaunchScreen : public BaseScreen, |
20 public KioskAutolaunchScreenActor::Delegate { | 20 public KioskAutolaunchScreenView::Delegate { |
21 public: | 21 public: |
22 KioskAutolaunchScreen(BaseScreenDelegate* base_screen_delegate, | 22 KioskAutolaunchScreen(BaseScreenDelegate* base_screen_delegate, |
23 KioskAutolaunchScreenActor* actor); | 23 KioskAutolaunchScreenView* view); |
24 ~KioskAutolaunchScreen() override; | 24 ~KioskAutolaunchScreen() override; |
25 | 25 |
26 // BaseScreen implementation: | 26 // BaseScreen implementation: |
27 void Show() override; | 27 void Show() override; |
28 void Hide() override {} | 28 void Hide() override {} |
29 | 29 |
30 // KioskAutolaunchScreenActor::Delegate implementation: | 30 // KioskAutolaunchScreenActor::Delegate implementation: |
31 void OnExit(bool confirmed) override; | 31 void OnExit(bool confirmed) override; |
32 void OnActorDestroyed(KioskAutolaunchScreenActor* actor) override; | 32 void OnViewDestroyed(KioskAutolaunchScreenView* view) override; |
33 | 33 |
34 private: | 34 private: |
35 KioskAutolaunchScreenActor* actor_; | 35 KioskAutolaunchScreenView* view_; |
36 | 36 |
37 DISALLOW_COPY_AND_ASSIGN(KioskAutolaunchScreen); | 37 DISALLOW_COPY_AND_ASSIGN(KioskAutolaunchScreen); |
38 }; | 38 }; |
39 | 39 |
40 } // namespace chromeos | 40 } // namespace chromeos |
41 | 41 |
42 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_KIOSK_AUTOLAUNCH_SCREEN_H_ | 42 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_KIOSK_AUTOLAUNCH_SCREEN_H_ |
OLD | NEW |