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

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

Issue 1753653002: MD Settings: First half of Device > Keyboard sub-page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: missed one 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 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 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 (*s_whitelist)["settings.internet.wake_on_wifi_darkconnect"] = 221 (*s_whitelist)["settings.internet.wake_on_wifi_darkconnect"] =
222 settings_private::PrefType::PREF_TYPE_BOOLEAN; 222 settings_private::PrefType::PREF_TYPE_BOOLEAN;
223 (*s_whitelist)["settings.enable_screen_lock"] = 223 (*s_whitelist)["settings.enable_screen_lock"] =
224 settings_private::PrefType::PREF_TYPE_BOOLEAN; 224 settings_private::PrefType::PREF_TYPE_BOOLEAN;
225 225
226 // Input settings. 226 // Input settings.
227 (*s_whitelist)["settings.touchpad.enable_tap_to_click"] = 227 (*s_whitelist)["settings.touchpad.enable_tap_to_click"] =
228 settings_private::PrefType::PREF_TYPE_BOOLEAN; 228 settings_private::PrefType::PREF_TYPE_BOOLEAN;
229 (*s_whitelist)["settings.touchpad.natural_scroll"] = 229 (*s_whitelist)["settings.touchpad.natural_scroll"] =
230 settings_private::PrefType::PREF_TYPE_BOOLEAN; 230 settings_private::PrefType::PREF_TYPE_BOOLEAN;
231 (*s_whitelist)["settings.language.xkb_remap_search_key_to"] =
232 settings_private::PrefType::PREF_TYPE_NUMBER;
233 (*s_whitelist)["settings.language.xkb_remap_control_key_to"] =
234 settings_private::PrefType::PREF_TYPE_NUMBER;
235 (*s_whitelist)["settings.language.xkb_remap_alt_key_to"] =
236 settings_private::PrefType::PREF_TYPE_NUMBER;
237 (*s_whitelist)["settings.language.remap_caps_lock_key_to"] =
238 settings_private::PrefType::PREF_TYPE_NUMBER;
239 (*s_whitelist)["settings.language.remap_diamond_key_to"] =
240 settings_private::PrefType::PREF_TYPE_NUMBER;
241 (*s_whitelist)["settings.language.send_function_keys"] =
242 settings_private::PrefType::PREF_TYPE_BOOLEAN;
231 #else 243 #else
232 (*s_whitelist)["intl.accept_languages"] = 244 (*s_whitelist)["intl.accept_languages"] =
233 settings_private::PrefType::PREF_TYPE_STRING; 245 settings_private::PrefType::PREF_TYPE_STRING;
234 #endif 246 #endif
235 247
236 #if defined(GOOGLE_CHROME_BUILD) 248 #if defined(GOOGLE_CHROME_BUILD)
237 (*s_whitelist)["media_router.cloudservices.enabled"] = 249 (*s_whitelist)["media_router.cloudservices.enabled"] =
238 settings_private::PrefType::PREF_TYPE_BOOLEAN; 250 settings_private::PrefType::PREF_TYPE_BOOLEAN;
239 #endif // defined(GOOGLE_CHROME_BUILD) 251 #endif // defined(GOOGLE_CHROME_BUILD)
240 252
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
577 589
578 bool PrefsUtil::IsCrosSetting(const std::string& pref_name) { 590 bool PrefsUtil::IsCrosSetting(const std::string& pref_name) {
579 #if defined(OS_CHROMEOS) 591 #if defined(OS_CHROMEOS)
580 return CrosSettings::Get()->IsCrosSettings(pref_name); 592 return CrosSettings::Get()->IsCrosSettings(pref_name);
581 #else 593 #else
582 return false; 594 return false;
583 #endif 595 #endif
584 } 596 }
585 597
586 } // namespace extensions 598 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/app/settings_strings.grdp ('k') | chrome/browser/resources/settings/device_page/compiled_resources2.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698