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

Unified Diff: chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc

Issue 1798733003: Add experimental accessibility features to Material Design settings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@add_5_a11y_features
Patch Set: Rebase, get rid of unrelated changes Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/settings/a11y_page/a11y_page.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc
diff --git a/chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc b/chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc
index 089b8ee46efe8a0494af515e53bb19120de11538..90e30993642e1acec4dd83dfb929b21425ec5af2 100644
--- a/chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc
+++ b/chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc
@@ -91,6 +91,16 @@ void AddA11yStrings(content::WebUIDataSource* html_source) {
{"delayBeforeClickVeryLong", IDS_SETTINGS_DELAY_BEFORE_CLICK_VERY_LONG},
{"onScreenKeyboardLabel", IDS_SETTINGS_ON_SCREEN_KEYBOARD_LABEL},
{"a11yExplanation", IDS_SETTINGS_ACCESSIBILITY_EXPLANATION},
+ {"caretHighlightLabel",
+ IDS_OPTIONS_SETTINGS_ACCESSIBILITY_CARET_HIGHLIGHT_DESCRIPTION },
+ {"cursorHighlightLabel",
+ IDS_OPTIONS_SETTINGS_ACCESSIBILITY_CURSOR_HIGHLIGHT_DESCRIPTION },
+ {"focusHighlightLabel",
+ IDS_OPTIONS_SETTINGS_ACCESSIBILITY_FOCUS_HIGHLIGHT_DESCRIPTION },
+ {"selectToSpeakLabel",
+ IDS_OPTIONS_SETTINGS_ACCESSIBILITY_SELECT_TO_SPEAK_DESCRIPTION },
+ {"switchAccessLabel",
+ IDS_OPTIONS_SETTINGS_ACCESSIBILITY_SWITCH_ACCESS_DESCRIPTION },
Dan Beam 2016/03/14 21:24:12 nit: remove spaces before braces
dmazzoni 2016/03/15 21:27:04 Done.
#endif
};
AddLocalizedStringsBulk(html_source, localized_strings,
@@ -99,6 +109,10 @@ void AddA11yStrings(content::WebUIDataSource* html_source) {
#if defined(OS_CHROMEOS)
html_source->AddString("a11yLearnMoreUrl",
chrome::kChromeAccessibilityHelpURL);
+
+ html_source->AddBoolean("showExperimentalA11yFeatures",
+ base::CommandLine::ForCurrentProcess()->HasSwitch(
+ chromeos::switches::kEnableExperimentalAccessibilityFeatures));
#endif
}
« no previous file with comments | « chrome/browser/resources/settings/a11y_page/a11y_page.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698