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_ERROR_SCREEN_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ERROR_SCREEN_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ERROR_SCREEN_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ERROR_SCREEN_HANDLER_H_ |
7 | 7 |
8 #include "base/cancelable_callback.h" | 8 #include "base/cancelable_callback.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 private: | 46 private: |
47 // Sends notification that error message is shown. | 47 // Sends notification that error message is shown. |
48 void NetworkErrorShown(); | 48 void NetworkErrorShown(); |
49 | 49 |
50 bool GetScreenName(OobeUI::Screen screen, std::string* name) const; | 50 bool GetScreenName(OobeUI::Screen screen, std::string* name) const; |
51 | 51 |
52 // WebUI message handlers. | 52 // WebUI message handlers. |
53 void HandleShowCaptivePortal(); | 53 void HandleShowCaptivePortal(); |
54 void HandleHideCaptivePortal(); | 54 void HandleHideCaptivePortal(); |
55 void HandleLocalStateErrorPowerwashButtonClicked(); | 55 void HandleLocalStateErrorPowerwashButtonClicked(); |
| 56 void HandleRebootButtonClicked(); |
56 | 57 |
57 // WebUIMessageHandler implementation: | 58 // WebUIMessageHandler implementation: |
58 virtual void RegisterMessages() OVERRIDE; | 59 virtual void RegisterMessages() OVERRIDE; |
59 | 60 |
60 // BaseScreenHandler implementation: | 61 // BaseScreenHandler implementation: |
61 virtual void DeclareLocalizedValues(LocalizedValuesBuilder* builder) OVERRIDE; | 62 virtual void DeclareLocalizedValues(LocalizedValuesBuilder* builder) OVERRIDE; |
62 virtual void Initialize() OVERRIDE; | 63 virtual void Initialize() OVERRIDE; |
63 | 64 |
64 // Proxy which manages showing of the window for captive portal entering. | 65 // Proxy which manages showing of the window for captive portal entering. |
65 scoped_ptr<CaptivePortalWindowProxy> captive_portal_window_proxy_; | 66 scoped_ptr<CaptivePortalWindowProxy> captive_portal_window_proxy_; |
66 | 67 |
67 // Network state informer used to keep error screen up. | 68 // Network state informer used to keep error screen up. |
68 scoped_refptr<NetworkStateInformer> network_state_informer_; | 69 scoped_refptr<NetworkStateInformer> network_state_informer_; |
69 | 70 |
70 // NativeWindowDelegate used to get reference to NativeWindow. | 71 // NativeWindowDelegate used to get reference to NativeWindow. |
71 NativeWindowDelegate* native_window_delegate_; | 72 NativeWindowDelegate* native_window_delegate_; |
72 | 73 |
73 // Keeps whether screen should be shown right after initialization. | 74 // Keeps whether screen should be shown right after initialization. |
74 bool show_on_init_; | 75 bool show_on_init_; |
75 | 76 |
76 DISALLOW_COPY_AND_ASSIGN(ErrorScreenHandler); | 77 DISALLOW_COPY_AND_ASSIGN(ErrorScreenHandler); |
77 }; | 78 }; |
78 | 79 |
79 } // namespace chromeos | 80 } // namespace chromeos |
80 | 81 |
81 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ERROR_SCREEN_HANDLER_H_ | 82 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ERROR_SCREEN_HANDLER_H_ |
OLD | NEW |