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"
14 class ControllerPairingScreenHandler
: public ControllerPairingScreenActor
,
15 public BaseScreenHandler
{
17 ControllerPairingScreenHandler();
18 ~ControllerPairingScreenHandler() override
;
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:
35 void SetDelegate(Delegate
* delegate
) override
;
36 void OnContextChanged(const base::DictionaryValue
& diff
) override
;
37 content::BrowserContext
* GetBrowserContext() override
;
39 ControllerPairingScreenActor::Delegate
* delegate_
;
42 DISALLOW_COPY_AND_ASSIGN(ControllerPairingScreenHandler
);
45 } // namespace chromeos
47 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_CONTROLLER_PAIRING_SCREEN_HANDLER_H_