Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(54)

Side by Side Diff: chrome/browser/ui/webui/chromeos/login/network_screen_handler.h

Issue 397723002: Extract l10n-related parts of NetworkScreenHandler to a helper file (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Derive list of input methods from actual locale, not requested locale. This is how it used to work … Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698