#ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_KIOSK_ENABLE_SCREEN_HANDLER_H_
#define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_KIOSK_ENABLE_SCREEN_HANDLER_H_
#include "base/compiler_specific.h"
#include "base/memory/weak_ptr.h"
#include "chrome/browser/chromeos/app_mode/kiosk_app_manager.h"
#include "chrome/browser/chromeos/login/screens/kiosk_enable_screen_actor.h"
#include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h"
namespace chromeos {
class KioskEnableScreenHandler : public KioskEnableScreenActor,
public BaseScreenHandler {
public:
KioskEnableScreenHandler();
virtual ~KioskEnableScreenHandler();
virtual void Show() OVERRIDE;
virtual void SetDelegate(Delegate* delegate) OVERRIDE;
virtual void DeclareLocalizedValues(LocalizedValuesBuilder* builder) OVERRIDE;
virtual void Initialize() OVERRIDE;
virtual void RegisterMessages() OVERRIDE;
private:
void HandleOnClose();
void HandleOnEnable();
void OnEnableConsumerKioskAutoLaunch(bool success);
void OnGetConsumerKioskAutoLaunchStatus(
KioskAppManager::ConsumerKioskAutoLaunchStatus status);
Delegate* delegate_;
bool show_on_init_;
bool is_configurable_;
base::WeakPtrFactory<KioskEnableScreenHandler> weak_ptr_factory_;
DISALLOW_COPY_AND_ASSIGN(KioskEnableScreenHandler);
};
}
#endif