Commit d737ae37 authored by Keith Lee's avatar Keith Lee Committed by Commit Bot

Define the assistive API preferences for Assistive features

The preferences are used to define persistent storage of maps of strings to boolean values
which can be used for implementing crbug.com/1060965 and other assistive features.

Change-Id: Ibe93ac0f4ec85333840d3e9a8547ebee4a445d9b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2126429
Commit-Queue: Keith Lee <keithlee@chromium.org>
Reviewed-by: default avatarDarren Shen <shend@chromium.org>
Reviewed-by: default avatarKeith Lee <keithlee@chromium.org>
Reviewed-by: default avatarMitsuru Oshima <oshima@chromium.org>
Cr-Commit-Position: refs/heads/master@{#769630}
parent 61fb3f92
...@@ -276,6 +276,8 @@ void Preferences::RegisterProfilePrefs( ...@@ -276,6 +276,8 @@ void Preferences::RegisterProfilePrefs(
registry->RegisterStringPref(::prefs::kLanguagePreloadEngines, registry->RegisterStringPref(::prefs::kLanguagePreloadEngines,
hardware_keyboard_id); hardware_keyboard_id);
registry->RegisterStringPref(::prefs::kLanguageEnabledImes, ""); registry->RegisterStringPref(::prefs::kLanguageEnabledImes, "");
registry->RegisterDictionaryPref(
chromeos::prefs::kAssistiveInputFeatureSettings);
registry->RegisterDictionaryPref( registry->RegisterDictionaryPref(
::prefs::kLanguageInputMethodSpecificSettings); ::prefs::kLanguageInputMethodSpecificSettings);
......
...@@ -7,6 +7,10 @@ ...@@ -7,6 +7,10 @@
namespace chromeos { namespace chromeos {
namespace prefs { namespace prefs {
// Map of strings to values used for assistive input settings.
const char kAssistiveInputFeatureSettings[] =
"assistive_input_feature_settings";
// A dictionary pref to hold the mute setting for all the currently known // A dictionary pref to hold the mute setting for all the currently known
// audio devices. // audio devices.
const char kAudioDevicesMute[] = "settings.audio.devices.mute"; const char kAudioDevicesMute[] = "settings.audio.devices.mute";
......
...@@ -10,6 +10,8 @@ ...@@ -10,6 +10,8 @@
namespace chromeos { namespace chromeos {
namespace prefs { namespace prefs {
COMPONENT_EXPORT(CHROMEOS_CONSTANTS)
extern const char kAssistiveInputFeatureSettings[];
COMPONENT_EXPORT(CHROMEOS_CONSTANTS) extern const char kAudioDevicesMute[]; COMPONENT_EXPORT(CHROMEOS_CONSTANTS) extern const char kAudioDevicesMute[];
COMPONENT_EXPORT(CHROMEOS_CONSTANTS) COMPONENT_EXPORT(CHROMEOS_CONSTANTS)
extern const char kAudioDevicesVolumePercent[]; extern const char kAudioDevicesVolumePercent[];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment