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

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

Issue 1835533003: MD Settings: show part of a11y page on Mac/Windows/Linux (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tommycli@ review Created 4 years, 8 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/settings_resources.grd ('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/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 {"settings", IDS_SETTINGS_SETTINGS}, 72 {"settings", IDS_SETTINGS_SETTINGS},
73 {"restart", IDS_SETTINGS_RESTART}, 73 {"restart", IDS_SETTINGS_RESTART},
74 }; 74 };
75 AddLocalizedStringsBulk(html_source, localized_strings, 75 AddLocalizedStringsBulk(html_source, localized_strings,
76 arraysize(localized_strings)); 76 arraysize(localized_strings));
77 } 77 }
78 78
79 void AddA11yStrings(content::WebUIDataSource* html_source) { 79 void AddA11yStrings(content::WebUIDataSource* html_source) {
80 LocalizedString localized_strings[] = { 80 LocalizedString localized_strings[] = {
81 {"a11yPageTitle", IDS_SETTINGS_ACCESSIBILITY}, 81 {"a11yPageTitle", IDS_SETTINGS_ACCESSIBILITY},
82 {"moreFeaturesLink", IDS_SETTINGS_MORE_FEATURES_LINK},
82 #if defined(OS_CHROMEOS) 83 #if defined(OS_CHROMEOS)
83 {"moreFeaturesLink", IDS_SETTINGS_MORE_FEATURES_LINK},
84 {"optionsInMenuLabel", IDS_SETTINGS_OPTIONS_IN_MENU_LABEL}, 84 {"optionsInMenuLabel", IDS_SETTINGS_OPTIONS_IN_MENU_LABEL},
85 {"largeMouseCursorLabel", IDS_SETTINGS_LARGE_MOUSE_CURSOR_LABEL}, 85 {"largeMouseCursorLabel", IDS_SETTINGS_LARGE_MOUSE_CURSOR_LABEL},
86 {"highContrastLabel", IDS_SETTINGS_HIGH_CONTRAST_LABEL}, 86 {"highContrastLabel", IDS_SETTINGS_HIGH_CONTRAST_LABEL},
87 {"stickyKeysLabel", IDS_SETTINGS_STICKY_KEYS_LABEL}, 87 {"stickyKeysLabel", IDS_SETTINGS_STICKY_KEYS_LABEL},
88 {"chromeVoxLabel", IDS_SETTINGS_CHROMEVOX_LABEL}, 88 {"chromeVoxLabel", IDS_SETTINGS_CHROMEVOX_LABEL},
89 {"screenMagnifierLabel", IDS_SETTINGS_SCREEN_MAGNIFIER_LABEL}, 89 {"screenMagnifierLabel", IDS_SETTINGS_SCREEN_MAGNIFIER_LABEL},
90 {"tapDraggingLabel", IDS_SETTINGS_TAP_DRAGGING_LABEL}, 90 {"tapDraggingLabel", IDS_SETTINGS_TAP_DRAGGING_LABEL},
91 {"clickOnStopLabel", IDS_SETTINGS_CLICK_ON_STOP_LABEL}, 91 {"clickOnStopLabel", IDS_SETTINGS_CLICK_ON_STOP_LABEL},
92 {"delayBeforeClickLabel", IDS_SETTINGS_DELAY_BEFORE_CLICK_LABEL}, 92 {"delayBeforeClickLabel", IDS_SETTINGS_DELAY_BEFORE_CLICK_LABEL},
93 {"delayBeforeClickExtremelyShort", 93 {"delayBeforeClickExtremelyShort",
(...skipping 806 matching lines...) Expand 10 before | Expand all | Expand 10 after
900 #endif 900 #endif
901 AddUsersStrings(html_source); 901 AddUsersStrings(html_source);
902 AddWebContentStrings(html_source); 902 AddWebContentStrings(html_source);
903 903
904 policy_indicator::AddLocalizedStrings(html_source); 904 policy_indicator::AddLocalizedStrings(html_source);
905 905
906 html_source->SetJsonPath(kLocalizedStringsFile); 906 html_source->SetJsonPath(kLocalizedStringsFile);
907 } 907 }
908 908
909 } // namespace settings 909 } // namespace settings
OLDNEW
« no previous file with comments | « chrome/browser/resources/settings/settings_resources.grd ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698