| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 void HandleLocalStateErrorPowerwashButtonClicked(); | 63 void HandleLocalStateErrorPowerwashButtonClicked(); |
| 64 void HandleRebootButtonClicked(); | 64 void HandleRebootButtonClicked(); |
| 65 void HandleDiagnoseButtonClicked(); | 65 void HandleDiagnoseButtonClicked(); |
| 66 void HandleConfigureCerts(); | 66 void HandleConfigureCerts(); |
| 67 void HandleLaunchOobeGuestSession(); | 67 void HandleLaunchOobeGuestSession(); |
| 68 | 68 |
| 69 // WebUIMessageHandler implementation: | 69 // WebUIMessageHandler implementation: |
| 70 void RegisterMessages() override; | 70 void RegisterMessages() override; |
| 71 | 71 |
| 72 // BaseScreenHandler implementation: | 72 // BaseScreenHandler implementation: |
| 73 void DeclareLocalizedValues(LocalizedValuesBuilder* builder) override; | 73 void DeclareLocalizedValues( |
| 74 ::login::LocalizedValuesBuilder* builder) override; |
| 74 void Initialize() override; | 75 void Initialize() override; |
| 75 | 76 |
| 76 // Non-owning ptr. | 77 // Non-owning ptr. |
| 77 ErrorScreenActorDelegate* delegate_; | 78 ErrorScreenActorDelegate* delegate_; |
| 78 | 79 |
| 79 // Proxy which manages showing of the window for captive portal entering. | 80 // Proxy which manages showing of the window for captive portal entering. |
| 80 scoped_ptr<CaptivePortalWindowProxy> captive_portal_window_proxy_; | 81 scoped_ptr<CaptivePortalWindowProxy> captive_portal_window_proxy_; |
| 81 | 82 |
| 82 // Network state informer used to keep error screen up. | 83 // Network state informer used to keep error screen up. |
| 83 scoped_refptr<NetworkStateInformer> network_state_informer_; | 84 scoped_refptr<NetworkStateInformer> network_state_informer_; |
| 84 | 85 |
| 85 // NativeWindowDelegate used to get reference to NativeWindow. | 86 // NativeWindowDelegate used to get reference to NativeWindow. |
| 86 NativeWindowDelegate* native_window_delegate_; | 87 NativeWindowDelegate* native_window_delegate_; |
| 87 | 88 |
| 88 // Keeps whether screen should be shown right after initialization. | 89 // Keeps whether screen should be shown right after initialization. |
| 89 bool show_on_init_; | 90 bool show_on_init_; |
| 90 | 91 |
| 91 scoped_ptr<base::Closure> on_hide_; | 92 scoped_ptr<base::Closure> on_hide_; |
| 92 | 93 |
| 93 base::WeakPtrFactory<ErrorScreenHandler> weak_ptr_factory_; | 94 base::WeakPtrFactory<ErrorScreenHandler> weak_ptr_factory_; |
| 94 | 95 |
| 95 DISALLOW_COPY_AND_ASSIGN(ErrorScreenHandler); | 96 DISALLOW_COPY_AND_ASSIGN(ErrorScreenHandler); |
| 96 }; | 97 }; |
| 97 | 98 |
| 98 } // namespace chromeos | 99 } // namespace chromeos |
| 99 | 100 |
| 100 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ERROR_SCREEN_HANDLER_H_ | 101 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ERROR_SCREEN_HANDLER_H_ |
| OLD | NEW |