| Index: chrome/browser/ui/webui/chromeos/login/reset_screen_handler.h
|
| diff --git a/chrome/browser/ui/webui/chromeos/login/reset_screen_handler.h b/chrome/browser/ui/webui/chromeos/login/reset_screen_handler.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..925ff28f203dd5290a1882599d383200334d96d3
|
| --- /dev/null
|
| +++ b/chrome/browser/ui/webui/chromeos/login/reset_screen_handler.h
|
| @@ -0,0 +1,56 @@
|
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_RESET_SCREEN_HANDLER_H_
|
| +#define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_RESET_SCREEN_HANDLER_H_
|
| +
|
| +#include "base/compiler_specific.h"
|
| +#include "chrome/browser/chromeos/login/reset_screen_actor.h"
|
| +#include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h"
|
| +#include "content/public/browser/web_ui.h"
|
| +
|
| +namespace base {
|
| +class DictionaryValue;
|
| +class ListValue;
|
| +}
|
| +
|
| +namespace chromeos {
|
| +
|
| +// WebUI implementation of ResetScreenActor.
|
| +class ResetScreenHandler : public ResetScreenActor,
|
| + public BaseScreenHandler {
|
| + public:
|
| + ResetScreenHandler();
|
| + virtual ~ResetScreenHandler();
|
| +
|
| + // ResetScreenActor implementation:
|
| + virtual void PrepareToShow() OVERRIDE;
|
| + virtual void Show() OVERRIDE;
|
| + virtual void Hide() OVERRIDE;
|
| + virtual void SetDelegate(Delegate* delegate) OVERRIDE;
|
| +
|
| + // BaseScreenHandler implementation:
|
| + virtual void GetLocalizedStrings(
|
| + base::DictionaryValue* localized_strings) OVERRIDE;
|
| + virtual void Initialize() OVERRIDE;
|
| +
|
| + // WebUIMessageHandler implementation:
|
| + virtual void RegisterMessages() OVERRIDE;
|
| +
|
| + private:
|
| + // JS messages handlers.
|
| + void HandleOnCancel(const base::ListValue* args);
|
| + void HandleOnReset(const base::ListValue* args);
|
| +
|
| + Delegate* delegate_;
|
| +
|
| + // Keeps whether screen should be shown right after initialization.
|
| + bool show_on_init_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(ResetScreenHandler);
|
| +};
|
| +
|
| +} // namespace chromeos
|
| +
|
| +#endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_RESET_SCREEN_HANDLER_H_
|
|
|