kiosk_enable_screen.h revision 7d4cd473f85ac64c3747c96c277f9e506a0d2246
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. 4 5#ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_KIOSK_ENABLE_SCREEN_H_ 6#define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_KIOSK_ENABLE_SCREEN_H_ 7 8#include <string> 9 10#include "base/basictypes.h" 11#include "base/compiler_specific.h" 12#include "chrome/browser/chromeos/login/screens/kiosk_enable_screen_actor.h" 13#include "chrome/browser/chromeos/login/screens/wizard_screen.h" 14 15namespace chromeos { 16 17// Representation independent class that controls screen for enabling 18// consumer kiosk mode. 19class KioskEnableScreen : public WizardScreen, 20 public KioskEnableScreenActor::Delegate { 21 public: 22 KioskEnableScreen(ScreenObserver* observer, KioskEnableScreenActor* actor); 23 virtual ~KioskEnableScreen(); 24 25 // WizardScreen implementation: 26 virtual void PrepareToShow() OVERRIDE {} 27 virtual void Show() OVERRIDE; 28 virtual void Hide() OVERRIDE {} 29 virtual std::string GetName() const OVERRIDE; 30 31 // KioskEnableScreenActor::Delegate implementation: 32 virtual void OnExit() OVERRIDE; 33 virtual void OnActorDestroyed(KioskEnableScreenActor* actor) OVERRIDE; 34 35 private: 36 KioskEnableScreenActor* actor_; 37 38 DISALLOW_COPY_AND_ASSIGN(KioskEnableScreen); 39}; 40 41} // namespace chromeos 42 43#endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_KIOSK_ENABLE_SCREEN_H_ 44