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

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

Issue 12213110: Implemented screen notifying users about malformed HWID. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Implemented wizard controller test. Created 7 years, 10 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 (c) 2013 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_WRONG_HWID_SCREEN_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_WRONG_HWID_SCREEN_HANDLER_H_
7
8 #include "base/compiler_specific.h"
9 #include "chrome/browser/chromeos/login/wrong_hwid_screen_actor.h"
10 #include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h"
11 #include "content/public/browser/web_ui.h"
12
13 namespace base {
14 class DictionaryValue;
15 class ListValue;
16 }
17
18 namespace chromeos {
19
20 // WebUI implementation of WrongHWIDScreenActor.
21 class WrongHWIDScreenHandler : public WrongHWIDScreenActor,
22 public BaseScreenHandler {
23 public:
24 WrongHWIDScreenHandler();
25 virtual ~WrongHWIDScreenHandler();
26
27 // WrongHWIDScreenActor implementation:
28 virtual void PrepareToShow() OVERRIDE;
29 virtual void Show() OVERRIDE;
30 virtual void Hide() OVERRIDE;
31 virtual void SetDelegate(Delegate* delegate) OVERRIDE;
32
33 // BaseScreenHandler implementation:
34 virtual void GetLocalizedStrings(
35 base::DictionaryValue* localized_strings) OVERRIDE;
36 virtual void Initialize() OVERRIDE;
37
38 // WebUIMessageHandler implementation:
39 virtual void RegisterMessages() OVERRIDE;
40
41 private:
42 // JS messages handlers.
43 void HandleOnSkip(const base::ListValue* args);
44
45 Delegate* delegate_;
46
47 // Keeps whether screen should be shown right after initialization.
48 bool show_on_init_;
49
50 DISALLOW_COPY_AND_ASSIGN(WrongHWIDScreenHandler);
51 };
52
53 } // namespace chromeos
54
55 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_WRONG_HWID_SCREEN_HANDLER_H_
56
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698