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

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

Issue 2853113004: chromeos: Add settings to control power management prefs. (Closed)
Patch Set: switch back from aria-labelledby to aria-label Created 3 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 <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 730 matching lines...) Expand 10 before | Expand all | Expand 10 after
741 AddLocalizedStringsBulk(html_source, storage_strings, 741 AddLocalizedStringsBulk(html_source, storage_strings,
742 arraysize(storage_strings)); 742 arraysize(storage_strings));
743 743
744 LocalizedString power_strings[] = { 744 LocalizedString power_strings[] = {
745 {"powerTitle", IDS_SETTINGS_POWER_TITLE}, 745 {"powerTitle", IDS_SETTINGS_POWER_TITLE},
746 {"powerSourceLabel", IDS_SETTINGS_POWER_SOURCE_LABEL}, 746 {"powerSourceLabel", IDS_SETTINGS_POWER_SOURCE_LABEL},
747 {"powerSourceBattery", IDS_SETTINGS_POWER_SOURCE_BATTERY}, 747 {"powerSourceBattery", IDS_SETTINGS_POWER_SOURCE_BATTERY},
748 {"powerSourceAcAdapter", IDS_SETTINGS_POWER_SOURCE_AC_ADAPTER}, 748 {"powerSourceAcAdapter", IDS_SETTINGS_POWER_SOURCE_AC_ADAPTER},
749 {"powerSourceLowPowerCharger", 749 {"powerSourceLowPowerCharger",
750 IDS_SETTINGS_POWER_SOURCE_LOW_POWER_CHARGER}, 750 IDS_SETTINGS_POWER_SOURCE_LOW_POWER_CHARGER},
751 {"calculatingPower", IDS_SETTINGS_POWER_SOURCE_CALCULATING}}; 751 {"calculatingPower", IDS_SETTINGS_POWER_SOURCE_CALCULATING},
752 {"powerIdleLabel", IDS_SETTINGS_POWER_IDLE_LABEL},
753 {"powerIdleDisplayOffSleep", IDS_SETTINGS_POWER_IDLE_DISPLAY_OFF_SLEEP},
754 {"powerIdleDisplayOffStayAwake",
755 IDS_SETTINGS_POWER_IDLE_DISPLAY_OFF_STAY_AWAKE},
756 {"powerIdleDisplayOn", IDS_SETTINGS_POWER_IDLE_DISPLAY_ON},
757 {"powerIdleOther", IDS_SETTINGS_POWER_IDLE_OTHER},
758 {"powerLidClosedLabel", IDS_SETTINGS_POWER_LID_CLOSED_LABEL},
759 {"powerLidClosedSleep", IDS_SETTINGS_POWER_LID_CLOSED_SLEEP},
760 {"powerLidClosedStayAwake", IDS_SETTINGS_POWER_LID_CLOSED_STAY_AWAKE},
761 {"powerLidClosedSignOut", IDS_SETTINGS_POWER_LID_CLOSED_SIGN_OUT},
762 {"powerLidClosedShutDown", IDS_SETTINGS_POWER_LID_CLOSED_SHUT_DOWN},
763 };
752 AddLocalizedStringsBulk(html_source, power_strings, arraysize(power_strings)); 764 AddLocalizedStringsBulk(html_source, power_strings, arraysize(power_strings));
753 765
754 html_source->AddString("naturalScrollLearnMoreLink", 766 html_source->AddString("naturalScrollLearnMoreLink",
755 base::ASCIIToUTF16(chrome::kNaturalScrollHelpURL)); 767 base::ASCIIToUTF16(chrome::kNaturalScrollHelpURL));
756 } 768 }
757 #endif 769 #endif
758 770
759 void AddDownloadsStrings(content::WebUIDataSource* html_source) { 771 void AddDownloadsStrings(content::WebUIDataSource* html_source) {
760 LocalizedString localized_strings[] = { 772 LocalizedString localized_strings[] = {
761 {"downloadsPageTitle", IDS_SETTINGS_DOWNLOADS}, 773 {"downloadsPageTitle", IDS_SETTINGS_DOWNLOADS},
(...skipping 1398 matching lines...) Expand 10 before | Expand all | Expand 10 after
2160 2172
2161 #if defined(OS_CHROMEOS) 2173 #if defined(OS_CHROMEOS)
2162 chromeos::network_element::AddLocalizedStrings(html_source); 2174 chromeos::network_element::AddLocalizedStrings(html_source);
2163 #endif 2175 #endif
2164 policy_indicator::AddLocalizedStrings(html_source); 2176 policy_indicator::AddLocalizedStrings(html_source);
2165 2177
2166 html_source->SetJsonPath(kLocalizedStringsFile); 2178 html_source->SetJsonPath(kLocalizedStringsFile);
2167 } 2179 }
2168 2180
2169 } // namespace settings 2181 } // namespace settings
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698