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

Side by Side Diff: chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc

Issue 1753653002: MD Settings: First half of Device > Keyboard sub-page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: missed one Created 4 years, 9 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/settings/md_settings_localized_strings_provide r.h" 5 #include "chrome/browser/ui/webui/settings/md_settings_localized_strings_provide r.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 "scrollLabel", IDS_SETTINGS_SCROLL_LABEL); 298 "scrollLabel", IDS_SETTINGS_SCROLL_LABEL);
299 html_source->AddString( 299 html_source->AddString(
300 "naturalScrollLabel", 300 "naturalScrollLabel",
301 l10n_util::GetStringFUTF16( 301 l10n_util::GetStringFUTF16(
302 IDS_SETTINGS_NATURAL_SCROLL_LABEL, 302 IDS_SETTINGS_NATURAL_SCROLL_LABEL,
303 base::ASCIIToUTF16(chrome::kNaturalScrollHelpURL))); 303 base::ASCIIToUTF16(chrome::kNaturalScrollHelpURL)));
304 html_source->AddLocalizedString( 304 html_source->AddLocalizedString(
305 "traditionalScrollLabel", IDS_SETTINGS_TRADITIONAL_SCROLL_LABEL); 305 "traditionalScrollLabel", IDS_SETTINGS_TRADITIONAL_SCROLL_LABEL);
306 html_source->AddLocalizedString( 306 html_source->AddLocalizedString(
307 "keyboardTitle", IDS_SETTINGS_KEYBOARD_TITLE); 307 "keyboardTitle", IDS_SETTINGS_KEYBOARD_TITLE);
308 html_source->AddLocalizedString(
309 "keyboardKeySearch", IDS_SETTINGS_KEYBOARD_KEY_SEARCH);
310 html_source->AddLocalizedString(
311 "keyboardKeyCtrl", IDS_SETTINGS_KEYBOARD_KEY_LEFT_CTRL);
312 html_source->AddLocalizedString(
313 "keyboardKeyAlt", IDS_SETTINGS_KEYBOARD_KEY_LEFT_ALT);
314 html_source->AddLocalizedString(
315 "keyboardKeyCapsLock", IDS_SETTINGS_KEYBOARD_KEY_CAPS_LOCK);
316 html_source->AddLocalizedString(
317 "keyboardKeyDiamond", IDS_SETTINGS_KEYBOARD_KEY_DIAMOND);
318 html_source->AddLocalizedString(
319 "keyboardKeyEscape", IDS_SETTINGS_KEYBOARD_KEY_ESCAPE);
320 html_source->AddLocalizedString(
321 "keyboardKeyDisabled", IDS_SETTINGS_KEYBOARD_KEY_DISABLED);
322 html_source->AddLocalizedString(
323 "keyboardSendFunctionKeys", IDS_SETTINGS_KEYBOARD_SEND_FUNCTION_KEYS);
324 html_source->AddLocalizedString(
325 "keyboardSendFunctionKeysDescription",
326 IDS_SETTINGS_KEYBOARD_SEND_FUNCTION_KEYS_DESCRIPTION);
308 } 327 }
309 #endif 328 #endif
310 329
311 void AddDownloadsStrings(content::WebUIDataSource* html_source) { 330 void AddDownloadsStrings(content::WebUIDataSource* html_source) {
312 html_source->AddLocalizedString( 331 html_source->AddLocalizedString(
313 "downloadsPageTitle", IDS_SETTINGS_DOWNLOADS); 332 "downloadsPageTitle", IDS_SETTINGS_DOWNLOADS);
314 html_source->AddLocalizedString( 333 html_source->AddLocalizedString(
315 "downloadLocation", IDS_SETTINGS_DOWNLOAD_LOCATION); 334 "downloadLocation", IDS_SETTINGS_DOWNLOAD_LOCATION);
316 html_source->AddLocalizedString( 335 html_source->AddLocalizedString(
317 "changeDownloadLocation", IDS_SETTINGS_CHANGE_DOWNLOAD_LOCATION); 336 "changeDownloadLocation", IDS_SETTINGS_CHANGE_DOWNLOAD_LOCATION);
(...skipping 683 matching lines...) Expand 10 before | Expand all | Expand 10 after
1001 AddSiteSettingsStrings(html_source); 1020 AddSiteSettingsStrings(html_source);
1002 AddUsersStrings(html_source); 1021 AddUsersStrings(html_source);
1003 AddWebContentStrings(html_source); 1022 AddWebContentStrings(html_source);
1004 1023
1005 policy_indicator::AddLocalizedStrings(html_source); 1024 policy_indicator::AddLocalizedStrings(html_source);
1006 1025
1007 html_source->SetJsonPath(kLocalizedStringsFile); 1026 html_source->SetJsonPath(kLocalizedStringsFile);
1008 } 1027 }
1009 1028
1010 } // namespace settings 1029 } // namespace settings
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698