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

Side by Side Diff: chrome/common/chrome_features.h

Issue 2512563003: Convert enable_plugins to a buildflag header. (Closed)
Patch Set: Merge Created 4 years, 1 month 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
« no previous file with comments | « chrome/common/chrome_content_client_unittest.cc ('k') | chrome/common/chrome_features.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 // This file defines all the public base::FeatureList features for the chrome 5 // This file defines all the public base::FeatureList features for the chrome
6 // module. 6 // module.
7 7
8 #ifndef CHROME_COMMON_CHROME_FEATURES_H_ 8 #ifndef CHROME_COMMON_CHROME_FEATURES_H_
9 #define CHROME_COMMON_CHROME_FEATURES_H_ 9 #define CHROME_COMMON_CHROME_FEATURES_H_
10 10
11 #include "base/feature_list.h" 11 #include "base/feature_list.h"
12 #include "extensions/features/features.h" 12 #include "extensions/features/features.h"
13 #include "ppapi/features/features.h"
13 #include "printing/features/features.h" 14 #include "printing/features/features.h"
14 15
15 namespace features { 16 namespace features {
16 17
17 // All features in alphabetical order. The features should be documented 18 // All features in alphabetical order. The features should be documented
18 // alongside the definition of their values in the .cc file. 19 // alongside the definition of their values in the .cc file.
19 20
20 #if defined(OS_MACOSX) 21 #if defined(OS_MACOSX)
21 extern const base::Feature kAppleScriptExecuteJavaScript; 22 extern const base::Feature kAppleScriptExecuteJavaScript;
22 #endif // defined(OS_MACOSX) 23 #endif // defined(OS_MACOSX)
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 extern const base::Feature kModalPermissionPrompts; 88 extern const base::Feature kModalPermissionPrompts;
88 89
89 #if defined(OS_MACOSX) 90 #if defined(OS_MACOSX)
90 extern const base::Feature kNativeNotifications; 91 extern const base::Feature kNativeNotifications;
91 #endif // defined(OS_MACOSX) 92 #endif // defined(OS_MACOSX)
92 93
93 extern const base::Feature kOfflinePageDownloadSuggestionsFeature; 94 extern const base::Feature kOfflinePageDownloadSuggestionsFeature;
94 95
95 extern const base::Feature kOverrideYouTubeFlashEmbed; 96 extern const base::Feature kOverrideYouTubeFlashEmbed;
96 97
97 #if defined(ENABLE_PLUGINS) 98 #if BUILDFLAG(ENABLE_PLUGINS)
98 extern const base::Feature kPreferHtmlOverPlugins; 99 extern const base::Feature kPreferHtmlOverPlugins;
99 #endif 100 #endif
100 101
101 #if BUILDFLAG(ENABLE_PRINT_PREVIEW) 102 #if BUILDFLAG(ENABLE_PRINT_PREVIEW)
102 extern const base::Feature kPrintScaling; 103 extern const base::Feature kPrintScaling;
103 #endif 104 #endif
104 105
105 extern const base::Feature kPushMessagingBackgroundMode; 106 extern const base::Feature kPushMessagingBackgroundMode;
106 107
107 #if defined(OS_CHROMEOS) 108 #if defined(OS_CHROMEOS)
108 extern const base::Feature kRuntimeMemoryLeakDetector; 109 extern const base::Feature kRuntimeMemoryLeakDetector;
109 #endif // defined(OS_CHROMEOS) 110 #endif // defined(OS_CHROMEOS)
110 111
111 #if defined(ENABLE_PLUGINS) 112 #if BUILDFLAG(ENABLE_PLUGINS)
112 extern const base::Feature kRunAllFlashInAllowMode; 113 extern const base::Feature kRunAllFlashInAllowMode;
113 #endif 114 #endif
114 115
115 extern const base::Feature kSafeSearchUrlReporting; 116 extern const base::Feature kSafeSearchUrlReporting;
116 117
117 extern const base::Feature kSimplifiedFullscreenUI; 118 extern const base::Feature kSimplifiedFullscreenUI;
118 119
119 #if !defined(OS_ANDROID) && !defined(OS_IOS) 120 #if !defined(OS_ANDROID) && !defined(OS_IOS)
120 extern const base::Feature kSecurityChip; 121 extern const base::Feature kSecurityChip;
121 #endif 122 #endif
(...skipping 11 matching lines...) Expand all
133 134
134 extern const base::Feature kEHVInputOnImeMenu; 135 extern const base::Feature kEHVInputOnImeMenu;
135 #endif // defined(OS_CHROMEOS) 136 #endif // defined(OS_CHROMEOS)
136 137
137 // DON'T ADD RANDOM STUFF HERE. Put it in the main section above in 138 // DON'T ADD RANDOM STUFF HERE. Put it in the main section above in
138 // alphabetical order, or in one of the ifdefs (also in order in each section). 139 // alphabetical order, or in one of the ifdefs (also in order in each section).
139 140
140 } // namespace features 141 } // namespace features
141 142
142 #endif // CHROME_COMMON_CHROME_FEATURES_H_ 143 #endif // CHROME_COMMON_CHROME_FEATURES_H_
OLDNEW
« no previous file with comments | « chrome/common/chrome_content_client_unittest.cc ('k') | chrome/common/chrome_features.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698