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

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

Issue 2223213003: ChromeOS: Implement Accessibility Options screen of material design OOBE. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix presubmit. Created 4 years, 4 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
« no previous file with comments | « chrome/browser/resources/chromeos/login/oobe_welcome.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "chrome/browser/ui/webui/chromeos/login/network_screen_handler.h" 5 #include "chrome/browser/ui/webui/chromeos/login/network_screen_handler.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 builder->Add("selectKeyboard", IDS_KEYBOARD_SELECTION_SELECT); 159 builder->Add("selectKeyboard", IDS_KEYBOARD_SELECTION_SELECT);
160 builder->Add("selectNetwork", IDS_NETWORK_SELECTION_SELECT); 160 builder->Add("selectNetwork", IDS_NETWORK_SELECTION_SELECT);
161 builder->Add("selectTimezone", IDS_OPTIONS_SETTINGS_TIMEZONE_DESCRIPTION); 161 builder->Add("selectTimezone", IDS_OPTIONS_SETTINGS_TIMEZONE_DESCRIPTION);
162 builder->Add("proxySettings", IDS_OPTIONS_PROXIES_CONFIGURE_BUTTON); 162 builder->Add("proxySettings", IDS_OPTIONS_PROXIES_CONFIGURE_BUTTON);
163 builder->Add("continueButton", IDS_NETWORK_SELECTION_CONTINUE_BUTTON); 163 builder->Add("continueButton", IDS_NETWORK_SELECTION_CONTINUE_BUTTON);
164 builder->Add("debuggingFeaturesLink", IDS_NETWORK_ENABLE_DEV_FEATURES_LINK); 164 builder->Add("debuggingFeaturesLink", IDS_NETWORK_ENABLE_DEV_FEATURES_LINK);
165 165
166 // MD-OOBE 166 // MD-OOBE
167 builder->Add("oobeOKButtonText", IDS_OOBE_OK_BUTTON_TEXT); 167 builder->Add("oobeOKButtonText", IDS_OOBE_OK_BUTTON_TEXT);
168 builder->Add("languageSectionTitle", IDS_LANGUAGE_SECTION_TITLE); 168 builder->Add("languageSectionTitle", IDS_LANGUAGE_SECTION_TITLE);
169 builder->Add("accessibilitySectionTitle", IDS_ACCESSIBILITY_SECTION_TITLE);
170 builder->Add("accessibilitySectionHint", IDS_ACCESSIBILITY_SECTION_HINT);
169 builder->Add("networkSectionTitle", IDS_NETWORK_SECTION_TITLE); 171 builder->Add("networkSectionTitle", IDS_NETWORK_SECTION_TITLE);
170 builder->Add("networkSectionHint", IDS_NETWORK_SECTION_HINT); 172 builder->Add("networkSectionHint", IDS_NETWORK_SECTION_HINT);
171 173
172 builder->Add("languageDropdownTitle", IDS_LANGUAGE_DROPDOWN_TITLE); 174 builder->Add("languageDropdownTitle", IDS_LANGUAGE_DROPDOWN_TITLE);
173 builder->Add("keyboardDropdownTitle", IDS_KEYBOARD_DROPDOWN_TITLE); 175 builder->Add("keyboardDropdownTitle", IDS_KEYBOARD_DROPDOWN_TITLE);
174 builder->Add("proxySettingsMenuName", IDS_PROXY_SETTINGS_MENU_NAME); 176 builder->Add("proxySettingsMenuName", IDS_PROXY_SETTINGS_MENU_NAME);
175 builder->Add("addWiFiNetworkMenuName", IDS_ADD_WI_FI_NETWORK_MENU_NAME); 177 builder->Add("addWiFiNetworkMenuName", IDS_ADD_WI_FI_NETWORK_MENU_NAME);
176 builder->Add("addMobileNetworkMenuName", IDS_ADD_MOBILE_NETWORK_MENU_NAME); 178 builder->Add("addMobileNetworkMenuName", IDS_ADD_MOBILE_NETWORK_MENU_NAME);
179
180 builder->Add("highContrastOptionOff", IDS_HIGH_CONTRAST_OPTION_OFF);
181 builder->Add("highContrastOptionOn", IDS_HIGH_CONTRAST_OPTION_ON);
182 builder->Add("largeCursorOptionOff", IDS_LARGE_CURSOR_OPTION_OFF);
183 builder->Add("largeCursorOptionOn", IDS_LARGE_CURSOR_OPTION_ON);
184 builder->Add("screenMagnifierOptionOff", IDS_SCREEN_MAGNIFIER_OPTION_OFF);
185 builder->Add("screenMagnifierOptionOn", IDS_SCREEN_MAGNIFIER_OPTION_ON);
186 builder->Add("spokenFeedbackOptionOff", IDS_SPOKEN_FEEDBACK_OPTION_OFF);
187 builder->Add("spokenFeedbackOptionOn", IDS_SPOKEN_FEEDBACK_OPTION_ON);
188 builder->Add("virtualKeyboardOptionOff", IDS_VIRTUAL_KEYBOARD_OPTION_OFF);
189 builder->Add("virtualKeyboardOptionOn", IDS_VIRTUAL_KEYBOARD_OPTION_ON);
190
177 } 191 }
178 192
179 void NetworkScreenHandler::GetAdditionalParameters( 193 void NetworkScreenHandler::GetAdditionalParameters(
180 base::DictionaryValue* dict) { 194 base::DictionaryValue* dict) {
181 const std::string application_locale = 195 const std::string application_locale =
182 g_browser_process->GetApplicationLocale(); 196 g_browser_process->GetApplicationLocale();
183 const std::string selected_input_method = 197 const std::string selected_input_method =
184 input_method::InputMethodManager::Get() 198 input_method::InputMethodManager::Get()
185 ->GetActiveIMEState() 199 ->GetActiveIMEState()
186 ->GetCurrentInputMethod() 200 ->GetCurrentInputMethod()
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 timezone_option->SetString("value", timezone_id); 286 timezone_option->SetString("value", timezone_id);
273 timezone_option->SetString("title", timezone_name); 287 timezone_option->SetString("title", timezone_name);
274 timezone_option->SetBoolean("selected", timezone_id == current_timezone_id); 288 timezone_option->SetBoolean("selected", timezone_id == current_timezone_id);
275 timezone_list->Append(timezone_option.release()); 289 timezone_list->Append(timezone_option.release());
276 } 290 }
277 291
278 return timezone_list.release(); 292 return timezone_list.release();
279 } 293 }
280 294
281 } // namespace chromeos 295 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/resources/chromeos/login/oobe_welcome.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698