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

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

Issue 2669073002: MD Settings: Allow controlled-button to be used with icons. (Closed)
Patch Set: have the parent row of the controlled-button disable/enable based on controlled-button state Created 3 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
« no previous file with comments | « chrome/browser/resources/settings/downloads_page/downloads_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 <string> 7 #include <string>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/i18n/number_formatting.h" 10 #include "base/i18n/number_formatting.h"
(...skipping 658 matching lines...) Expand 10 before | Expand all | Expand 10 after
669 669
670 html_source->AddString("naturalScrollLearnMoreLink", 670 html_source->AddString("naturalScrollLearnMoreLink",
671 base::ASCIIToUTF16(chrome::kNaturalScrollHelpURL)); 671 base::ASCIIToUTF16(chrome::kNaturalScrollHelpURL));
672 } 672 }
673 #endif 673 #endif
674 674
675 void AddDownloadsStrings(content::WebUIDataSource* html_source) { 675 void AddDownloadsStrings(content::WebUIDataSource* html_source) {
676 LocalizedString localized_strings[] = { 676 LocalizedString localized_strings[] = {
677 {"downloadsPageTitle", IDS_SETTINGS_DOWNLOADS}, 677 {"downloadsPageTitle", IDS_SETTINGS_DOWNLOADS},
678 {"downloadLocation", IDS_SETTINGS_DOWNLOAD_LOCATION}, 678 {"downloadLocation", IDS_SETTINGS_DOWNLOAD_LOCATION},
679 {"changeDownloadLocation", IDS_SETTINGS_CHANGE_DOWNLOAD_LOCATION},
680 {"promptForDownload", IDS_SETTINGS_PROMPT_FOR_DOWNLOAD}, 679 {"promptForDownload", IDS_SETTINGS_PROMPT_FOR_DOWNLOAD},
681 {"disconnectGoogleDriveAccount", IDS_SETTINGS_DISCONNECT_GOOGLE_DRIVE}, 680 {"disconnectGoogleDriveAccount", IDS_SETTINGS_DISCONNECT_GOOGLE_DRIVE},
682 }; 681 };
683 AddLocalizedStringsBulk(html_source, localized_strings, 682 AddLocalizedStringsBulk(html_source, localized_strings,
684 arraysize(localized_strings)); 683 arraysize(localized_strings));
685 } 684 }
686 685
687 void AddResetStrings(content::WebUIDataSource* html_source) { 686 void AddResetStrings(content::WebUIDataSource* html_source) {
688 LocalizedString localized_strings[] = { 687 LocalizedString localized_strings[] = {
689 {"resetPageTitle", IDS_SETTINGS_RESET}, 688 {"resetPageTitle", IDS_SETTINGS_RESET},
(...skipping 1199 matching lines...) Expand 10 before | Expand all | Expand 10 after
1889 1888
1890 #if defined(OS_CHROMEOS) 1889 #if defined(OS_CHROMEOS)
1891 chromeos::network_element::AddLocalizedStrings(html_source); 1890 chromeos::network_element::AddLocalizedStrings(html_source);
1892 #endif 1891 #endif
1893 policy_indicator::AddLocalizedStrings(html_source); 1892 policy_indicator::AddLocalizedStrings(html_source);
1894 1893
1895 html_source->SetJsonPath(kLocalizedStringsFile); 1894 html_source->SetJsonPath(kLocalizedStringsFile);
1896 } 1895 }
1897 1896
1898 } // namespace settings 1897 } // namespace settings
OLDNEW
« no previous file with comments | « chrome/browser/resources/settings/downloads_page/downloads_page.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698