OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_RESET_SCREEN_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_RESET_SCREEN_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_RESET_SCREEN_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_RESET_SCREEN_HANDLER_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "chrome/browser/chromeos/login/reset_screen_actor.h" | 9 #include "chrome/browser/chromeos/login/reset_screen_actor.h" |
10 #include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h" | 10 #include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h" |
(...skipping 21 matching lines...) Expand all Loading... |
32 | 32 |
33 // BaseScreenHandler implementation: | 33 // BaseScreenHandler implementation: |
34 virtual void DeclareLocalizedValues(LocalizedValuesBuilder* builder) OVERRIDE; | 34 virtual void DeclareLocalizedValues(LocalizedValuesBuilder* builder) OVERRIDE; |
35 virtual void Initialize() OVERRIDE; | 35 virtual void Initialize() OVERRIDE; |
36 | 36 |
37 // WebUIMessageHandler implementation: | 37 // WebUIMessageHandler implementation: |
38 virtual void RegisterMessages() OVERRIDE; | 38 virtual void RegisterMessages() OVERRIDE; |
39 | 39 |
40 private: | 40 private: |
41 // JS messages handlers. | 41 // JS messages handlers. |
42 void HandleOnCancel(const base::ListValue* args); | 42 void HandleOnCancel(); |
43 void HandleOnReset(const base::ListValue* args); | 43 void HandleOnReset(); |
44 | 44 |
45 Delegate* delegate_; | 45 Delegate* delegate_; |
46 | 46 |
47 // Keeps whether screen should be shown right after initialization. | 47 // Keeps whether screen should be shown right after initialization. |
48 bool show_on_init_; | 48 bool show_on_init_; |
49 | 49 |
50 DISALLOW_COPY_AND_ASSIGN(ResetScreenHandler); | 50 DISALLOW_COPY_AND_ASSIGN(ResetScreenHandler); |
51 }; | 51 }; |
52 | 52 |
53 } // namespace chromeos | 53 } // namespace chromeos |
54 | 54 |
55 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_RESET_SCREEN_HANDLER_H_ | 55 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_RESET_SCREEN_HANDLER_H_ |
OLD | NEW |