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

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

Issue 10928088: Factory reset screen is added (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed formatting Created 8 years, 3 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) 2012 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_RESET_SCREEN_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_RESET_SCREEN_HANDLER_H_
7
8 #include "base/compiler_specific.h"
9 #include "chrome/browser/chromeos/login/reset_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 ResetScreenActor.
21 class ResetScreenHandler : public ResetScreenActor,
22 public BaseScreenHandler {
23 public:
24 ResetScreenHandler();
25 virtual ~ResetScreenHandler();
26
27 // ResetScreenActor 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 HandleOnCancel(const base::ListValue* args);
44 void HandleOnReset(const base::ListValue* args);
45
46 Delegate* delegate_;
47
48 // Keeps whether screen should be shown right after initialization.
49 bool show_on_init_;
50
51 DISALLOW_COPY_AND_ASSIGN(ResetScreenHandler);
52 };
53
54 } // namespace chromeos
55
56 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_RESET_SCREEN_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/chromeos/login/oobe_ui.cc ('k') | chrome/browser/ui/webui/chromeos/login/reset_screen_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698