Popular sites on the NTP: check that experiment group StartsWith (rather than IS...
[chromium-blink-merge.git] / chrome / browser / ui / webui / chromeos / login / reset_screen_handler.h
blobaeb8fb474f01a871fa2037038bf811f3ff55372c
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;
15 namespace chromeos {
17 // WebUI implementation of ResetScreenActor.
18 class ResetScreenHandler : public ResetView,
19 public BaseScreenHandler {
20 public:
21 ResetScreenHandler();
22 ~ResetScreenHandler() override;
24 // ResetView implementation:
25 void Bind(ResetModel& model) override;
26 void Unbind() override;
27 void PrepareToShow() override;
28 void Show() override;
29 void Hide() 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);
39 private:
41 ResetModel* model_;
43 // Keeps whether screen should be shown right after initialization.
44 bool show_on_init_;
46 DISALLOW_COPY_AND_ASSIGN(ResetScreenHandler);
49 } // namespace chromeos
51 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_RESET_SCREEN_HANDLER_H_