OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/common/pref_names.h" | 5 #include "chrome/common/pref_names.h" |
6 | 6 |
7 #include "base/macros.h" | 7 #include "base/macros.h" |
8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
9 #include "chrome/common/features.h" | 9 #include "chrome/common/features.h" |
10 #include "chrome/common/pref_font_webkit_names.h" | 10 #include "chrome/common/pref_font_webkit_names.h" |
11 #include "extensions/features/features.h" | 11 #include "extensions/features/features.h" |
| 12 #include "ppapi/features/features.h" |
12 | 13 |
13 namespace prefs { | 14 namespace prefs { |
14 | 15 |
15 // *************** PROFILE PREFS *************** | 16 // *************** PROFILE PREFS *************** |
16 // These are attached to the user profile | 17 // These are attached to the user profile |
17 | 18 |
18 #if defined(OS_CHROMEOS) && BUILDFLAG(ENABLE_APP_LIST) | 19 #if defined(OS_CHROMEOS) && BUILDFLAG(ENABLE_APP_LIST) |
19 // A preference to keep list of Android apps and their state. | 20 // A preference to keep list of Android apps and their state. |
20 const char kArcApps[] = "arc.apps"; | 21 const char kArcApps[] = "arc.apps"; |
21 // A preference to store backup and restore state for Android apps. | 22 // A preference to store backup and restore state for Android apps. |
(...skipping 978 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1000 const char kPluginsDisabledPluginsExceptions[] = | 1001 const char kPluginsDisabledPluginsExceptions[] = |
1001 "plugins.plugins_disabled_exceptions"; | 1002 "plugins.plugins_disabled_exceptions"; |
1002 | 1003 |
1003 // List pref containing names of plugins that are enabled by policy. | 1004 // List pref containing names of plugins that are enabled by policy. |
1004 const char kPluginsEnabledPlugins[] = "plugins.plugins_enabled"; | 1005 const char kPluginsEnabledPlugins[] = "plugins.plugins_enabled"; |
1005 | 1006 |
1006 // Whether Chrome should use its internal PDF viewer or not. | 1007 // Whether Chrome should use its internal PDF viewer or not. |
1007 const char kPluginsAlwaysOpenPdfExternally[] = | 1008 const char kPluginsAlwaysOpenPdfExternally[] = |
1008 "plugins.always_open_pdf_externally"; | 1009 "plugins.always_open_pdf_externally"; |
1009 | 1010 |
1010 #if defined(ENABLE_PLUGINS) | 1011 #if BUILDFLAG(ENABLE_PLUGINS) |
1011 // Whether about:plugins is shown in the details mode or not. | 1012 // Whether about:plugins is shown in the details mode or not. |
1012 const char kPluginsShowDetails[] = "plugins.show_details"; | 1013 const char kPluginsShowDetails[] = "plugins.show_details"; |
1013 #endif | 1014 #endif |
1014 | 1015 |
1015 // Boolean that indicates whether outdated plugins are allowed or not. | 1016 // Boolean that indicates whether outdated plugins are allowed or not. |
1016 const char kPluginsAllowOutdated[] = "plugins.allow_outdated"; | 1017 const char kPluginsAllowOutdated[] = "plugins.allow_outdated"; |
1017 | 1018 |
1018 // Boolean that indicates whether plugins that require authorization should | 1019 // Boolean that indicates whether plugins that require authorization should |
1019 // be always allowed or not. | 1020 // be always allowed or not. |
1020 const char kPluginsAlwaysAuthorize[] = "plugins.always_authorize"; | 1021 const char kPluginsAlwaysAuthorize[] = "plugins.always_authorize"; |
(...skipping 30 matching lines...) Expand all Loading... |
1051 | 1052 |
1052 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) | 1053 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) |
1053 // Boolean that is false if we should show window manager decorations. If | 1054 // Boolean that is false if we should show window manager decorations. If |
1054 // true, we draw a custom chrome frame (thicker title bar and blue border). | 1055 // true, we draw a custom chrome frame (thicker title bar and blue border). |
1055 const char kUseCustomChromeFrame[] = "browser.custom_chrome_frame"; | 1056 const char kUseCustomChromeFrame[] = "browser.custom_chrome_frame"; |
1056 #endif | 1057 #endif |
1057 | 1058 |
1058 const char kBackShortcutBubbleShownCount[] = | 1059 const char kBackShortcutBubbleShownCount[] = |
1059 "browser.back_shortcut_bubble_shown_count"; | 1060 "browser.back_shortcut_bubble_shown_count"; |
1060 | 1061 |
1061 #if defined(ENABLE_PLUGINS) | 1062 #if BUILDFLAG(ENABLE_PLUGINS) |
1062 // Which plugins have been whitelisted manually by the user. | 1063 // Which plugins have been whitelisted manually by the user. |
1063 const char kContentSettingsPluginWhitelist[] = | 1064 const char kContentSettingsPluginWhitelist[] = |
1064 "profile.content_settings.plugin_whitelist"; | 1065 "profile.content_settings.plugin_whitelist"; |
1065 #endif | 1066 #endif |
1066 | 1067 |
1067 // Double that indicates the default zoom level. | 1068 // Double that indicates the default zoom level. |
1068 const char kPartitionDefaultZoomLevel[] = "partition.default_zoom_level"; | 1069 const char kPartitionDefaultZoomLevel[] = "partition.default_zoom_level"; |
1069 | 1070 |
1070 // Dictionary that maps hostnames to zoom levels. Hosts not in this pref will | 1071 // Dictionary that maps hostnames to zoom levels. Hosts not in this pref will |
1071 // be displayed at the default zoom level. | 1072 // be displayed at the default zoom level. |
(...skipping 1237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2309 // How many times the search geolocation disclosure has been shown. | 2310 // How many times the search geolocation disclosure has been shown. |
2310 const char kSearchGeolocationDisclosureShownCount[] = | 2311 const char kSearchGeolocationDisclosureShownCount[] = |
2311 "search_geolocation_disclosure.shown_count"; | 2312 "search_geolocation_disclosure.shown_count"; |
2312 | 2313 |
2313 // When the disclosure was shown last. | 2314 // When the disclosure was shown last. |
2314 const char kSearchGeolocationDisclosureLastShowDate[] = | 2315 const char kSearchGeolocationDisclosureLastShowDate[] = |
2315 "search_geolocation_disclosure.last_show_date"; | 2316 "search_geolocation_disclosure.last_show_date"; |
2316 #endif | 2317 #endif |
2317 | 2318 |
2318 } // namespace prefs | 2319 } // namespace prefs |
OLD | NEW |