Add new certificateProvider extension API.
[chromium-blink-merge.git] / chrome / browser / ui / webui / chromeos / login / controller_pairing_screen_handler.h
blobea1038ee6bcbf72a044a9b2d742d7ce590c74486
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_CONTROLLER_PAIRING_SCREEN_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_CONTROLLER_PAIRING_SCREEN_HANDLER_H_
8 #include "base/macros.h"
9 #include "chrome/browser/chromeos/login/screens/controller_pairing_screen_actor.h"
10 #include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h"
12 namespace chromeos {
14 class ControllerPairingScreenHandler : public ControllerPairingScreenActor,
15 public BaseScreenHandler {
16 public:
17 ControllerPairingScreenHandler();
18 ~ControllerPairingScreenHandler() override;
20 private:
21 void HandleUserActed(const std::string& action);
22 void HandleContextChanged(const base::DictionaryValue* diff);
24 // Overridden from BaseScreenHandler:
25 void Initialize() override;
26 void DeclareLocalizedValues(
27 ::login::LocalizedValuesBuilder* builder) override;
29 // Overridden from content::WebUIMessageHandler:
30 void RegisterMessages() override;
32 // Overridden from ControllerPairingScreenActor:
33 void Show() override;
34 void Hide() override;
35 void SetDelegate(Delegate* delegate) override;
36 void OnContextChanged(const base::DictionaryValue& diff) override;
37 content::BrowserContext* GetBrowserContext() override;
39 ControllerPairingScreenActor::Delegate* delegate_;
40 bool show_on_init_;
42 DISALLOW_COPY_AND_ASSIGN(ControllerPairingScreenHandler);
45 } // namespace chromeos
47 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_CONTROLLER_PAIRING_SCREEN_HANDLER_H_