Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / chrome / browser / ui / webui / chromeos / login / device_disabled_screen_handler.h
blobf69d0af202107a2c6f821421c85fa3a1e26e4e43
1 // Copyright 2014 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_DEVICE_DISABLED_SCREEN_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_DEVICE_DISABLED_SCREEN_HANDLER_H_
8 #include "base/macros.h"
9 #include "chrome/browser/chromeos/login/screens/device_disabled_screen_actor.h"
10 #include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h"
12 namespace chromeos {
14 // WebUI implementation of DeviceDisabledScreenActor.
15 class DeviceDisabledScreenHandler : public DeviceDisabledScreenActor,
16 public BaseScreenHandler {
17 public:
18 DeviceDisabledScreenHandler();
19 ~DeviceDisabledScreenHandler() override;
21 // DeviceDisabledScreenActor:
22 void Show() override;
23 void Hide() override;
24 void SetDelegate(Delegate* delegate) override;
25 void UpdateMessage(const std::string& message) override;
27 // BaseScreenHandler:
28 void DeclareLocalizedValues(
29 ::login::LocalizedValuesBuilder* builder) override;
30 void Initialize() override;
32 private:
33 // WebUIMessageHandler:
34 void RegisterMessages() override;
36 Delegate* delegate_;
38 // Indicates whether the screen should be shown right after initialization.
39 bool show_on_init_;
41 DISALLOW_COPY_AND_ASSIGN(DeviceDisabledScreenHandler);
44 } // namespace chromeos
46 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_DEVICE_DISABLED_SCREEN_HANDLER_H_