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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 // Demo mode detection methods. | 89 // Demo mode detection methods. |
90 void StartIdleDetection(); | 90 void StartIdleDetection(); |
91 void StartOobeTimer(); | 91 void StartOobeTimer(); |
92 void OnIdle(); | 92 void OnIdle(); |
93 void OnOobeTimerUpdate(); | 93 void OnOobeTimerUpdate(); |
94 void SetupTimeouts(); | 94 void SetupTimeouts(); |
95 bool IsDerelict(); | 95 bool IsDerelict(); |
96 | 96 |
97 // Returns available languages. Caller gets the ownership. Note, it does | 97 // Returns available languages. Caller gets the ownership. Note, it does |
98 // depend on the current locale. | 98 // depend on the current locale. |
99 static base::ListValue* GetLanguageList(); | 99 base::ListValue* GetLanguageList(); |
100 | 100 |
101 // Returns available input methods. Caller gets the ownership. Note, it does | 101 // Returns available input methods. Caller gets the ownership. Note, it does |
102 // depend on the current locale. | 102 // depend on the current locale. |
103 static base::ListValue* GetInputMethods(); | 103 static base::ListValue* GetInputMethods(); |
104 | 104 |
105 // Returns available timezones. Caller gets the ownership. | 105 // Returns available timezones. Caller gets the ownership. |
106 static base::ListValue* GetTimezoneList(); | 106 static base::ListValue* GetTimezoneList(); |
107 | 107 |
108 NetworkScreenActor::Delegate* screen_; | 108 NetworkScreenActor::Delegate* screen_; |
109 CoreOobeActor* core_oobe_actor_; | 109 CoreOobeActor* core_oobe_actor_; |
(...skipping 21 matching lines...) Expand all Loading... |
131 // 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. |
132 base::TimeDelta derelict_idle_timeout_; | 132 base::TimeDelta derelict_idle_timeout_; |
133 | 133 |
134 // Time between updating our total time on oobe. | 134 // Time between updating our total time on oobe. |
135 base::TimeDelta oobe_timer_update_interval_; | 135 base::TimeDelta oobe_timer_update_interval_; |
136 | 136 |
137 // True if should reinitialize language and keyboard list once the page | 137 // True if should reinitialize language and keyboard list once the page |
138 // is ready. | 138 // is ready. |
139 bool should_reinitialize_language_keyboard_list_; | 139 bool should_reinitialize_language_keyboard_list_; |
140 | 140 |
| 141 // The exact language code selected by user in the menu. |
| 142 std::string selected_language_code_; |
| 143 |
141 base::WeakPtrFactory<NetworkScreenHandler> weak_ptr_factory_; | 144 base::WeakPtrFactory<NetworkScreenHandler> weak_ptr_factory_; |
142 | 145 |
143 DISALLOW_COPY_AND_ASSIGN(NetworkScreenHandler); | 146 DISALLOW_COPY_AND_ASSIGN(NetworkScreenHandler); |
144 }; | 147 }; |
145 | 148 |
146 } // namespace chromeos | 149 } // namespace chromeos |
147 | 150 |
148 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_NETWORK_SCREEN_HANDLER_H_ | 151 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_NETWORK_SCREEN_HANDLER_H_ |
OLD | NEW |