Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(223)

Side by Side Diff: chrome/browser/ui/webui/chromeos/login/controller_pairing_screen_handler.h

Issue 326933004: Example of usage of new features of context and screen. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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.
4
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_
7
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"
11
12 namespace chromeos {
13
14 class ControllerPairingScreenHandler : public ControllerPairingScreenActor,
15 public BaseScreenHandler {
16 public:
17 ControllerPairingScreenHandler();
18 virtual ~ControllerPairingScreenHandler();
19
20 private:
21 void HandleButtonClicked(const std::string& action);
22 void HandleContextChanged(const base::DictionaryValue* diff);
23 void HandleAuthenticated(const std::string& user_id);
24
25 // Overridden from BaseScreenHandler:
26 virtual void Initialize() OVERRIDE;
27 virtual void DeclareLocalizedValues(LocalizedValuesBuilder* builder) OVERRIDE;
28
29 // Overridden from content::WebUIMessageHandler:
30 virtual void RegisterMessages() OVERRIDE;
31
32 // Overridden from ControllerPairingScreenActor:
33 virtual void Show() OVERRIDE;
34 virtual void Hide() OVERRIDE;
35 virtual void SetDelegate(Delegate* delegate) OVERRIDE;
36 virtual void OnContextChanged(const base::DictionaryValue& diff) OVERRIDE;
37 virtual content::BrowserContext* GetBrowserContext() OVERRIDE;
38
39 ControllerPairingScreenActor::Delegate* delegate_;
40 bool show_on_init_;
41
42 DISALLOW_COPY_AND_ASSIGN(ControllerPairingScreenHandler);
43 };
44
45 } // namespace chromeos
46
47 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_CONTROLLER_PAIRING_SCREEN_HAND LER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698