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

Side by Side Diff: chrome/browser/extensions/api/settings_private/prefs_util.cc

Issue 1840913002: A11y setting: mono audio UI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: delete tray a11y hand icon view 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
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/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 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 (*s_whitelist)["settings.a11y.screen_magnifier"] = 214 (*s_whitelist)["settings.a11y.screen_magnifier"] =
215 settings_private::PrefType::PREF_TYPE_BOOLEAN; 215 settings_private::PrefType::PREF_TYPE_BOOLEAN;
216 (*s_whitelist)["settings.a11y.select_to_speak"] = 216 (*s_whitelist)["settings.a11y.select_to_speak"] =
217 settings_private::PrefType::PREF_TYPE_BOOLEAN; 217 settings_private::PrefType::PREF_TYPE_BOOLEAN;
218 (*s_whitelist)["settings.a11y.sticky_keys_enabled"] = 218 (*s_whitelist)["settings.a11y.sticky_keys_enabled"] =
219 settings_private::PrefType::PREF_TYPE_BOOLEAN; 219 settings_private::PrefType::PREF_TYPE_BOOLEAN;
220 (*s_whitelist)["settings.a11y.switch_access"] = 220 (*s_whitelist)["settings.a11y.switch_access"] =
221 settings_private::PrefType::PREF_TYPE_BOOLEAN; 221 settings_private::PrefType::PREF_TYPE_BOOLEAN;
222 (*s_whitelist)["settings.a11y.virtual_keyboard"] = 222 (*s_whitelist)["settings.a11y.virtual_keyboard"] =
223 settings_private::PrefType::PREF_TYPE_BOOLEAN; 223 settings_private::PrefType::PREF_TYPE_BOOLEAN;
224 (*s_whitelist)["settings.a11y.mono_audio"] =
225 settings_private::PrefType::PREF_TYPE_BOOLEAN;
224 (*s_whitelist)["settings.clock.use_24hour_clock"] = 226 (*s_whitelist)["settings.clock.use_24hour_clock"] =
225 settings_private::PrefType::PREF_TYPE_BOOLEAN; 227 settings_private::PrefType::PREF_TYPE_BOOLEAN;
226 (*s_whitelist)["settings.language.preferred_languages"] = 228 (*s_whitelist)["settings.language.preferred_languages"] =
227 settings_private::PrefType::PREF_TYPE_STRING; 229 settings_private::PrefType::PREF_TYPE_STRING;
228 (*s_whitelist)["settings.touchpad.enable_tap_dragging"] = 230 (*s_whitelist)["settings.touchpad.enable_tap_dragging"] =
229 settings_private::PrefType::PREF_TYPE_BOOLEAN; 231 settings_private::PrefType::PREF_TYPE_BOOLEAN;
230 (*s_whitelist)["cros.metrics.reportingEnabled"] = 232 (*s_whitelist)["cros.metrics.reportingEnabled"] =
231 settings_private::PrefType::PREF_TYPE_BOOLEAN; 233 settings_private::PrefType::PREF_TYPE_BOOLEAN;
232 (*s_whitelist)["cros.device.attestation_for_content_protection_enabled"] = 234 (*s_whitelist)["cros.device.attestation_for_content_protection_enabled"] =
233 settings_private::PrefType::PREF_TYPE_BOOLEAN; 235 settings_private::PrefType::PREF_TYPE_BOOLEAN;
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
615 617
616 bool PrefsUtil::IsCrosSetting(const std::string& pref_name) { 618 bool PrefsUtil::IsCrosSetting(const std::string& pref_name) {
617 #if defined(OS_CHROMEOS) 619 #if defined(OS_CHROMEOS)
618 return CrosSettings::Get()->IsCrosSettings(pref_name); 620 return CrosSettings::Get()->IsCrosSettings(pref_name);
619 #else 621 #else
620 return false; 622 return false;
621 #endif 623 #endif
622 } 624 }
623 625
624 } // namespace extensions 626 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/preferences.cc ('k') | chrome/browser/resources/options/browser_options.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698