#ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_KIOSK_AUTOLAUNCH_SCREEN_HANDLER_H_
#define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_KIOSK_AUTOLAUNCH_SCREEN_HANDLER_H_
#include "base/compiler_specific.h"
#include "chrome/browser/chromeos/app_mode/kiosk_app_manager_observer.h"
#include "chrome/browser/chromeos/login/screens/kiosk_autolaunch_screen_actor.h"
#include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h"
#include "content/public/browser/web_ui.h"
namespace chromeos {
class KioskAutolaunchScreenHandler : public KioskAutolaunchScreenActor,
public KioskAppManagerObserver,
public BaseScreenHandler {
public:
KioskAutolaunchScreenHandler();
virtual ~KioskAutolaunchScreenHandler();
virtual void Show() OVERRIDE;
virtual void SetDelegate(Delegate* delegate) OVERRIDE;
virtual void OnKioskAppsSettingsChanged() OVERRIDE;
virtual void OnKioskAppDataChanged(const std::string& app_id) OVERRIDE;
virtual void DeclareLocalizedValues(LocalizedValuesBuilder* builder) OVERRIDE;
virtual void Initialize() OVERRIDE;
virtual void RegisterMessages() OVERRIDE;
private:
void UpdateKioskApp();
void HandleOnCancel();
void HandleOnConfirm();
void HandleOnVisible();
Delegate* delegate_;
bool show_on_init_;
bool is_visible_;
DISALLOW_COPY_AND_ASSIGN(KioskAutolaunchScreenHandler);
};
}
#endif