| 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_NETWORK_SCREEN_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_NETWORK_SCREEN_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_NETWORK_SCREEN_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_NETWORK_SCREEN_HANDLER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 | 53 |
| 54 // WebUIMessageHandler implementation: | 54 // WebUIMessageHandler implementation: |
| 55 virtual void RegisterMessages() OVERRIDE; | 55 virtual void RegisterMessages() OVERRIDE; |
| 56 | 56 |
| 57 // ComponentExtensionIMEManager::Observer implementation: | 57 // ComponentExtensionIMEManager::Observer implementation: |
| 58 virtual void OnImeComponentExtensionInitialized() OVERRIDE; | 58 virtual void OnImeComponentExtensionInitialized() OVERRIDE; |
| 59 | 59 |
| 60 // Registers the preference for derelict state. | 60 // Registers the preference for derelict state. |
| 61 static void RegisterPrefs(PrefRegistrySimple* registry); | 61 static void RegisterPrefs(PrefRegistrySimple* registry); |
| 62 | 62 |
| 63 // Reloads localized contents. |
| 64 void ReloadLocalizedContent(); |
| 65 |
| 63 private: | 66 private: |
| 64 // Handles moving off the screen. | 67 // Handles moving off the screen. |
| 65 void HandleOnExit(); | 68 void HandleOnExit(); |
| 66 | 69 |
| 67 // Handles change of the language. | 70 // Handles change of the language. |
| 68 void HandleOnLanguageChanged(const std::string& locale); | 71 void HandleOnLanguageChanged(const std::string& locale); |
| 69 | 72 |
| 70 // Async callback after ReloadResourceBundle(locale) completed. | 73 // Async callback after ReloadResourceBundle(locale) completed. |
| 71 static void OnLanguageChangedCallback( | 74 static void OnLanguageChangedCallback( |
| 72 scoped_ptr<NetworkScreenHandlerOnLanguageChangedCallbackData> context, | 75 scoped_ptr<NetworkScreenHandlerOnLanguageChangedCallbackData> context, |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 gfx::Point network_control_pos_; | 120 gfx::Point network_control_pos_; |
| 118 | 121 |
| 119 scoped_ptr<CrosSettings::ObserverSubscription> timezone_subscription_; | 122 scoped_ptr<CrosSettings::ObserverSubscription> timezone_subscription_; |
| 120 | 123 |
| 121 scoped_ptr<IdleDetector> idle_detector_; | 124 scoped_ptr<IdleDetector> idle_detector_; |
| 122 | 125 |
| 123 base::RepeatingTimer<NetworkScreenHandler> oobe_timer_; | 126 base::RepeatingTimer<NetworkScreenHandler> oobe_timer_; |
| 124 | 127 |
| 125 // Timeout to detect if the machine is in a derelict state. | 128 // Timeout to detect if the machine is in a derelict state. |
| 126 base::TimeDelta derelict_detection_timeout_; | 129 base::TimeDelta derelict_detection_timeout_; |
| 130 |
| 127 // Timeout before showing our demo app if the machine is in a derelict state. | 131 // Timeout before showing our demo app if the machine is in a derelict state. |
| 128 base::TimeDelta derelict_idle_timeout_; | 132 base::TimeDelta derelict_idle_timeout_; |
| 133 |
| 129 // Time between updating our total time on oobe. | 134 // Time between updating our total time on oobe. |
| 130 base::TimeDelta oobe_timer_update_interval_; | 135 base::TimeDelta oobe_timer_update_interval_; |
| 131 | 136 |
| 137 // True if should reinitialize language and keyboard list once the page |
| 138 // is ready. |
| 139 bool should_reinitialize_language_keyboard_list_; |
| 140 |
| 132 base::WeakPtrFactory<NetworkScreenHandler> weak_ptr_factory_; | 141 base::WeakPtrFactory<NetworkScreenHandler> weak_ptr_factory_; |
| 133 | 142 |
| 134 DISALLOW_COPY_AND_ASSIGN(NetworkScreenHandler); | 143 DISALLOW_COPY_AND_ASSIGN(NetworkScreenHandler); |
| 135 }; | 144 }; |
| 136 | 145 |
| 137 } // namespace chromeos | 146 } // namespace chromeos |
| 138 | 147 |
| 139 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_NETWORK_SCREEN_HANDLER_H_ | 148 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_NETWORK_SCREEN_HANDLER_H_ |
| OLD | NEW |