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

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

Issue 1707613002: MD Settings: Start device page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix compiled_resources2.gyp Created 4 years, 10 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 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 "defaultBrowserMakeDefault", IDS_SETTINGS_DEFAULT_BROWSER_MAKE_DEFAULT); 276 "defaultBrowserMakeDefault", IDS_SETTINGS_DEFAULT_BROWSER_MAKE_DEFAULT);
277 html_source->AddLocalizedString( 277 html_source->AddLocalizedString(
278 "defaultBrowserUnknown", IDS_SETTINGS_DEFAULT_BROWSER_UNKNOWN); 278 "defaultBrowserUnknown", IDS_SETTINGS_DEFAULT_BROWSER_UNKNOWN);
279 html_source->AddLocalizedString( 279 html_source->AddLocalizedString(
280 "defaultBrowserSecondary", IDS_SETTINGS_DEFAULT_BROWSER_SECONDARY); 280 "defaultBrowserSecondary", IDS_SETTINGS_DEFAULT_BROWSER_SECONDARY);
281 html_source->AddLocalizedString( 281 html_source->AddLocalizedString(
282 "unableToSetDefaultBrowser", IDS_SETTINGS_DEFAULT_BROWSER_ERROR); 282 "unableToSetDefaultBrowser", IDS_SETTINGS_DEFAULT_BROWSER_ERROR);
283 } 283 }
284 #endif 284 #endif
285 285
286 #if defined(OS_CHROMEOS)
287 void AddDeviceStrings(content::WebUIDataSource* html_source) {
288 html_source->AddLocalizedString(
289 "devicePageTitle", IDS_SETTINGS_DEVICE_TITLE);
290 html_source->AddLocalizedString(
291 "touchpadTitle", IDS_SETTINGS_TOUCHPAD_TITLE);
292 html_source->AddLocalizedString(
293 "touchpadTapToClickEnabledLabel",
294 IDS_SETTINGS_TOUCHPAD_TAP_TO_CLICK_ENABLED_LABEL);
295 html_source->AddLocalizedString(
296 "scrollLabel", IDS_SETTINGS_SCROLL_LABEL);
297 html_source->AddString(
298 "naturalScrollLabel",
299 l10n_util::GetStringFUTF16(
300 IDS_SETTINGS_NATURAL_SCROLL_LABEL,
301 base::ASCIIToUTF16(chrome::kNaturalScrollHelpURL)));
302 html_source->AddLocalizedString(
303 "traditionalScrollLabel", IDS_SETTINGS_TRADITIONAL_SCROLL_LABEL);
304 html_source->AddLocalizedString(
305 "keyboardTitle", IDS_SETTINGS_KEYBOARD_TITLE);
306 }
307 #endif
308
286 void AddDownloadsStrings(content::WebUIDataSource* html_source) { 309 void AddDownloadsStrings(content::WebUIDataSource* html_source) {
287 html_source->AddLocalizedString( 310 html_source->AddLocalizedString(
288 "downloadsPageTitle", IDS_SETTINGS_DOWNLOADS); 311 "downloadsPageTitle", IDS_SETTINGS_DOWNLOADS);
289 html_source->AddLocalizedString( 312 html_source->AddLocalizedString(
290 "downloadLocation", IDS_SETTINGS_DOWNLOAD_LOCATION); 313 "downloadLocation", IDS_SETTINGS_DOWNLOAD_LOCATION);
291 html_source->AddLocalizedString( 314 html_source->AddLocalizedString(
292 "changeDownloadLocation", IDS_SETTINGS_CHANGE_DOWNLOAD_LOCATION); 315 "changeDownloadLocation", IDS_SETTINGS_CHANGE_DOWNLOAD_LOCATION);
293 html_source->AddLocalizedString( 316 html_source->AddLocalizedString(
294 "promptForDownload", IDS_SETTINGS_PROMPT_FOR_DOWNLOAD); 317 "promptForDownload", IDS_SETTINGS_PROMPT_FOR_DOWNLOAD);
295 html_source->AddLocalizedString( 318 html_source->AddLocalizedString(
(...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after
876 AddAppearanceStrings(html_source); 899 AddAppearanceStrings(html_source);
877 #if defined(OS_CHROMEOS) 900 #if defined(OS_CHROMEOS)
878 AddBluetoothStrings(html_source); 901 AddBluetoothStrings(html_source);
879 #endif 902 #endif
880 AddCertificateManagerStrings(html_source); 903 AddCertificateManagerStrings(html_source);
881 AddClearBrowsingDataStrings(html_source); 904 AddClearBrowsingDataStrings(html_source);
882 #if !defined(OS_CHROMEOS) 905 #if !defined(OS_CHROMEOS)
883 AddDefaultBrowserStrings(html_source); 906 AddDefaultBrowserStrings(html_source);
884 #endif 907 #endif
885 AddDateTimeStrings(html_source); 908 AddDateTimeStrings(html_source);
909 #if defined(OS_CHROMEOS)
910 AddDeviceStrings(html_source);
911 #endif
886 AddDownloadsStrings(html_source); 912 AddDownloadsStrings(html_source);
887 #if defined(OS_CHROMEOS) 913 #if defined(OS_CHROMEOS)
888 AddInternetStrings(html_source); 914 AddInternetStrings(html_source);
889 #endif 915 #endif
890 AddLanguagesStrings(html_source); 916 AddLanguagesStrings(html_source);
891 #if defined(OS_CHROMEOS) 917 #if defined(OS_CHROMEOS)
892 AddMultiProfilesStrings(html_source, profile); 918 AddMultiProfilesStrings(html_source, profile);
893 #endif 919 #endif
894 AddOnStartupStrings(html_source); 920 AddOnStartupStrings(html_source);
895 AddPasswordsAndFormsStrings(html_source); 921 AddPasswordsAndFormsStrings(html_source);
896 AddPeopleStrings(html_source); 922 AddPeopleStrings(html_source);
897 AddPrivacyStrings(html_source); 923 AddPrivacyStrings(html_source);
898 AddResetStrings(html_source); 924 AddResetStrings(html_source);
899 AddSearchEnginesStrings(html_source); 925 AddSearchEnginesStrings(html_source);
900 AddSearchStrings(html_source); 926 AddSearchStrings(html_source);
901 AddSiteSettingsStrings(html_source); 927 AddSiteSettingsStrings(html_source);
902 AddUsersStrings(html_source); 928 AddUsersStrings(html_source);
903 AddWebContentStrings(html_source); 929 AddWebContentStrings(html_source);
904 930
905 policy_indicator::AddLocalizedStrings(html_source); 931 policy_indicator::AddLocalizedStrings(html_source);
906 932
907 html_source->SetJsonPath(kLocalizedStringsFile); 933 html_source->SetJsonPath(kLocalizedStringsFile);
908 } 934 }
909 935
910 } // namespace settings 936 } // namespace settings
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698