#ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_KIOSK_APP_MENU_HANDLER_H_
#define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_KIOSK_APP_MENU_HANDLER_H_
#include <string>
#include "base/compiler_specific.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "chrome/browser/chromeos/app_mode/kiosk_app_manager.h"
#include "chrome/browser/chromeos/app_mode/kiosk_app_manager_observer.h"
#include "content/public/browser/web_ui_message_handler.h"
namespace chromeos {
class KioskAppMenuHandler : public content::WebUIMessageHandler,
public KioskAppManagerObserver {
public:
KioskAppMenuHandler();
virtual ~KioskAppMenuHandler();
void GetLocalizedStrings(base::DictionaryValue* localized_strings);
virtual void RegisterMessages() OVERRIDE;
private:
void SendKioskApps();
void HandleInitializeKioskApps(const base::ListValue* args);
void HandleKioskAppsLoaded(const base::ListValue* args);
void HandleCheckKioskAppLaunchError(const base::ListValue* args);
virtual void OnKioskAppsSettingsChanged() OVERRIDE;
virtual void OnKioskAppDataChanged(const std::string& app_id) OVERRIDE;
base::WeakPtrFactory<KioskAppMenuHandler> weak_ptr_factory_;
bool is_webui_initialized_;
DISALLOW_COPY_AND_ASSIGN(KioskAppMenuHandler);
};
}
#endif