NaCl: Update revision in DEPS, r12770 -> r12773
[chromium-blink-merge.git] / chrome / browser / ui / webui / chromeos / login / reset_screen_handler.h
blobdd1ddb562f58538aafed84aa64fd42766251d8a5
1 // Copyright (c) 2012 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.
5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_RESET_SCREEN_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_RESET_SCREEN_HANDLER_H_
8 #include "base/compiler_specific.h"
9 #include "chrome/browser/chromeos/login/screens/reset_screen_actor.h"
10 #include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h"
11 #include "content/public/browser/web_ui.h"
13 namespace chromeos {
15 // WebUI implementation of ResetScreenActor.
16 class ResetScreenHandler : public ResetScreenActor,
17 public BaseScreenHandler {
18 public:
19 ResetScreenHandler();
20 virtual ~ResetScreenHandler();
22 // ResetScreenActor implementation:
23 virtual void PrepareToShow() OVERRIDE;
24 virtual void Show() OVERRIDE;
25 virtual void Hide() OVERRIDE;
26 virtual void SetDelegate(Delegate* delegate) OVERRIDE;
28 // BaseScreenHandler implementation:
29 virtual void DeclareLocalizedValues(LocalizedValuesBuilder* builder) OVERRIDE;
30 virtual void Initialize() OVERRIDE;
32 // WebUIMessageHandler implementation:
33 virtual void RegisterMessages() OVERRIDE;
35 private:
36 // JS messages handlers.
37 void HandleOnCancel();
38 void HandleOnReset();
40 Delegate* delegate_;
42 // Keeps whether screen should be shown right after initialization.
43 bool show_on_init_;
45 DISALLOW_COPY_AND_ASSIGN(ResetScreenHandler);
48 } // namespace chromeos
50 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_RESET_SCREEN_HANDLER_H_