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

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

Issue 1144963006: chrome/settings: Implement the 'get themes' button. (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
« no previous file with comments | « chrome/browser/resources/settings/appearance_page/appearance_page.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 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 "chrome/grit/locale_settings.h"
8 #include "content/public/browser/web_ui_data_source.h" 9 #include "content/public/browser/web_ui_data_source.h"
9 10
10 namespace { 11 namespace {
11 12
12 // Note that md_settings.html contains a <script> tag which imports a script of 13 // Note that md_settings.html contains a <script> tag which imports a script of
13 // the following name. These names must be kept in sync. 14 // the following name. These names must be kept in sync.
14 const char kLocalizedStringsFile[] = "strings.js"; 15 const char kLocalizedStringsFile[] = "strings.js";
15 16
16 void AddA11yStrings(content::WebUIDataSource* html_source) { 17 void AddA11yStrings(content::WebUIDataSource* html_source) {
17 html_source->AddLocalizedString( 18 html_source->AddLocalizedString(
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 html_source->AddLocalizedString( 85 html_source->AddLocalizedString(
85 "appearanceShowHomeButtonLabel", 86 "appearanceShowHomeButtonLabel",
86 IDS_SETTINGS_APPEARANCE_SHOW_HOME_BUTTON_LABEL); 87 IDS_SETTINGS_APPEARANCE_SHOW_HOME_BUTTON_LABEL);
87 html_source->AddLocalizedString( 88 html_source->AddLocalizedString(
88 "appearanceShowBookmarksBarLabel", 89 "appearanceShowBookmarksBarLabel",
89 IDS_SETTINGS_APPEARANCE_SHOW_BOOKMARKS_BAR_LABEL); 90 IDS_SETTINGS_APPEARANCE_SHOW_BOOKMARKS_BAR_LABEL);
90 html_source->AddLocalizedString( 91 html_source->AddLocalizedString(
91 "homePageNtp", IDS_SETTINGS_HOME_PAGE_NTP); 92 "homePageNtp", IDS_SETTINGS_HOME_PAGE_NTP);
92 html_source->AddLocalizedString( 93 html_source->AddLocalizedString(
93 "changeHomePage", IDS_SETTINGS_CHANGE_HOME_PAGE); 94 "changeHomePage", IDS_SETTINGS_CHANGE_HOME_PAGE);
95 html_source->AddLocalizedString(
96 "themesGalleryUrl", IDS_THEMES_GALLERY_URL);
Jeremy Klein 2015/06/05 04:39:25 Should we pull this theme into our own grd? Not su
James Hawkins 2015/06/05 15:28:23 What is your concern with that dependency? locale
Jeremy Klein 2015/06/05 16:23:27 SGTM, I just wasn't sure how that file was used.
94 } 97 }
95 98
96 void AddCommonStrings(content::WebUIDataSource* html_source) { 99 void AddCommonStrings(content::WebUIDataSource* html_source) {
97 html_source->AddLocalizedString("addLabel", IDS_ADD); 100 html_source->AddLocalizedString("addLabel", IDS_ADD);
98 } 101 }
99 102
100 void AddDownloadsStrings(content::WebUIDataSource* html_source) { 103 void AddDownloadsStrings(content::WebUIDataSource* html_source) {
101 html_source->AddLocalizedString( 104 html_source->AddLocalizedString(
102 "downloadsPageTitle", IDS_SETTINGS_DOWNLOADS_PAGE_TITLE); 105 "downloadsPageTitle", IDS_SETTINGS_DOWNLOADS_PAGE_TITLE);
103 html_source->AddLocalizedString( 106 html_source->AddLocalizedString(
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 #if defined(OS_CHROMEOS) 205 #if defined(OS_CHROMEOS)
203 AddInternetStrings(html_source); 206 AddInternetStrings(html_source);
204 #endif 207 #endif
205 AddSearchStrings(html_source); 208 AddSearchStrings(html_source);
206 AddSearchEnginesStrings(html_source); 209 AddSearchEnginesStrings(html_source);
207 AddUsersStrings(html_source); 210 AddUsersStrings(html_source);
208 html_source->SetJsonPath(kLocalizedStringsFile); 211 html_source->SetJsonPath(kLocalizedStringsFile);
209 } 212 }
210 213
211 } // namespace settings 214 } // namespace settings
OLDNEW
« no previous file with comments | « chrome/browser/resources/settings/appearance_page/appearance_page.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698