OLD | NEW |
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/extensions/api/settings_private/prefs_util.h" | 5 #include "chrome/browser/extensions/api/settings_private/prefs_util.h" |
6 | 6 |
7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
8 #include "chrome/browser/browser_process.h" | 8 #include "chrome/browser/browser_process.h" |
9 #include "chrome/browser/extensions/chrome_extension_function.h" | 9 #include "chrome/browser/extensions/chrome_extension_function.h" |
10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 (*s_whitelist)["cros.accounts.allowGuest"] = | 192 (*s_whitelist)["cros.accounts.allowGuest"] = |
193 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 193 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
194 (*s_whitelist)["cros.accounts.users"] = | 194 (*s_whitelist)["cros.accounts.users"] = |
195 settings_private::PrefType::PREF_TYPE_LIST; | 195 settings_private::PrefType::PREF_TYPE_LIST; |
196 (*s_whitelist)["settings.accessibility"] = | 196 (*s_whitelist)["settings.accessibility"] = |
197 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 197 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
198 (*s_whitelist)["settings.a11y.autoclick"] = | 198 (*s_whitelist)["settings.a11y.autoclick"] = |
199 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 199 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
200 (*s_whitelist)["settings.a11y.autoclick_delay_ms"] = | 200 (*s_whitelist)["settings.a11y.autoclick_delay_ms"] = |
201 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 201 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
| 202 (*s_whitelist)["settings.a11y.caret_highlight"] = |
| 203 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
| 204 (*s_whitelist)["settings.a11y.cursor_highlight"] = |
| 205 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
202 (*s_whitelist)["settings.a11y.enable_menu"] = | 206 (*s_whitelist)["settings.a11y.enable_menu"] = |
203 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 207 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
| 208 (*s_whitelist)["settings.a11y.focus_highlight"] = |
| 209 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
204 (*s_whitelist)["settings.a11y.high_contrast_enabled"] = | 210 (*s_whitelist)["settings.a11y.high_contrast_enabled"] = |
205 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 211 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
206 (*s_whitelist)["settings.a11y.large_cursor_enabled"] = | 212 (*s_whitelist)["settings.a11y.large_cursor_enabled"] = |
207 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 213 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
208 (*s_whitelist)["settings.a11y.screen_magnifier"] = | 214 (*s_whitelist)["settings.a11y.screen_magnifier"] = |
209 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 215 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
| 216 (*s_whitelist)["settings.a11y.select_to_speak"] = |
| 217 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
210 (*s_whitelist)["settings.a11y.sticky_keys_enabled"] = | 218 (*s_whitelist)["settings.a11y.sticky_keys_enabled"] = |
211 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 219 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
| 220 (*s_whitelist)["settings.a11y.switch_access"] = |
| 221 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
212 (*s_whitelist)["settings.a11y.virtual_keyboard"] = | 222 (*s_whitelist)["settings.a11y.virtual_keyboard"] = |
213 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 223 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
214 (*s_whitelist)["settings.clock.use_24hour_clock"] = | 224 (*s_whitelist)["settings.clock.use_24hour_clock"] = |
215 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 225 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
216 (*s_whitelist)["settings.language.preferred_languages"] = | 226 (*s_whitelist)["settings.language.preferred_languages"] = |
217 settings_private::PrefType::PREF_TYPE_STRING; | 227 settings_private::PrefType::PREF_TYPE_STRING; |
218 (*s_whitelist)["settings.touchpad.enable_tap_dragging"] = | 228 (*s_whitelist)["settings.touchpad.enable_tap_dragging"] = |
219 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 229 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
220 (*s_whitelist)["cros.metrics.reportingEnabled"] = | 230 (*s_whitelist)["cros.metrics.reportingEnabled"] = |
221 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 231 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
605 | 615 |
606 bool PrefsUtil::IsCrosSetting(const std::string& pref_name) { | 616 bool PrefsUtil::IsCrosSetting(const std::string& pref_name) { |
607 #if defined(OS_CHROMEOS) | 617 #if defined(OS_CHROMEOS) |
608 return CrosSettings::Get()->IsCrosSettings(pref_name); | 618 return CrosSettings::Get()->IsCrosSettings(pref_name); |
609 #else | 619 #else |
610 return false; | 620 return false; |
611 #endif | 621 #endif |
612 } | 622 } |
613 | 623 |
614 } // namespace extensions | 624 } // namespace extensions |
OLD | NEW |