| 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 | 83 |
| 84 // Handles change of the input method. | 84 // Handles change of the input method. |
| 85 void HandleOnInputMethodChanged(const std::string& id); | 85 void HandleOnInputMethodChanged(const std::string& id); |
| 86 | 86 |
| 87 // Handles change of the time zone | 87 // Handles change of the time zone |
| 88 void HandleOnTimezoneChanged(const std::string& timezone); | 88 void HandleOnTimezoneChanged(const std::string& timezone); |
| 89 | 89 |
| 90 // Callback when the system timezone settings is changed. | 90 // Callback when the system timezone settings is changed. |
| 91 void OnSystemTimezoneChanged(); | 91 void OnSystemTimezoneChanged(); |
| 92 | 92 |
| 93 // Returns available languages. Caller gets the ownership. Note, it does | |
| 94 // depend on the current locale. | |
| 95 base::ListValue* GetLanguageList(); | |
| 96 | |
| 97 // Returns available input methods. Caller gets the ownership. Note, it does | |
| 98 // depend on the current locale. | |
| 99 static base::ListValue* GetInputMethods(); | |
| 100 | |
| 101 // Returns available timezones. Caller gets the ownership. | 93 // Returns available timezones. Caller gets the ownership. |
| 102 static base::ListValue* GetTimezoneList(); | 94 static base::ListValue* GetTimezoneList(); |
| 103 | 95 |
| 104 NetworkScreenActor::Delegate* screen_; | 96 NetworkScreenActor::Delegate* screen_; |
| 105 CoreOobeActor* core_oobe_actor_; | 97 CoreOobeActor* core_oobe_actor_; |
| 106 | 98 |
| 107 bool is_continue_enabled_; | 99 bool is_continue_enabled_; |
| 108 | 100 |
| 109 // Keeps whether screen should be shown right after initialization. | 101 // Keeps whether screen should be shown right after initialization. |
| 110 bool show_on_init_; | 102 bool show_on_init_; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 122 std::string selected_language_code_; | 114 std::string selected_language_code_; |
| 123 | 115 |
| 124 base::WeakPtrFactory<NetworkScreenHandler> weak_ptr_factory_; | 116 base::WeakPtrFactory<NetworkScreenHandler> weak_ptr_factory_; |
| 125 | 117 |
| 126 DISALLOW_COPY_AND_ASSIGN(NetworkScreenHandler); | 118 DISALLOW_COPY_AND_ASSIGN(NetworkScreenHandler); |
| 127 }; | 119 }; |
| 128 | 120 |
| 129 } // namespace chromeos | 121 } // namespace chromeos |
| 130 | 122 |
| 131 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_NETWORK_SCREEN_HANDLER_H_ | 123 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_NETWORK_SCREEN_HANDLER_H_ |
| OLD | NEW |