| 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 // Demo mode detection methods. | 86 // Demo mode detection methods. |
| 87 void StartIdleDetection(); | 87 void StartIdleDetection(); |
| 88 void StartOobeTimer(); | 88 void StartOobeTimer(); |
| 89 void OnIdle(); | 89 void OnIdle(); |
| 90 void OnOobeTimerUpdate(); | 90 void OnOobeTimerUpdate(); |
| 91 void SetupTimeouts(); | 91 void SetupTimeouts(); |
| 92 bool IsDerelict(); | 92 bool IsDerelict(); |
| 93 | 93 |
| 94 // Returns available languages. Caller gets the ownership. Note, it does | 94 // Returns available languages. Caller gets the ownership. Note, it does |
| 95 // depend on the current locale. | 95 // depend on the current locale. |
| 96 static base::ListValue* GetLanguageList(); | 96 base::ListValue* GetLanguageList(); |
| 97 | 97 |
| 98 // Returns available input methods. Caller gets the ownership. Note, it does | 98 // Returns available input methods. Caller gets the ownership. Note, it does |
| 99 // depend on the current locale. | 99 // depend on the current locale. |
| 100 static base::ListValue* GetInputMethods(); | 100 static base::ListValue* GetInputMethods(); |
| 101 | 101 |
| 102 // Returns available timezones. Caller gets the ownership. | 102 // Returns available timezones. Caller gets the ownership. |
| 103 static base::ListValue* GetTimezoneList(); | 103 static base::ListValue* GetTimezoneList(); |
| 104 | 104 |
| 105 NetworkScreenActor::Delegate* screen_; | 105 NetworkScreenActor::Delegate* screen_; |
| 106 CoreOobeActor* core_oobe_actor_; | 106 CoreOobeActor* core_oobe_actor_; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 122 | 122 |
| 123 base::RepeatingTimer<NetworkScreenHandler> oobe_timer_; | 123 base::RepeatingTimer<NetworkScreenHandler> oobe_timer_; |
| 124 | 124 |
| 125 // Timeout to detect if the machine is in a derelict state. | 125 // Timeout to detect if the machine is in a derelict state. |
| 126 base::TimeDelta derelict_detection_timeout_; | 126 base::TimeDelta derelict_detection_timeout_; |
| 127 // Timeout before showing our demo app if the machine is in a derelict state. | 127 // Timeout before showing our demo app if the machine is in a derelict state. |
| 128 base::TimeDelta derelict_idle_timeout_; | 128 base::TimeDelta derelict_idle_timeout_; |
| 129 // Time between updating our total time on oobe. | 129 // Time between updating our total time on oobe. |
| 130 base::TimeDelta oobe_timer_update_interval_; | 130 base::TimeDelta oobe_timer_update_interval_; |
| 131 | 131 |
| 132 // The exact language code selected by user in the menu. |
| 133 std::string selected_language_code_; |
| 134 |
| 132 base::WeakPtrFactory<NetworkScreenHandler> weak_ptr_factory_; | 135 base::WeakPtrFactory<NetworkScreenHandler> weak_ptr_factory_; |
| 133 | 136 |
| 134 DISALLOW_COPY_AND_ASSIGN(NetworkScreenHandler); | 137 DISALLOW_COPY_AND_ASSIGN(NetworkScreenHandler); |
| 135 }; | 138 }; |
| 136 | 139 |
| 137 } // namespace chromeos | 140 } // namespace chromeos |
| 138 | 141 |
| 139 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_NETWORK_SCREEN_HANDLER_H_ | 142 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_NETWORK_SCREEN_HANDLER_H_ |
| OLD | NEW |