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

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

Issue 14238015: Move Source/WTF/wtf to Source/wtf (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 | Annotate | Revision Log
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_CONTEXT_MENUS)
86 #define ENABLE_CONTEXT_MENUS 1
87 #endif
88
89 #if !defined(ENABLE_CSS3_CONDITIONAL_RULES)
90 #define ENABLE_CSS3_CONDITIONAL_RULES 0
91 #endif
92
93 #if !defined(ENABLE_CSS3_TEXT)
94 #define ENABLE_CSS3_TEXT 0
95 #endif
96
97 #if !defined(ENABLE_CSS_DEVICE_ADAPTATION)
98 #define ENABLE_CSS_DEVICE_ADAPTATION 0
99 #endif
100
101 #if !defined(ENABLE_CSS_COMPOSITING)
102 #define ENABLE_CSS_COMPOSITING 0
103 #endif
104
105 #if !defined(ENABLE_CSS_FILTERS)
106 #define ENABLE_CSS_FILTERS 0
107 #endif
108
109 #if !defined(ENABLE_CSS_IMAGE_ORIENTATION)
110 #define ENABLE_CSS_IMAGE_ORIENTATION 0
111 #endif
112
113 #if !defined(ENABLE_CSS_IMAGE_RESOLUTION)
114 #define ENABLE_CSS_IMAGE_RESOLUTION 0
115 #endif
116
117 #if !defined(ENABLE_CSS_IMAGE_SET)
118 #define ENABLE_CSS_IMAGE_SET 0
119 #endif
120
121 #if !defined(ENABLE_CSS_TRANSFORMS_ANIMATIONS_TRANSITIONS_UNPREFIXED)
122 #define ENABLE_CSS_TRANSFORMS_ANIMATIONS_TRANSITIONS_UNPREFIXED 0
123 #endif
124
125 #if !defined(ENABLE_CUSTOM_SCHEME_HANDLER)
126 #define ENABLE_CUSTOM_SCHEME_HANDLER 0
127 #endif
128
129 #if !defined(ENABLE_DATALIST_ELEMENT)
130 #define ENABLE_DATALIST_ELEMENT 0
131 #endif
132
133 #if !defined(ENABLE_DIALOG_ELEMENT)
134 #define ENABLE_DIALOG_ELEMENT 0
135 #endif
136
137 #if !defined(ENABLE_ENCRYPTED_MEDIA)
138 #define ENABLE_ENCRYPTED_MEDIA 0
139 #endif
140
141 #if !defined(ENABLE_ENCRYPTED_MEDIA_V2)
142 #define ENABLE_ENCRYPTED_MEDIA_V2 0
143 #endif
144
145 #if !defined(ENABLE_FAST_MOBILE_SCROLLING)
146 #define ENABLE_FAST_MOBILE_SCROLLING 0
147 #endif
148
149 #if !defined(ENABLE_FONT_LOAD_EVENTS)
150 #define ENABLE_FONT_LOAD_EVENTS 0
151 #endif
152
153 #if !defined(ENABLE_GAMEPAD)
154 #define ENABLE_GAMEPAD 0
155 #endif
156
157 #if !defined(ENABLE_HIDDEN_PAGE_DOM_TIMER_THROTTLING)
158 #define ENABLE_HIDDEN_PAGE_DOM_TIMER_THROTTLING 0
159 #endif
160
161 #if !defined(ENABLE_HIGH_DPI_CANVAS)
162 #define ENABLE_HIGH_DPI_CANVAS 0
163 #endif
164
165 #if !defined(ENABLE_ICONDATABASE)
166 #define ENABLE_ICONDATABASE 1
167 #endif
168
169 #if !defined(ENABLE_IMAGE_DECODER_DOWN_SAMPLING)
170 #define ENABLE_IMAGE_DECODER_DOWN_SAMPLING 0
171 #endif
172
173 #if !defined(ENABLE_INPUT_MULTIPLE_FIELDS_UI)
174 #define ENABLE_INPUT_MULTIPLE_FIELDS_UI 0
175 #endif
176
177 #if !defined(ENABLE_INPUT_SPEECH)
178 #define ENABLE_INPUT_SPEECH 0
179 #endif
180
181 #if !defined(ENABLE_INPUT_TYPE_COLOR)
182 #define ENABLE_INPUT_TYPE_COLOR 0
183 #endif
184
185 #if !defined(ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE)
186 #define ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE 0
187 #endif
188
189 #if !defined(ENABLE_JAVASCRIPT_I18N_API)
190 #define ENABLE_JAVASCRIPT_I18N_API 0
191 #endif
192
193 #if !defined(ENABLE_LEGACY_NOTIFICATIONS)
194 #define ENABLE_LEGACY_NOTIFICATIONS 0
195 #endif
196
197 #if !defined(ENABLE_MATHML)
198 #define ENABLE_MATHML 1
199 #endif
200
201 #if !defined(ENABLE_MEDIA_CAPTURE)
202 #define ENABLE_MEDIA_CAPTURE 0
203 #endif
204
205 #if !defined(ENABLE_MEDIA_STREAM)
206 #define ENABLE_MEDIA_STREAM 0
207 #endif
208
209 #if !defined(ENABLE_MOUSE_CURSOR_SCALE)
210 #define ENABLE_MOUSE_CURSOR_SCALE 0
211 #endif
212
213 #if !defined(ENABLE_NAVIGATOR_CONTENT_UTILS)
214 #define ENABLE_NAVIGATOR_CONTENT_UTILS 0
215 #endif
216
217 #if !defined(ENABLE_NETSCAPE_PLUGIN_METADATA_CACHE)
218 #define ENABLE_NETSCAPE_PLUGIN_METADATA_CACHE 0
219 #endif
220
221 #if !defined(ENABLE_NOTIFICATIONS)
222 #define ENABLE_NOTIFICATIONS 0
223 #endif
224
225 #if !defined(ENABLE_OPENTYPE_VERTICAL)
226 #define ENABLE_OPENTYPE_VERTICAL 0
227 #endif
228
229 #if !defined(ENABLE_ORIENTATION_EVENTS)
230 #define ENABLE_ORIENTATION_EVENTS 0
231 #endif
232
233 #if !defined(ENABLE_PAGE_POPUP)
234 #define ENABLE_PAGE_POPUP 0
235 #endif
236
237 #if OS(WINDOWS)
238 #if !defined(ENABLE_PAN_SCROLLING)
239 #define ENABLE_PAN_SCROLLING 1
240 #endif
241 #endif
242
243 #if !defined(ENABLE_PARSED_STYLE_SHEET_CACHING)
244 #define ENABLE_PARSED_STYLE_SHEET_CACHING 1
245 #endif
246
247 #if !defined(ENABLE_REPAINT_THROTTLING)
248 #define ENABLE_REPAINT_THROTTLING 0
249 #endif
250
251 #if !defined(ENABLE_RUBBER_BANDING)
252 #define ENABLE_RUBBER_BANDING 0
253 #endif
254
255 #if !defined(ENABLE_SATURATED_LAYOUT_ARITHMETIC)
256 #define ENABLE_SATURATED_LAYOUT_ARITHMETIC 1
257 #endif
258
259 #if !defined(ENABLE_SHARED_WORKERS)
260 #define ENABLE_SHARED_WORKERS 0
261 #endif
262
263 #if !defined(ENABLE_SPEECH_SYNTHESIS)
264 #define ENABLE_SPEECH_SYNTHESIS 0
265 #endif
266
267 #if !defined(ENABLE_SVG)
268 #define ENABLE_SVG 1
269 #endif
270
271 #if ENABLE(SVG)
272 #if !defined(ENABLE_SVG_FONTS)
273 #define ENABLE_SVG_FONTS 1
274 #endif
275 #endif
276
277 #if !defined(ENABLE_TEXT_NOTIFICATIONS_ONLY)
278 #define ENABLE_TEXT_NOTIFICATIONS_ONLY 0
279 #endif
280
281 #if !defined(ENABLE_THREADED_HTML_PARSER)
282 #define ENABLE_THREADED_HTML_PARSER 0
283 #endif
284
285 #if !defined(ENABLE_THREADED_SCROLLING)
286 #define ENABLE_THREADED_SCROLLING 0
287 #endif
288
289 #if !defined(ENABLE_TOUCH_EVENTS)
290 #define ENABLE_TOUCH_EVENTS 0
291 #endif
292
293 #if !defined(ENABLE_TOUCH_ICON_LOADING)
294 #define ENABLE_TOUCH_ICON_LOADING 0
295 #endif
296
297 #if !defined(ENABLE_VIBRATION)
298 #define ENABLE_VIBRATION 0
299 #endif
300
301 #if !defined(ENABLE_VIDEO)
302 #define ENABLE_VIDEO 0
303 #endif
304
305 #if !defined(ENABLE_VIEWPORT)
306 #define ENABLE_VIEWPORT 0
307 #endif
308
309 #if !defined(ENABLE_VIEWSOURCE_ATTRIBUTE)
310 #define ENABLE_VIEWSOURCE_ATTRIBUTE 1
311 #endif
312
313 #if !defined(ENABLE_WEBGL)
314 #define ENABLE_WEBGL 0
315 #endif
316
317 #if !defined(ENABLE_WEB_AUDIO)
318 #define ENABLE_WEB_AUDIO 0
319 #endif
320
321 #if !defined(ENABLE_XHR_TIMEOUT)
322 #define ENABLE_XHR_TIMEOUT 0
323 #endif
324
325 #if !defined(ENABLE_XSLT)
326 #define ENABLE_XSLT 1
327 #endif
328
329 /* Asserts, invariants for macro definitions */
330
331 #if ENABLE(SVG_FONTS) && !ENABLE(SVG)
332 #error "ENABLE(SVG_FONTS) requires ENABLE(SVG)"
333 #endif
334
335 #endif /* WTF_FeatureDefines_h */
OLDNEW
« no previous file with comments | « Source/WTF/wtf/FastMalloc.cpp ('k') | Source/WTF/wtf/FilePrintStream.h » ('j') | Source/config.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698