Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / chrome / browser / chromeos / login / screens / kiosk_enable_screen_actor.h
blob727d1e387db54f078efb06d9737b5be5604cfd74
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_ENABLE_SCREEN_ACTOR_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_KIOSK_ENABLE_SCREEN_ACTOR_H_
8 #include <string>
10 namespace chromeos {
12 // Interface between enable kiosk screen and its representation.
13 // Note, do not forget to call OnActorDestroyed in the dtor.
14 class KioskEnableScreenActor {
15 public:
16 // Allows us to get info from reset screen that we need.
17 class Delegate {
18 public:
19 virtual ~Delegate() {}
21 // Called when screen is exited.
22 virtual void OnExit() = 0;
24 // This method is called, when actor is being destroyed. Note, if Delegate
25 // is destroyed earlier then it has to call SetDelegate(NULL).
26 virtual void OnActorDestroyed(KioskEnableScreenActor* actor) = 0;
29 virtual ~KioskEnableScreenActor() {}
31 virtual void Show() = 0;
32 virtual void SetDelegate(Delegate* delegate) = 0;
35 } // namespace chromeos
37 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_KIOSK_ENABLE_SCREEN_ACTOR_H_