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

Side by Side Diff: Source/wtf/FeatureDefines.h

Issue 13886014: Remove FeatureDefines.h as it was designed to deal with the variety of build systems for WebKit. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove FeatureDefines.h Created 7 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
« no previous file with comments | « Source/WebKit/chromium/features.gypi ('k') | Source/wtf/Platform.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009, 2013 Apple Inc. All rights reserved.
3 * Copyright (C) 2007-2009 Torch Mobile, Inc.
4 * Copyright (C) 2010, 2011 Research In Motion Limited. All rights reserved.
5 * Copyright (C) 2013 Samsung Electronics. All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:
10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
12 * 2. Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution.
15 *
16 * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
17 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
19 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
20 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
21 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
22 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
23 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
24 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */
28
29 #ifndef WTF_FeatureDefines_h
30 #define WTF_FeatureDefines_h
31
32 /* Use this file to list _all_ ENABLE() macros. Define the macros to be one of t he following values:
33 * - "0" disables the feature by default. The feature can still be enabled for a specific port or environment.
34 * - "1" enables the feature by default. The feature can still be disabled for a specific port or environment.
35 *
36 * The feature defaults in this file are only taken into account if the (port sp ecific) build system
37 * has not enabled or disabled a particular feature.
38 *
39 * Use this file to define ENABLE() macros only. Do not use this file to define USE() or macros !
40 *
41 * Only define a macro if it was not defined before - always check for !defined first.
42 *
43 * Keep the file sorted by the name of the defines. As an exception you can chan ge the order
44 * to allow interdependencies between the default values.
45 *
46 * Below are a few potential commands to take advantage of this file running fro m the Source/WTF directory
47 *
48 * Get the list of feature defines: grep -o "ENABLE_\(\w\+\)" wtf/FeatureDefines .h | sort | uniq
49 * Get the list of features enabled by default for a PLATFORM(XXX): gcc -E -dM - I. -DWTF_PLATFORM_XXX "wtf/Platform.h" | grep "ENABLE_\w\+ 1" | cut -d' ' -f2 | sort
50 */
51
52 /* FIXME: Move out the PLATFORM specific rules into platform specific files. */
53
54 /* ENABLE macro defaults for WebCore */
55 /* Do not use PLATFORM() tests in this section ! */
56
57 #if !defined(ENABLE_3D_PLUGIN)
58 #define ENABLE_3D_PLUGIN 0
59 #endif
60
61 #if !defined(ENABLE_8BIT_TEXTRUN)
62 #define ENABLE_8BIT_TEXTRUN 0
63 #endif
64
65 #if !defined(ENABLE_ACCELERATED_OVERFLOW_SCROLLING)
66 #define ENABLE_ACCELERATED_OVERFLOW_SCROLLING 0
67 #endif
68
69 #if !defined(ENABLE_BATTERY_STATUS)
70 #define ENABLE_BATTERY_STATUS 0
71 #endif
72
73 #if !defined(ENABLE_CALENDAR_PICKER)
74 #define ENABLE_CALENDAR_PICKER 0
75 #endif
76
77 #if !defined(ENABLE_CANVAS_PROXY)
78 #define ENABLE_CANVAS_PROXY 0
79 #endif
80
81 #if !defined(ENABLE_CHANNEL_MESSAGING)
82 #define ENABLE_CHANNEL_MESSAGING 1
83 #endif
84
85 #if !defined(ENABLE_CSS3_CONDITIONAL_RULES)
86 #define ENABLE_CSS3_CONDITIONAL_RULES 0
87 #endif
88
89 #if !defined(ENABLE_CSS3_TEXT)
90 #define ENABLE_CSS3_TEXT 0
91 #endif
92
93 #if !defined(ENABLE_CSS_DEVICE_ADAPTATION)
94 #define ENABLE_CSS_DEVICE_ADAPTATION 0
95 #endif
96
97 #if !defined(ENABLE_CSS_COMPOSITING)
98 #define ENABLE_CSS_COMPOSITING 0
99 #endif
100
101 #if !defined(ENABLE_CSS_FILTERS)
102 #define ENABLE_CSS_FILTERS 0
103 #endif
104
105 #if !defined(ENABLE_CSS_IMAGE_ORIENTATION)
106 #define ENABLE_CSS_IMAGE_ORIENTATION 0
107 #endif
108
109 #if !defined(ENABLE_CSS_IMAGE_SET)
110 #define ENABLE_CSS_IMAGE_SET 0
111 #endif
112
113 #if !defined(ENABLE_CSS_TRANSFORMS_ANIMATIONS_TRANSITIONS_UNPREFIXED)
114 #define ENABLE_CSS_TRANSFORMS_ANIMATIONS_TRANSITIONS_UNPREFIXED 0
115 #endif
116
117 #if !defined(ENABLE_CUSTOM_SCHEME_HANDLER)
118 #define ENABLE_CUSTOM_SCHEME_HANDLER 0
119 #endif
120
121 #if !defined(ENABLE_DATALIST_ELEMENT)
122 #define ENABLE_DATALIST_ELEMENT 0
123 #endif
124
125 #if !defined(ENABLE_DIALOG_ELEMENT)
126 #define ENABLE_DIALOG_ELEMENT 0
127 #endif
128
129 #if !defined(ENABLE_ENCRYPTED_MEDIA)
130 #define ENABLE_ENCRYPTED_MEDIA 0
131 #endif
132
133 #if !defined(ENABLE_ENCRYPTED_MEDIA_V2)
134 #define ENABLE_ENCRYPTED_MEDIA_V2 0
135 #endif
136
137 #if !defined(ENABLE_FAST_MOBILE_SCROLLING)
138 #define ENABLE_FAST_MOBILE_SCROLLING 0
139 #endif
140
141 #if !defined(ENABLE_FONT_LOAD_EVENTS)
142 #define ENABLE_FONT_LOAD_EVENTS 0
143 #endif
144
145 #if !defined(ENABLE_GAMEPAD)
146 #define ENABLE_GAMEPAD 0
147 #endif
148
149 #if !defined(ENABLE_HIDDEN_PAGE_DOM_TIMER_THROTTLING)
150 #define ENABLE_HIDDEN_PAGE_DOM_TIMER_THROTTLING 0
151 #endif
152
153 #if !defined(ENABLE_HIGH_DPI_CANVAS)
154 #define ENABLE_HIGH_DPI_CANVAS 0
155 #endif
156
157 #if !defined(ENABLE_ICONDATABASE)
158 #define ENABLE_ICONDATABASE 1
159 #endif
160
161 #if !defined(ENABLE_IMAGE_DECODER_DOWN_SAMPLING)
162 #define ENABLE_IMAGE_DECODER_DOWN_SAMPLING 0
163 #endif
164
165 #if !defined(ENABLE_INPUT_MULTIPLE_FIELDS_UI)
166 #define ENABLE_INPUT_MULTIPLE_FIELDS_UI 0
167 #endif
168
169 #if !defined(ENABLE_INPUT_SPEECH)
170 #define ENABLE_INPUT_SPEECH 0
171 #endif
172
173 #if !defined(ENABLE_INPUT_TYPE_COLOR)
174 #define ENABLE_INPUT_TYPE_COLOR 0
175 #endif
176
177 #if !defined(ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE)
178 #define ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE 0
179 #endif
180
181 #if !defined(ENABLE_JAVASCRIPT_I18N_API)
182 #define ENABLE_JAVASCRIPT_I18N_API 0
183 #endif
184
185 #if !defined(ENABLE_LEGACY_NOTIFICATIONS)
186 #define ENABLE_LEGACY_NOTIFICATIONS 0
187 #endif
188
189 #if !defined(ENABLE_MATHML)
190 #define ENABLE_MATHML 1
191 #endif
192
193 #if !defined(ENABLE_MEDIA_CAPTURE)
194 #define ENABLE_MEDIA_CAPTURE 0
195 #endif
196
197 #if !defined(ENABLE_MEDIA_STREAM)
198 #define ENABLE_MEDIA_STREAM 0
199 #endif
200
201 #if !defined(ENABLE_MOUSE_CURSOR_SCALE)
202 #define ENABLE_MOUSE_CURSOR_SCALE 0
203 #endif
204
205 #if !defined(ENABLE_NAVIGATOR_CONTENT_UTILS)
206 #define ENABLE_NAVIGATOR_CONTENT_UTILS 0
207 #endif
208
209 #if !defined(ENABLE_NETSCAPE_PLUGIN_METADATA_CACHE)
210 #define ENABLE_NETSCAPE_PLUGIN_METADATA_CACHE 0
211 #endif
212
213 #if !defined(ENABLE_NOTIFICATIONS)
214 #define ENABLE_NOTIFICATIONS 0
215 #endif
216
217 #if !defined(ENABLE_OPENTYPE_VERTICAL)
218 #define ENABLE_OPENTYPE_VERTICAL 0
219 #endif
220
221 #if !defined(ENABLE_ORIENTATION_EVENTS)
222 #define ENABLE_ORIENTATION_EVENTS 0
223 #endif
224
225 #if !defined(ENABLE_PAGE_POPUP)
226 #define ENABLE_PAGE_POPUP 0
227 #endif
228
229 #if OS(WINDOWS)
230 #if !defined(ENABLE_PAN_SCROLLING)
231 #define ENABLE_PAN_SCROLLING 1
232 #endif
233 #endif
234
235 #if !defined(ENABLE_PARSED_STYLE_SHEET_CACHING)
236 #define ENABLE_PARSED_STYLE_SHEET_CACHING 1
237 #endif
238
239 #if !defined(ENABLE_REPAINT_THROTTLING)
240 #define ENABLE_REPAINT_THROTTLING 0
241 #endif
242
243 #if !defined(ENABLE_RUBBER_BANDING)
244 #define ENABLE_RUBBER_BANDING 0
245 #endif
246
247 #if !defined(ENABLE_SATURATED_LAYOUT_ARITHMETIC)
248 #define ENABLE_SATURATED_LAYOUT_ARITHMETIC 1
249 #endif
250
251 #if !defined(ENABLE_SHARED_WORKERS)
252 #define ENABLE_SHARED_WORKERS 0
253 #endif
254
255 #if !defined(ENABLE_SPEECH_SYNTHESIS)
256 #define ENABLE_SPEECH_SYNTHESIS 0
257 #endif
258
259 #if !defined(ENABLE_SVG)
260 #define ENABLE_SVG 1
261 #endif
262
263 #if ENABLE(SVG)
264 #if !defined(ENABLE_SVG_FONTS)
265 #define ENABLE_SVG_FONTS 1
266 #endif
267 #endif
268
269 #if !defined(ENABLE_TEXT_NOTIFICATIONS_ONLY)
270 #define ENABLE_TEXT_NOTIFICATIONS_ONLY 0
271 #endif
272
273 #if !defined(ENABLE_THREADED_HTML_PARSER)
274 #define ENABLE_THREADED_HTML_PARSER 0
275 #endif
276
277 #if !defined(ENABLE_THREADED_SCROLLING)
278 #define ENABLE_THREADED_SCROLLING 0
279 #endif
280
281 #if !defined(ENABLE_TOUCH_ICON_LOADING)
282 #define ENABLE_TOUCH_ICON_LOADING 0
283 #endif
284
285 #if !defined(ENABLE_VIBRATION)
286 #define ENABLE_VIBRATION 0
287 #endif
288
289 #if !defined(ENABLE_VIDEO)
290 #define ENABLE_VIDEO 0
291 #endif
292
293 #if !defined(ENABLE_VIEWPORT)
294 #define ENABLE_VIEWPORT 0
295 #endif
296
297 #if !defined(ENABLE_VIEWSOURCE_ATTRIBUTE)
298 #define ENABLE_VIEWSOURCE_ATTRIBUTE 1
299 #endif
300
301 #if !defined(ENABLE_WEBGL)
302 #define ENABLE_WEBGL 0
303 #endif
304
305 #if !defined(ENABLE_WEB_AUDIO)
306 #define ENABLE_WEB_AUDIO 0
307 #endif
308
309 #if !defined(ENABLE_XHR_TIMEOUT)
310 #define ENABLE_XHR_TIMEOUT 0
311 #endif
312
313 /* Asserts, invariants for macro definitions */
314
315 #if ENABLE(SVG_FONTS) && !ENABLE(SVG)
316 #error "ENABLE(SVG_FONTS) requires ENABLE(SVG)"
317 #endif
318
319 #endif /* WTF_FeatureDefines_h */
OLDNEW
« no previous file with comments | « Source/WebKit/chromium/features.gypi ('k') | Source/wtf/Platform.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698