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