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

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

Issue 1162293005: Settings: Add initial implementation of Appearance page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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 "chrome/grit/generated_resources.h" 7 #include "chrome/grit/generated_resources.h"
8 #include "content/public/browser/web_ui_data_source.h" 8 #include "content/public/browser/web_ui_data_source.h"
9 9
10 namespace { 10 namespace {
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 "accessibilityDelayBeforeClickLong", 65 "accessibilityDelayBeforeClickLong",
66 IDS_SETTINGS_ACCESSIBILITY_DELAY_BEFORE_CLICK_LONG); 66 IDS_SETTINGS_ACCESSIBILITY_DELAY_BEFORE_CLICK_LONG);
67 html_source->AddLocalizedString( 67 html_source->AddLocalizedString(
68 "accessibilityDelayBeforeClickVeryLong", 68 "accessibilityDelayBeforeClickVeryLong",
69 IDS_SETTINGS_ACCESSIBILITY_DELAY_BEFORE_CLICK_VERY_LONG); 69 IDS_SETTINGS_ACCESSIBILITY_DELAY_BEFORE_CLICK_VERY_LONG);
70 html_source->AddLocalizedString( 70 html_source->AddLocalizedString(
71 "accessibilityOnScreenKeyboardLabel", 71 "accessibilityOnScreenKeyboardLabel",
72 IDS_SETTINGS_ACCESSIBILITY_ON_SCREEN_KEYBOARD_LABEL); 72 IDS_SETTINGS_ACCESSIBILITY_ON_SCREEN_KEYBOARD_LABEL);
73 } 73 }
74 74
75 void AddAppearanceStrings(content::WebUIDataSource* html_source) {
76 html_source->AddLocalizedString(
77 "appearancePageTitle", IDS_MD_SETTINGS_APPEARANCE_PAGE_TITLE);
78 html_source->AddLocalizedString(
79 "appearanceShowHomeButtonLabel",
Kyle Horimoto 2015/06/02 01:17:30 nit: Too far indented, and the one below is even m
James Hawkins 2015/06/02 16:42:25 Done.
80 IDS_MD_SETTINGS_APPEARANCE_SHOW_HOME_BUTTON_LABEL);
81 html_source->AddLocalizedString(
82 "appearanceShowBookmarksBarLabel",
83 IDS_MD_SETTINGS_APPEARANCE_SHOW_BOOKMARKS_BAR_LABEL);
84 }
85
75 void AddDownloadsStrings(content::WebUIDataSource* html_source) { 86 void AddDownloadsStrings(content::WebUIDataSource* html_source) {
76 html_source->AddLocalizedString( 87 html_source->AddLocalizedString(
77 "downloadsPageTitle", IDS_MD_SETTINGS_DOWNLOADS_PAGE_TITLE); 88 "downloadsPageTitle", IDS_MD_SETTINGS_DOWNLOADS_PAGE_TITLE);
78 html_source->AddLocalizedString( 89 html_source->AddLocalizedString(
79 "downloadsLocationLabel", IDS_SETTINGS_DOWNLOADS_LOCATION_LABEL); 90 "downloadsLocationLabel", IDS_SETTINGS_DOWNLOADS_LOCATION_LABEL);
80 html_source->AddLocalizedString( 91 html_source->AddLocalizedString(
81 "downloadsChangeLocationButton", 92 "downloadsChangeLocationButton",
82 IDS_SETTINGS_DOWNLOADS_CHANGE_LOCATION_BUTTON); 93 IDS_SETTINGS_DOWNLOADS_CHANGE_LOCATION_BUTTON);
83 html_source->AddLocalizedString( 94 html_source->AddLocalizedString(
84 "downloadsPromptForDownloadLabel", 95 "downloadsPromptForDownloadLabel",
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 html_source->AddLocalizedString("searchEnginesAddButtonLabel", 157 html_source->AddLocalizedString("searchEnginesAddButtonLabel",
147 IDS_SETTINGS_SEARCH_ENGINES_ADD_BUTTON_LABEL); 158 IDS_SETTINGS_SEARCH_ENGINES_ADD_BUTTON_LABEL);
148 } 159 }
149 160
150 } // namespace 161 } // namespace
151 162
152 namespace settings { 163 namespace settings {
153 164
154 void AddLocalizedStrings(content::WebUIDataSource* html_source) { 165 void AddLocalizedStrings(content::WebUIDataSource* html_source) {
155 AddA11yStrings(html_source); 166 AddA11yStrings(html_source);
167 AddAppearanceStrings(html_source);
156 AddDownloadsStrings(html_source); 168 AddDownloadsStrings(html_source);
157 AddDateTimeStrings(html_source); 169 AddDateTimeStrings(html_source);
158 #if defined(OS_CHROMEOS) 170 #if defined(OS_CHROMEOS)
159 AddInternetStrings(html_source); 171 AddInternetStrings(html_source);
160 #endif 172 #endif
161 AddSearchStrings(html_source); 173 AddSearchStrings(html_source);
162 AddSearchEnginesStrings(html_source); 174 AddSearchEnginesStrings(html_source);
163 html_source->SetJsonPath(kLocalizedStringsFile); 175 html_source->SetJsonPath(kLocalizedStringsFile);
164 } 176 }
165 177
166 } // namespace settings 178 } // namespace settings
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698