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_view.h"
10 #include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h"
11 #include "content/public/browser/web_ui.h"
13 class PrefRegistrySimple
;
17 // WebUI implementation of ResetScreenActor.
18 class ResetScreenHandler
: public ResetView
,
19 public BaseScreenHandler
{
22 ~ResetScreenHandler() override
;
24 // ResetView implementation:
25 void Bind(ResetModel
& model
) override
;
26 void Unbind() override
;
27 void PrepareToShow() override
;
31 // BaseScreenHandler implementation:
32 void DeclareLocalizedValues(
33 ::login::LocalizedValuesBuilder
* builder
) override
;
34 void Initialize() override
;
36 // Registers Local State preferences.
37 static void RegisterPrefs(PrefRegistrySimple
* registry
);
43 // Keeps whether screen should be shown right after initialization.
46 DISALLOW_COPY_AND_ASSIGN(ResetScreenHandler
);
49 } // namespace chromeos
51 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_RESET_SCREEN_HANDLER_H_