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