]>
git.saurik.com Git - apple/javascriptcore.git/blob - API/WebKitAvailability.h
127336095a649a6e040ada2c338fefae95caab8e
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved.
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
13 * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
14 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
16 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR
17 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
18 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
19 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
20 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 #ifndef __WebKitAvailability__
27 #define __WebKitAvailability__
29 /* The structure of this header is based on AvailabilityMacros.h. The major difference is that the availability
30 macros are defined in terms of WebKit version numbers rather than Mac OS X system version numbers, as WebKit
31 releases span multiple versions of Mac OS X.
34 #define WEBKIT_VERSION_1_0 0x0100
35 #define WEBKIT_VERSION_1_1 0x0110
36 #define WEBKIT_VERSION_1_2 0x0120
37 #define WEBKIT_VERSION_1_3 0x0130
38 #define WEBKIT_VERSION_2_0 0x0200
39 #define WEBKIT_VERSION_3_0 0x0300
40 #define WEBKIT_VERSION_3_1 0x0310
41 #define WEBKIT_VERSION_LATEST 0x9999
44 #import <AvailabilityMacros.h>
47 * For non-Mac platforms, require the newest version.
49 #define WEBKIT_VERSION_MIN_REQUIRED WEBKIT_VERSION_LATEST
51 * only certain compilers support __attribute__((deprecated))
53 #if defined(__GNUC__) && ((__GNUC__ >= 4) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 1)))
54 #define DEPRECATED_ATTRIBUTE __attribute__((deprecated))
56 #define DEPRECATED_ATTRIBUTE
60 /* The versions of GCC that shipped with Xcode prior to 3.0 (GCC build number < 5400) did not support attributes on methods.
61 If we are building with one of these versions, we need to omit the attribute. We achieve this by wrapping the annotation
62 in WEBKIT_OBJC_METHOD_ANNOTATION, which will remove the annotation when an old version of GCC is in use and will otherwise
63 expand to the annotation. The same is needed for protocol methods.
65 #if defined(__APPLE_CC__) && __APPLE_CC__ < 5400
66 #define WEBKIT_OBJC_METHOD_ANNOTATION(ANNOTATION)
68 #define WEBKIT_OBJC_METHOD_ANNOTATION(ANNOTATION) ANNOTATION
72 /* If minimum WebKit version is not specified, assume the version that shipped with the target Mac OS X version */
73 #ifndef WEBKIT_VERSION_MIN_REQUIRED
74 #if !defined(MAC_OS_X_VERSION_10_2) || MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_2
75 #error WebKit was not available prior to Mac OS X 10.2
76 #elif !defined(MAC_OS_X_VERSION_10_3) || MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_3
77 /* WebKit 1.0 is the only version available on Mac OS X 10.2. */
78 #define WEBKIT_VERSION_MIN_REQUIRED WEBKIT_VERSION_1_0
79 #elif !defined(MAC_OS_X_VERSION_10_4) || MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_4
80 /* WebKit 1.1 is the version that shipped on Mac OS X 10.3. */
81 #define WEBKIT_VERSION_MIN_REQUIRED WEBKIT_VERSION_1_1
82 #elif !defined(MAC_OS_X_VERSION_10_5) || MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_5
83 /* WebKit 2.0 is the version that shipped on Mac OS X 10.4. */
84 #define WEBKIT_VERSION_MIN_REQUIRED WEBKIT_VERSION_2_0
85 #elif !defined(MAC_OS_X_VERSION_10_6) || MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6
86 /* WebKit 3.0 is the version that shipped on Mac OS X 10.5. */
87 #define WEBKIT_VERSION_MIN_REQUIRED WEBKIT_VERSION_3_0
89 #define WEBKIT_VERSION_MIN_REQUIRED WEBKIT_VERSION_LATEST
94 /* If maximum WebKit version is not specified, assume largerof(latest, minimum) */
95 #ifndef WEBKIT_VERSION_MAX_ALLOWED
96 #if WEBKIT_VERSION_MIN_REQUIRED > WEBKIT_VERSION_LATEST
97 #define WEBKIT_VERSION_MAX_ALLOWED WEBKIT_VERSION_MIN_REQUIRED
99 #define WEBKIT_VERSION_MAX_ALLOWED WEBKIT_VERSION_LATEST
104 /* Sanity check the configured values */
105 #if WEBKIT_VERSION_MAX_ALLOWED < WEBKIT_VERSION_MIN_REQUIRED
106 #error WEBKIT_VERSION_MAX_ALLOWED must be >= WEBKIT_VERSION_MIN_REQUIRED
108 #if WEBKIT_VERSION_MIN_REQUIRED < WEBKIT_VERSION_1_0
109 #error WEBKIT_VERSION_MIN_REQUIRED must be >= WEBKIT_VERSION_1_0
118 * AVAILABLE_WEBKIT_VERSION_1_0_AND_LATER
120 * Used on functions introduced in WebKit 1.0
122 #define AVAILABLE_WEBKIT_VERSION_1_0_AND_LATER
125 * AVAILABLE_WEBKIT_VERSION_1_0_AND_LATER_BUT_DEPRECATED
127 * Used on functions introduced in WebKit 1.0,
128 * and deprecated in WebKit 1.0
130 #define AVAILABLE_WEBKIT_VERSION_1_0_AND_LATER_BUT_DEPRECATED DEPRECATED_ATTRIBUTE
133 * DEPRECATED_IN_WEBKIT_VERSION_1_0_AND_LATER
135 * Used on types deprecated in WebKit 1.0
137 #define DEPRECATED_IN_WEBKIT_VERSION_1_0_AND_LATER DEPRECATED_ATTRIBUTE
145 * AVAILABLE_WEBKIT_VERSION_1_1_AND_LATER
147 * Used on declarations introduced in WebKit 1.1
149 #if WEBKIT_VERSION_MAX_ALLOWED < WEBKIT_VERSION_1_1
150 #define AVAILABLE_WEBKIT_VERSION_1_1_AND_LATER UNAVAILABLE_ATTRIBUTE
151 #elif WEBKIT_VERSION_MIN_REQUIRED < WEBKIT_VERSION_1_1
152 #define AVAILABLE_WEBKIT_VERSION_1_1_AND_LATER WEAK_IMPORT_ATTRIBUTE
154 #define AVAILABLE_WEBKIT_VERSION_1_1_AND_LATER
158 * AVAILABLE_WEBKIT_VERSION_1_1_AND_LATER_BUT_DEPRECATED
160 * Used on declarations introduced in WebKit 1.1,
161 * and deprecated in WebKit 1.1
163 #if WEBKIT_VERSION_MIN_REQUIRED >= WEBKIT_VERSION_1_1
164 #define AVAILABLE_WEBKIT_VERSION_1_1_AND_LATER_BUT_DEPRECATED DEPRECATED_ATTRIBUTE
166 #define AVAILABLE_WEBKIT_VERSION_1_1_AND_LATER_BUT_DEPRECATED AVAILABLE_WEBKIT_VERSION_1_1_AND_LATER
170 * AVAILABLE_WEBKIT_VERSION_1_0_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERSION_1_1
172 * Used on declarations introduced in WebKit 1.0,
173 * but later deprecated in WebKit 1.1
175 #if WEBKIT_VERSION_MIN_REQUIRED >= WEBKIT_VERSION_1_1
176 #define AVAILABLE_WEBKIT_VERSION_1_0_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERSION_1_1 DEPRECATED_ATTRIBUTE
178 #define AVAILABLE_WEBKIT_VERSION_1_0_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERSION_1_1 AVAILABLE_WEBKIT_VERSION_1_0_AND_LATER
182 * DEPRECATED_IN_WEBKIT_VERSION_1_1_AND_LATER
184 * Used on types deprecated in WebKit 1.1
186 #if WEBKIT_VERSION_MIN_REQUIRED >= WEBKIT_VERSION_1_1
187 #define DEPRECATED_IN_WEBKIT_VERSION_1_1_AND_LATER DEPRECATED_ATTRIBUTE
189 #define DEPRECATED_IN_WEBKIT_VERSION_1_1_AND_LATER
198 * AVAILABLE_WEBKIT_VERSION_1_2_AND_LATER
200 * Used on declarations introduced in WebKit 1.2
202 #if WEBKIT_VERSION_MAX_ALLOWED < WEBKIT_VERSION_1_2
203 #define AVAILABLE_WEBKIT_VERSION_1_2_AND_LATER UNAVAILABLE_ATTRIBUTE
204 #elif WEBKIT_VERSION_MIN_REQUIRED < WEBKIT_VERSION_1_2
205 #define AVAILABLE_WEBKIT_VERSION_1_2_AND_LATER WEAK_IMPORT_ATTRIBUTE
207 #define AVAILABLE_WEBKIT_VERSION_1_2_AND_LATER
211 * AVAILABLE_WEBKIT_VERSION_1_2_AND_LATER_BUT_DEPRECATED
213 * Used on declarations introduced in WebKit 1.2,
214 * and deprecated in WebKit 1.2
216 #if WEBKIT_VERSION_MIN_REQUIRED >= WEBKIT_VERSION_1_2
217 #define AVAILABLE_WEBKIT_VERSION_1_2_AND_LATER_BUT_DEPRECATED DEPRECATED_ATTRIBUTE
219 #define AVAILABLE_WEBKIT_VERSION_1_2_AND_LATER_BUT_DEPRECATED AVAILABLE_WEBKIT_VERSION_1_2_AND_LATER
223 * AVAILABLE_WEBKIT_VERSION_1_0_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERSION_1_2
225 * Used on declarations introduced in WebKit 1.0,
226 * but later deprecated in WebKit 1.2
228 #if WEBKIT_VERSION_MIN_REQUIRED >= WEBKIT_VERSION_1_2
229 #define AVAILABLE_WEBKIT_VERSION_1_0_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERSION_1_2 DEPRECATED_ATTRIBUTE
231 #define AVAILABLE_WEBKIT_VERSION_1_0_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERSION_1_2 AVAILABLE_WEBKIT_VERSION_1_0_AND_LATER
235 * AVAILABLE_WEBKIT_VERSION_1_1_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERSION_1_2
237 * Used on declarations introduced in WebKit 1.1,
238 * but later deprecated in WebKit 1.2
240 #if WEBKIT_VERSION_MIN_REQUIRED >= WEBKIT_VERSION_1_2
241 #define AVAILABLE_WEBKIT_VERSION_1_1_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERSION_1_2 DEPRECATED_ATTRIBUTE
243 #define AVAILABLE_WEBKIT_VERSION_1_1_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERSION_1_2 AVAILABLE_WEBKIT_VERSION_1_1_AND_LATER
247 * DEPRECATED_IN_WEBKIT_VERSION_1_2_AND_LATER
249 * Used on types deprecated in WebKit 1.2
251 #if WEBKIT_VERSION_MIN_REQUIRED >= WEBKIT_VERSION_1_2
252 #define DEPRECATED_IN_WEBKIT_VERSION_1_2_AND_LATER DEPRECATED_ATTRIBUTE
254 #define DEPRECATED_IN_WEBKIT_VERSION_1_2_AND_LATER
263 * AVAILABLE_WEBKIT_VERSION_1_3_AND_LATER
265 * Used on declarations introduced in WebKit 1.3
267 #if WEBKIT_VERSION_MAX_ALLOWED < WEBKIT_VERSION_1_3
268 #define AVAILABLE_WEBKIT_VERSION_1_3_AND_LATER UNAVAILABLE_ATTRIBUTE
269 #elif WEBKIT_VERSION_MIN_REQUIRED < WEBKIT_VERSION_1_3
270 #define AVAILABLE_WEBKIT_VERSION_1_3_AND_LATER WEAK_IMPORT_ATTRIBUTE
272 #define AVAILABLE_WEBKIT_VERSION_1_3_AND_LATER
276 * AVAILABLE_WEBKIT_VERSION_1_3_AND_LATER_BUT_DEPRECATED
278 * Used on declarations introduced in WebKit 1.3,
279 * and deprecated in WebKit 1.3
281 #if WEBKIT_VERSION_MIN_REQUIRED >= WEBKIT_VERSION_1_3
282 #define AVAILABLE_WEBKIT_VERSION_1_3_AND_LATER_BUT_DEPRECATED DEPRECATED_ATTRIBUTE
284 #define AVAILABLE_WEBKIT_VERSION_1_3_AND_LATER_BUT_DEPRECATED AVAILABLE_WEBKIT_VERSION_1_3_AND_LATER
288 * AVAILABLE_WEBKIT_VERSION_1_0_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERSION_1_3
290 * Used on declarations introduced in WebKit 1.0,
291 * but later deprecated in WebKit 1.3
293 #if WEBKIT_VERSION_MIN_REQUIRED >= WEBKIT_VERSION_1_3
294 #define AVAILABLE_WEBKIT_VERSION_1_0_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERSION_1_3 DEPRECATED_ATTRIBUTE
296 #define AVAILABLE_WEBKIT_VERSION_1_0_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERSION_1_3 AVAILABLE_WEBKIT_VERSION_1_0_AND_LATER
300 * AVAILABLE_WEBKIT_VERSION_1_1_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERSION_1_3
302 * Used on declarations introduced in WebKit 1.1,
303 * but later deprecated in WebKit 1.3
305 #if WEBKIT_VERSION_MIN_REQUIRED >= WEBKIT_VERSION_1_3
306 #define AVAILABLE_WEBKIT_VERSION_1_1_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERSION_1_3 DEPRECATED_ATTRIBUTE
308 #define AVAILABLE_WEBKIT_VERSION_1_1_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERSION_1_3 AVAILABLE_WEBKIT_VERSION_1_1_AND_LATER
312 * AVAILABLE_WEBKIT_VERSION_1_2_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERSION_1_3
314 * Used on declarations introduced in WebKit 1.2,
315 * but later deprecated in WebKit 1.3
317 #if WEBKIT_VERSION_MIN_REQUIRED >= WEBKIT_VERSION_1_3
318 #define AVAILABLE_WEBKIT_VERSION_1_2_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERSION_1_3 DEPRECATED_ATTRIBUTE
320 #define AVAILABLE_WEBKIT_VERSION_1_2_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERSION_1_3 AVAILABLE_WEBKIT_VERSION_1_2_AND_LATER
324 * DEPRECATED_IN_WEBKIT_VERSION_1_3_AND_LATER
326 * Used on types deprecated in WebKit 1.3
328 #if WEBKIT_VERSION_MIN_REQUIRED >= WEBKIT_VERSION_1_3
329 #define DEPRECATED_IN_WEBKIT_VERSION_1_3_AND_LATER DEPRECATED_ATTRIBUTE
331 #define DEPRECATED_IN_WEBKIT_VERSION_1_3_AND_LATER
340 * AVAILABLE_WEBKIT_VERSION_2_0_AND_LATER
342 * Used on declarations introduced in WebKit 2.0
344 #if WEBKIT_VERSION_MAX_ALLOWED < WEBKIT_VERSION_2_0
345 #define AVAILABLE_WEBKIT_VERSION_2_0_AND_LATER UNAVAILABLE_ATTRIBUTE
346 #elif WEBKIT_VERSION_MIN_REQUIRED < WEBKIT_VERSION_2_0
347 #define AVAILABLE_WEBKIT_VERSION_2_0_AND_LATER WEAK_IMPORT_ATTRIBUTE
349 #define AVAILABLE_WEBKIT_VERSION_2_0_AND_LATER
353 * AVAILABLE_WEBKIT_VERSION_2_0_AND_LATER_BUT_DEPRECATED
355 * Used on declarations introduced in WebKit 2.0,
356 * and deprecated in WebKit 2.0
358 #if WEBKIT_VERSION_MIN_REQUIRED >= WEBKIT_VERSION_2_0
359 #define AVAILABLE_WEBKIT_VERSION_2_0_AND_LATER_BUT_DEPRECATED DEPRECATED_ATTRIBUTE
361 #define AVAILABLE_WEBKIT_VERSION_2_0_AND_LATER_BUT_DEPRECATED AVAILABLE_WEBKIT_VERSION_2_0_AND_LATER
365 * AVAILABLE_WEBKIT_VERSION_1_0_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERSION_2_0
367 * Used on declarations introduced in WebKit 1.0,
368 * but later deprecated in WebKit 2.0
370 #if WEBKIT_VERSION_MIN_REQUIRED >= WEBKIT_VERSION_2_0
371 #define AVAILABLE_WEBKIT_VERSION_1_0_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERSION_2_0 DEPRECATED_ATTRIBUTE
373 #define AVAILABLE_WEBKIT_VERSION_1_0_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERSION_2_0 AVAILABLE_WEBKIT_VERSION_1_0_AND_LATER
377 * AVAILABLE_WEBKIT_VERSION_1_1_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERSION_2_0
379 * Used on declarations introduced in WebKit 1.1,
380 * but later deprecated in WebKit 2.0
382 #if WEBKIT_VERSION_MIN_REQUIRED >= WEBKIT_VERSION_2_0
383 #define AVAILABLE_WEBKIT_VERSION_1_1_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERSION_2_0 DEPRECATED_ATTRIBUTE
385 #define AVAILABLE_WEBKIT_VERSION_1_1_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERSION_2_0 AVAILABLE_WEBKIT_VERSION_1_1_AND_LATER
389 * AVAILABLE_WEBKIT_VERSION_1_2_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERSION_2_0
391 * Used on declarations introduced in WebKit 1.2,
392 * but later deprecated in WebKit 2.0
394 #if WEBKIT_VERSION_MIN_REQUIRED >= WEBKIT_VERSION_2_0
395 #define AVAILABLE_WEBKIT_VERSION_1_2_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERSION_2_0 DEPRECATED_ATTRIBUTE
397 #define AVAILABLE_WEBKIT_VERSION_1_2_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERSION_2_0 AVAILABLE_WEBKIT_VERSION_1_2_AND_LATER
401 * AVAILABLE_WEBKIT_VERSION_1_3_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERSION_2_0
403 * Used on declarations introduced in WebKit 1.3,
404 * but later deprecated in WebKit 2.0
406 #if WEBKIT_VERSION_MIN_REQUIRED >= WEBKIT_VERSION_2_0
407 #define AVAILABLE_WEBKIT_VERSION_1_3_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERSION_2_0 DEPRECATED_ATTRIBUTE
409 #define AVAILABLE_WEBKIT_VERSION_1_3_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERSION_2_0 AVAILABLE_WEBKIT_VERSION_1_3_AND_LATER
413 * DEPRECATED_IN_WEBKIT_VERSION_2_0_AND_LATER
415 * Used on types deprecated in WebKit 2.0
417 #if WEBKIT_VERSION_MIN_REQUIRED >= WEBKIT_VERSION_2_0
418 #define DEPRECATED_IN_WEBKIT_VERSION_2_0_AND_LATER DEPRECATED_ATTRIBUTE
420 #define DEPRECATED_IN_WEBKIT_VERSION_2_0_AND_LATER
429 * AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER
431 * Used on declarations introduced in WebKit 3.0
433 #if WEBKIT_VERSION_MAX_ALLOWED < WEBKIT_VERSION_3_0
434 #define AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER UNAVAILABLE_ATTRIBUTE
435 #elif WEBKIT_VERSION_MIN_REQUIRED < WEBKIT_VERSION_3_0
436 #define AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER WEAK_IMPORT_ATTRIBUTE
438 #define AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER
442 * AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER_BUT_DEPRECATED
444 * Used on declarations introduced in WebKit 3.0,
445 * and deprecated in WebKit 3.0
447 #if WEBKIT_VERSION_MIN_REQUIRED >= WEBKIT_VERSION_3_0
448 #define AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER_BUT_DEPRECATED DEPRECATED_ATTRIBUTE
450 #define AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER_BUT_DEPRECATED AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER
454 * AVAILABLE_WEBKIT_VERSION_1_0_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERSION_3_0
456 * Used on declarations introduced in WebKit 1.0,
457 * but later deprecated in WebKit 3.0
459 #if WEBKIT_VERSION_MIN_REQUIRED >= WEBKIT_VERSION_3_0
460 #define AVAILABLE_WEBKIT_VERSION_1_0_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERSION_3_0 DEPRECATED_ATTRIBUTE
462 #define AVAILABLE_WEBKIT_VERSION_1_0_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERSION_3_0 AVAILABLE_WEBKIT_VERSION_1_0_AND_LATER
466 * AVAILABLE_WEBKIT_VERSION_1_1_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERSION_3_0
468 * Used on declarations introduced in WebKit 1.1,
469 * but later deprecated in WebKit 3.0
471 #if WEBKIT_VERSION_MIN_REQUIRED >= WEBKIT_VERSION_3_0
472 #define AVAILABLE_WEBKIT_VERSION_1_1_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERSION_3_0 DEPRECATED_ATTRIBUTE
474 #define AVAILABLE_WEBKIT_VERSION_1_1_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERSION_3_0 AVAILABLE_WEBKIT_VERSION_1_1_AND_LATER
478 * AVAILABLE_WEBKIT_VERSION_1_2_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERSION_3_0
480 * Used on declarations introduced in WebKit 1.2,
481 * but later deprecated in WebKit 3.0
483 #if WEBKIT_VERSION_MIN_REQUIRED >= WEBKIT_VERSION_3_0
484 #define AVAILABLE_WEBKIT_VERSION_1_2_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERSION_3_0 DEPRECATED_ATTRIBUTE
486 #define AVAILABLE_WEBKIT_VERSION_1_2_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERSION_3_0 AVAILABLE_WEBKIT_VERSION_1_2_AND_LATER
490 * AVAILABLE_WEBKIT_VERSION_1_3_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERSION_3_0
492 * Used on declarations introduced in WebKit 1.3,
493 * but later deprecated in WebKit 3.0
495 #if WEBKIT_VERSION_MIN_REQUIRED >= WEBKIT_VERSION_3_0
496 #define AVAILABLE_WEBKIT_VERSION_1_3_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERSION_3_0 DEPRECATED_ATTRIBUTE
498 #define AVAILABLE_WEBKIT_VERSION_1_3_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERSION_3_0 AVAILABLE_WEBKIT_VERSION_1_3_AND_LATER
502 * AVAILABLE_WEBKIT_VERSION_2_0_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERSION_3_0
504 * Used on declarations introduced in WebKit 2.0,
505 * but later deprecated in WebKit 3.0
507 #if WEBKIT_VERSION_MIN_REQUIRED >= WEBKIT_VERSION_3_0
508 #define AVAILABLE_WEBKIT_VERSION_2_0_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERSION_3_0 DEPRECATED_ATTRIBUTE
510 #define AVAILABLE_WEBKIT_VERSION_2_0_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERSION_3_0 AVAILABLE_WEBKIT_VERSION_2_0_AND_LATER
514 * DEPRECATED_IN_WEBKIT_VERSION_3_0_AND_LATER
516 * Used on types deprecated in WebKit 3.0
518 #if WEBKIT_VERSION_MIN_REQUIRED >= WEBKIT_VERSION_3_0
519 #define DEPRECATED_IN_WEBKIT_VERSION_3_0_AND_LATER DEPRECATED_ATTRIBUTE
521 #define DEPRECATED_IN_WEBKIT_VERSION_3_0_AND_LATER
530 * AVAILABLE_WEBKIT_VERSION_3_1_AND_LATER
532 * Used on declarations introduced in WebKit 3.1
534 #if WEBKIT_VERSION_MAX_ALLOWED < WEBKIT_VERSION_3_1
535 #define AVAILABLE_WEBKIT_VERSION_3_1_AND_LATER UNAVAILABLE_ATTRIBUTE
536 #elif WEBKIT_VERSION_MIN_REQUIRED < WEBKIT_VERSION_3_1
537 #define AVAILABLE_WEBKIT_VERSION_3_1_AND_LATER WEAK_IMPORT_ATTRIBUTE
539 #define AVAILABLE_WEBKIT_VERSION_3_1_AND_LATER
543 * AVAILABLE_WEBKIT_VERSION_3_1_AND_LATER_BUT_DEPRECATED
545 * Used on declarations introduced in WebKit 3.1,
546 * and deprecated in WebKit 3.1
548 #if WEBKIT_VERSION_MIN_REQUIRED >= WEBKIT_VERSION_3_1
549 #define AVAILABLE_WEBKIT_VERSION_3_1_AND_LATER_BUT_DEPRECATED DEPRECATED_ATTRIBUTE
551 #define AVAILABLE_WEBKIT_VERSION_3_1_AND_LATER_BUT_DEPRECATED AVAILABLE_WEBKIT_VERSION_3_1_AND_LATER
555 * AVAILABLE_WEBKIT_VERSION_1_0_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERSION_3_1
557 * Used on declarations introduced in WebKit 1.0,
558 * but later deprecated in WebKit 3.1
560 #if WEBKIT_VERSION_MIN_REQUIRED >= WEBKIT_VERSION_3_1
561 #define AVAILABLE_WEBKIT_VERSION_1_0_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERSION_3_1 DEPRECATED_ATTRIBUTE
563 #define AVAILABLE_WEBKIT_VERSION_1_0_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERSION_3_1 AVAILABLE_WEBKIT_VERSION_1_0_AND_LATER
567 * AVAILABLE_WEBKIT_VERSION_1_1_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERSION_3_1
569 * Used on declarations introduced in WebKit 1.1,
570 * but later deprecated in WebKit 3.1
572 #if WEBKIT_VERSION_MIN_REQUIRED >= WEBKIT_VERSION_3_1
573 #define AVAILABLE_WEBKIT_VERSION_1_1_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERSION_3_1 DEPRECATED_ATTRIBUTE
575 #define AVAILABLE_WEBKIT_VERSION_1_1_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERSION_3_1 AVAILABLE_WEBKIT_VERSION_1_1_AND_LATER
579 * AVAILABLE_WEBKIT_VERSION_1_2_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERSION_3_1
581 * Used on declarations introduced in WebKit 1.2,
582 * but later deprecated in WebKit 3.1
584 #if WEBKIT_VERSION_MIN_REQUIRED >= WEBKIT_VERSION_3_1
585 #define AVAILABLE_WEBKIT_VERSION_1_2_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERSION_3_1 DEPRECATED_ATTRIBUTE
587 #define AVAILABLE_WEBKIT_VERSION_1_2_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERSION_3_1 AVAILABLE_WEBKIT_VERSION_1_2_AND_LATER
591 * AVAILABLE_WEBKIT_VERSION_1_3_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERSION_3_1
593 * Used on declarations introduced in WebKit 1.3,
594 * but later deprecated in WebKit 3.1
596 #if WEBKIT_VERSION_MIN_REQUIRED >= WEBKIT_VERSION_3_1
597 #define AVAILABLE_WEBKIT_VERSION_1_3_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERSION_3_1 DEPRECATED_ATTRIBUTE
599 #define AVAILABLE_WEBKIT_VERSION_1_3_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERSION_3_1 AVAILABLE_WEBKIT_VERSION_1_3_AND_LATER
603 * AVAILABLE_WEBKIT_VERSION_2_0_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERSION_3_1
605 * Used on declarations introduced in WebKit 2.0,
606 * but later deprecated in WebKit 3.1
608 #if WEBKIT_VERSION_MIN_REQUIRED >= WEBKIT_VERSION_3_1
609 #define AVAILABLE_WEBKIT_VERSION_2_0_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERSION_3_1 DEPRECATED_ATTRIBUTE
611 #define AVAILABLE_WEBKIT_VERSION_2_0_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERSION_3_1 AVAILABLE_WEBKIT_VERSION_2_0_AND_LATER
615 * AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERSION_3_1
617 * Used on declarations introduced in WebKit 3.0,
618 * but later deprecated in WebKit 3.1
620 #if WEBKIT_VERSION_MIN_REQUIRED >= WEBKIT_VERSION_3_1
621 #define AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERSION_3_1 DEPRECATED_ATTRIBUTE
623 #define AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERSION_3_1 AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER
627 * DEPRECATED_IN_WEBKIT_VERSION_3_1_AND_LATER
629 * Used on types deprecated in WebKit 3.1
631 #if WEBKIT_VERSION_MIN_REQUIRED >= WEBKIT_VERSION_3_1
632 #define DEPRECATED_IN_WEBKIT_VERSION_3_1_AND_LATER DEPRECATED_ATTRIBUTE
634 #define DEPRECATED_IN_WEBKIT_VERSION_3_1_AND_LATER
643 * AVAILABLE_AFTER_WEBKIT_VERSION_3_1
645 * Used on declarations introduced after WebKit 3.1
647 #if WEBKIT_VERSION_MAX_ALLOWED < WEBKIT_VERSION_LATEST
648 #define AVAILABLE_AFTER_WEBKIT_VERSION_3_1 UNAVAILABLE_ATTRIBUTE
649 #elif WEBKIT_VERSION_MIN_REQUIRED < WEBKIT_VERSION_LATEST
650 #define AVAILABLE_AFTER_WEBKIT_VERSION_3_1 WEAK_IMPORT_ATTRIBUTE
652 #define AVAILABLE_AFTER_WEBKIT_VERSION_3_1
656 * AVAILABLE_AFTER_WEBKIT_VERSION_3_1_BUT_DEPRECATED
658 * Used on declarations introduced after WebKit 3.1,
659 * and deprecated after WebKit 3.1
661 #if WEBKIT_VERSION_MIN_REQUIRED >= WEBKIT_VERSION_LATEST
662 #define AVAILABLE_AFTER_WEBKIT_VERSION_3_1_BUT_DEPRECATED DEPRECATED_ATTRIBUTE
664 #define AVAILABLE_AFTER_WEBKIT_VERSION_3_1_BUT_DEPRECATED AVAILABLE_AFTER_WEBKIT_VERSION_3_1
668 * AVAILABLE_WEBKIT_VERSION_1_0_AND_LATER_BUT_DEPRECATED_AFTER_WEBKIT_VERSION_3_1
670 * Used on declarations introduced in WebKit 1.0,
671 * but later deprecated after WebKit 3.1
673 #if WEBKIT_VERSION_MIN_REQUIRED >= WEBKIT_VERSION_LATEST
674 #define AVAILABLE_WEBKIT_VERSION_1_0_AND_LATER_BUT_DEPRECATED_AFTER_WEBKIT_VERSION_3_1 DEPRECATED_ATTRIBUTE
676 #define AVAILABLE_WEBKIT_VERSION_1_0_AND_LATER_BUT_DEPRECATED_AFTER_WEBKIT_VERSION_3_1 AVAILABLE_WEBKIT_VERSION_1_0_AND_LATER
680 * AVAILABLE_WEBKIT_VERSION_1_1_AND_LATER_BUT_DEPRECATED_AFTER_WEBKIT_VERSION_3_1
682 * Used on declarations introduced in WebKit 1.1,
683 * but later deprecated after WebKit 3.1
685 #if WEBKIT_VERSION_MIN_REQUIRED >= WEBKIT_VERSION_LATEST
686 #define AVAILABLE_WEBKIT_VERSION_1_1_AND_LATER_BUT_DEPRECATED_AFTER_WEBKIT_VERSION_3_1 DEPRECATED_ATTRIBUTE
688 #define AVAILABLE_WEBKIT_VERSION_1_1_AND_LATER_BUT_DEPRECATED_AFTER_WEBKIT_VERSION_3_1 AVAILABLE_WEBKIT_VERSION_1_1_AND_LATER
692 * AVAILABLE_WEBKIT_VERSION_1_2_AND_LATER_BUT_DEPRECATED_AFTER_WEBKIT_VERSION_3_1
694 * Used on declarations introduced in WebKit 1.2,
695 * but later deprecated after WebKit 3.1
697 #if WEBKIT_VERSION_MIN_REQUIRED >= WEBKIT_VERSION_LATEST
698 #define AVAILABLE_WEBKIT_VERSION_1_2_AND_LATER_BUT_DEPRECATED_AFTER_WEBKIT_VERSION_3_1 DEPRECATED_ATTRIBUTE
700 #define AVAILABLE_WEBKIT_VERSION_1_2_AND_LATER_BUT_DEPRECATED_AFTER_WEBKIT_VERSION_3_1 AVAILABLE_WEBKIT_VERSION_1_2_AND_LATER
704 * AVAILABLE_WEBKIT_VERSION_1_3_AND_LATER_BUT_DEPRECATED_AFTER_WEBKIT_VERSION_3_1
706 * Used on declarations introduced in WebKit 1.3,
707 * but later deprecated after WebKit 3.1
709 #if WEBKIT_VERSION_MIN_REQUIRED >= WEBKIT_VERSION_LATEST
710 #define AVAILABLE_WEBKIT_VERSION_1_3_AND_LATER_BUT_DEPRECATED_AFTER_WEBKIT_VERSION_3_1 DEPRECATED_ATTRIBUTE
712 #define AVAILABLE_WEBKIT_VERSION_1_3_AND_LATER_BUT_DEPRECATED_AFTER_WEBKIT_VERSION_3_1 AVAILABLE_WEBKIT_VERSION_1_3_AND_LATER
716 * AVAILABLE_WEBKIT_VERSION_2_0_AND_LATER_BUT_DEPRECATED_AFTER_WEBKIT_VERSION_3_1
718 * Used on declarations introduced in WebKit 2.0,
719 * but later deprecated after WebKit 3.1
721 #if WEBKIT_VERSION_MIN_REQUIRED >= WEBKIT_VERSION_LATEST
722 #define AVAILABLE_WEBKIT_VERSION_2_0_AND_LATER_BUT_DEPRECATED_AFTER_WEBKIT_VERSION_3_1 DEPRECATED_ATTRIBUTE
724 #define AVAILABLE_WEBKIT_VERSION_2_0_AND_LATER_BUT_DEPRECATED_AFTER_WEBKIT_VERSION_3_1 AVAILABLE_WEBKIT_VERSION_2_0_AND_LATER
728 * AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER_BUT_DEPRECATED_AFTER_WEBKIT_VERSION_3_1
730 * Used on declarations introduced in WebKit 3.0,
731 * but later deprecated after WebKit 3.1
733 #if WEBKIT_VERSION_MIN_REQUIRED >= WEBKIT_VERSION_LATEST
734 #define AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER_BUT_DEPRECATED_AFTER_WEBKIT_VERSION_3_1 DEPRECATED_ATTRIBUTE
736 #define AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER_BUT_DEPRECATED_AFTER_WEBKIT_VERSION_3_1 AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER
740 * AVAILABLE_WEBKIT_VERSION_3_1_AND_LATER_BUT_DEPRECATED_AFTER_WEBKIT_VERSION_3_1
742 * Used on declarations introduced in WebKit 3.1,
743 * but later deprecated after WebKit 3.1
745 #if WEBKIT_VERSION_MIN_REQUIRED >= WEBKIT_VERSION_LATEST
746 #define AVAILABLE_WEBKIT_VERSION_3_1_AND_LATER_BUT_DEPRECATED_AFTER_WEBKIT_VERSION_3_1 DEPRECATED_ATTRIBUTE
748 #define AVAILABLE_WEBKIT_VERSION_3_1_AND_LATER_BUT_DEPRECATED_AFTER_WEBKIT_VERSION_3_1 AVAILABLE_WEBKIT_VERSION_3_1_AND_LATER
752 * DEPRECATED_AFTER_WEBKIT_VERSION_3_1
754 * Used on types deprecated after WebKit 3.1
756 #if WEBKIT_VERSION_MIN_REQUIRED >= WEBKIT_VERSION_LATEST
757 #define DEPRECATED_AFTER_WEBKIT_VERSION_3_1 DEPRECATED_ATTRIBUTE
759 #define DEPRECATED_AFTER_WEBKIT_VERSION_3_1
763 #endif /* __WebKitAvailability__ */