| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 releases span multiple versions of Mac OS X. | 31 releases span multiple versions of Mac OS X. |
| 32 */ | 32 */ |
| 33 | 33 |
| 34 #define WEBKIT_VERSION_1_0 0x0100 | 34 #define WEBKIT_VERSION_1_0 0x0100 |
| 35 #define WEBKIT_VERSION_1_1 0x0110 | 35 #define WEBKIT_VERSION_1_1 0x0110 |
| 36 #define WEBKIT_VERSION_1_2 0x0120 | 36 #define WEBKIT_VERSION_1_2 0x0120 |
| 37 #define WEBKIT_VERSION_1_3 0x0130 | 37 #define WEBKIT_VERSION_1_3 0x0130 |
| 38 #define WEBKIT_VERSION_2_0 0x0200 | 38 #define WEBKIT_VERSION_2_0 0x0200 |
| 39 #define WEBKIT_VERSION_3_0 0x0300 | 39 #define WEBKIT_VERSION_3_0 0x0300 |
| 40 #define WEBKIT_VERSION_3_1 0x0310 | 40 #define WEBKIT_VERSION_3_1 0x0310 |
| 41 #define WEBKIT_VERSION_4_0 0x0400 |
| 41 #define WEBKIT_VERSION_LATEST 0x9999 | 42 #define WEBKIT_VERSION_LATEST 0x9999 |
| 42 | 43 |
| 43 #ifdef __APPLE__ | 44 #ifdef __APPLE__ |
| 44 #import <AvailabilityMacros.h> | 45 #import <AvailabilityMacros.h> |
| 45 #else | 46 #else |
| 46 /* | 47 /* |
| 47 * For non-Mac platforms, require the newest version. | 48 * For non-Mac platforms, require the newest version. |
| 48 */ | 49 */ |
| 49 #define WEBKIT_VERSION_MIN_REQUIRED WEBKIT_VERSION_LATEST | 50 #define WEBKIT_VERSION_MIN_REQUIRED WEBKIT_VERSION_LATEST |
| 50 /* | 51 /* |
| (...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 633 #else | 634 #else |
| 634 #define DEPRECATED_IN_WEBKIT_VERSION_3_1_AND_LATER | 635 #define DEPRECATED_IN_WEBKIT_VERSION_3_1_AND_LATER |
| 635 #endif | 636 #endif |
| 636 | 637 |
| 637 | 638 |
| 638 | 639 |
| 639 | 640 |
| 640 | 641 |
| 641 | 642 |
| 642 /* | 643 /* |
| 643 * AVAILABLE_AFTER_WEBKIT_VERSION_3_1 | 644 * AVAILABLE_IN_WEBKIT_VERSION_4_0 |
| 644 * | 645 * |
| 645 * Used on declarations introduced after WebKit 3.1 | 646 * Used on declarations introduced in WebKit 4.0 |
| 646 */ | 647 */ |
| 647 #if WEBKIT_VERSION_MAX_ALLOWED < WEBKIT_VERSION_LATEST | 648 #if WEBKIT_VERSION_MAX_ALLOWED < WEBKIT_VERSION_LATEST |
| 648 #define AVAILABLE_AFTER_WEBKIT_VERSION_3_1 UNAVAILABLE_ATTRIBUTE | 649 #define AVAILABLE_IN_WEBKIT_VERSION_4_0 UNAVAILABLE_ATTRIBUTE |
| 649 #elif WEBKIT_VERSION_MIN_REQUIRED < WEBKIT_VERSION_LATEST | 650 #elif WEBKIT_VERSION_MIN_REQUIRED < WEBKIT_VERSION_LATEST |
| 650 #define AVAILABLE_AFTER_WEBKIT_VERSION_3_1 WEAK_IMPORT_ATTRIBUTE | 651 #define AVAILABLE_IN_WEBKIT_VERSION_4_0 WEAK_IMPORT_ATTRIBUTE |
| 651 #else | 652 #else |
| 652 #define AVAILABLE_AFTER_WEBKIT_VERSION_3_1 | 653 #define AVAILABLE_IN_WEBKIT_VERSION_4_0 |
| 653 #endif | 654 #endif |
| 654 | 655 |
| 655 /* | 656 /* |
| 656 * AVAILABLE_AFTER_WEBKIT_VERSION_3_1_BUT_DEPRECATED | 657 * AVAILABLE_IN_WEBKIT_VERSION_4_0_BUT_DEPRECATED |
| 657 * | 658 * |
| 658 * Used on declarations introduced after WebKit 3.1, | 659 * Used on declarations introduced in WebKit 4.0, |
| 659 * and deprecated after WebKit 3.1 | 660 * and deprecated in WebKit 4.0 |
| 660 */ | 661 */ |
| 661 #if WEBKIT_VERSION_MIN_REQUIRED >= WEBKIT_VERSION_LATEST | 662 #if WEBKIT_VERSION_MIN_REQUIRED >= WEBKIT_VERSION_LATEST |
| 662 #define AVAILABLE_AFTER_WEBKIT_VERSION_3_1_BUT_DEPRECATED DEPRECATED_ATTR
IBUTE | 663 #define AVAILABLE_IN_WEBKIT_VERSION_4_0_BUT_DEPRECATED DEPRECATED_ATTRIBU
TE |
| 663 #else | 664 #else |
| 664 #define AVAILABLE_AFTER_WEBKIT_VERSION_3_1_BUT_DEPRECATED AVAILABLE_AFTER
_WEBKIT_VERSION_3_1 | 665 #define AVAILABLE_IN_WEBKIT_VERSION_4_0_BUT_DEPRECATED AVAILABLE_IN_WEBKI
T_VERSION_4_0 |
| 665 #endif | 666 #endif |
| 666 | 667 |
| 667 /* | 668 /* |
| 668 * AVAILABLE_WEBKIT_VERSION_1_0_AND_LATER_BUT_DEPRECATED_AFTER_WEBKIT_VERSION_3_
1 | 669 * AVAILABLE_WEBKIT_VERSION_1_0_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERSION_4_0 |
| 669 * | 670 * |
| 670 * Used on declarations introduced in WebKit 1.0, | 671 * Used on declarations introduced in WebKit 1.0, |
| 671 * but later deprecated after WebKit 3.1 | 672 * but later deprecated in WebKit 4.0 |
| 672 */ | 673 */ |
| 673 #if WEBKIT_VERSION_MIN_REQUIRED >= WEBKIT_VERSION_LATEST | 674 #if WEBKIT_VERSION_MIN_REQUIRED >= WEBKIT_VERSION_LATEST |
| 674 #define AVAILABLE_WEBKIT_VERSION_1_0_AND_LATER_BUT_DEPRECATED_AFTER_WEBKIT_V
ERSION_3_1 DEPRECATED_ATTRIBUTE | 675 #define AVAILABLE_WEBKIT_VERSION_1_0_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERS
ION_4_0 DEPRECATED_ATTRIBUTE |
| 675 #else | 676 #else |
| 676 #define AVAILABLE_WEBKIT_VERSION_1_0_AND_LATER_BUT_DEPRECATED_AFTER_WEBKIT_V
ERSION_3_1 AVAILABLE_WEBKIT_VERSION_1_0_AND_LATER | 677 #define AVAILABLE_WEBKIT_VERSION_1_0_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERS
ION_4_0 AVAILABLE_WEBKIT_VERSION_1_0_AND_LATER |
| 677 #endif | 678 #endif |
| 678 | 679 |
| 679 /* | 680 /* |
| 680 * AVAILABLE_WEBKIT_VERSION_1_1_AND_LATER_BUT_DEPRECATED_AFTER_WEBKIT_VERSION_3_
1 | 681 * AVAILABLE_WEBKIT_VERSION_1_1_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERSION_4_0 |
| 681 * | 682 * |
| 682 * Used on declarations introduced in WebKit 1.1, | 683 * Used on declarations introduced in WebKit 1.1, |
| 683 * but later deprecated after WebKit 3.1 | 684 * but later deprecated in WebKit 4.0 |
| 684 */ | 685 */ |
| 685 #if WEBKIT_VERSION_MIN_REQUIRED >= WEBKIT_VERSION_LATEST | 686 #if WEBKIT_VERSION_MIN_REQUIRED >= WEBKIT_VERSION_LATEST |
| 686 #define AVAILABLE_WEBKIT_VERSION_1_1_AND_LATER_BUT_DEPRECATED_AFTER_WEBKIT_V
ERSION_3_1 DEPRECATED_ATTRIBUTE | 687 #define AVAILABLE_WEBKIT_VERSION_1_1_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERS
ION_4_0 DEPRECATED_ATTRIBUTE |
| 687 #else | 688 #else |
| 688 #define AVAILABLE_WEBKIT_VERSION_1_1_AND_LATER_BUT_DEPRECATED_AFTER_WEBKIT_V
ERSION_3_1 AVAILABLE_WEBKIT_VERSION_1_1_AND_LATER | 689 #define AVAILABLE_WEBKIT_VERSION_1_1_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERS
ION_4_0 AVAILABLE_WEBKIT_VERSION_1_1_AND_LATER |
| 689 #endif | 690 #endif |
| 690 | 691 |
| 691 /* | 692 /* |
| 692 * AVAILABLE_WEBKIT_VERSION_1_2_AND_LATER_BUT_DEPRECATED_AFTER_WEBKIT_VERSION_3_
1 | 693 * AVAILABLE_WEBKIT_VERSION_1_2_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERSION_4_0 |
| 693 * | 694 * |
| 694 * Used on declarations introduced in WebKit 1.2, | 695 * Used on declarations introduced in WebKit 1.2, |
| 695 * but later deprecated after WebKit 3.1 | 696 * but later deprecated in WebKit 4.0 |
| 696 */ | 697 */ |
| 697 #if WEBKIT_VERSION_MIN_REQUIRED >= WEBKIT_VERSION_LATEST | 698 #if WEBKIT_VERSION_MIN_REQUIRED >= WEBKIT_VERSION_LATEST |
| 698 #define AVAILABLE_WEBKIT_VERSION_1_2_AND_LATER_BUT_DEPRECATED_AFTER_WEBKIT_V
ERSION_3_1 DEPRECATED_ATTRIBUTE | 699 #define AVAILABLE_WEBKIT_VERSION_1_2_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERS
ION_4_0 DEPRECATED_ATTRIBUTE |
| 699 #else | 700 #else |
| 700 #define AVAILABLE_WEBKIT_VERSION_1_2_AND_LATER_BUT_DEPRECATED_AFTER_WEBKIT_V
ERSION_3_1 AVAILABLE_WEBKIT_VERSION_1_2_AND_LATER | 701 #define AVAILABLE_WEBKIT_VERSION_1_2_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERS
ION_4_0 AVAILABLE_WEBKIT_VERSION_1_2_AND_LATER |
| 701 #endif | 702 #endif |
| 702 | 703 |
| 703 /* | 704 /* |
| 704 * AVAILABLE_WEBKIT_VERSION_1_3_AND_LATER_BUT_DEPRECATED_AFTER_WEBKIT_VERSION_3_
1 | 705 * AVAILABLE_WEBKIT_VERSION_1_3_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERSION_4_0 |
| 705 * | 706 * |
| 706 * Used on declarations introduced in WebKit 1.3, | 707 * Used on declarations introduced in WebKit 1.3, |
| 707 * but later deprecated after WebKit 3.1 | 708 * but later deprecated in WebKit 4.0 |
| 708 */ | 709 */ |
| 709 #if WEBKIT_VERSION_MIN_REQUIRED >= WEBKIT_VERSION_LATEST | 710 #if WEBKIT_VERSION_MIN_REQUIRED >= WEBKIT_VERSION_LATEST |
| 710 #define AVAILABLE_WEBKIT_VERSION_1_3_AND_LATER_BUT_DEPRECATED_AFTER_WEBKIT_V
ERSION_3_1 DEPRECATED_ATTRIBUTE | 711 #define AVAILABLE_WEBKIT_VERSION_1_3_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERS
ION_4_0 DEPRECATED_ATTRIBUTE |
| 711 #else | 712 #else |
| 712 #define AVAILABLE_WEBKIT_VERSION_1_3_AND_LATER_BUT_DEPRECATED_AFTER_WEBKIT_V
ERSION_3_1 AVAILABLE_WEBKIT_VERSION_1_3_AND_LATER | 713 #define AVAILABLE_WEBKIT_VERSION_1_3_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERS
ION_4_0 AVAILABLE_WEBKIT_VERSION_1_3_AND_LATER |
| 713 #endif | 714 #endif |
| 714 | 715 |
| 715 /* | 716 /* |
| 716 * AVAILABLE_WEBKIT_VERSION_2_0_AND_LATER_BUT_DEPRECATED_AFTER_WEBKIT_VERSION_3_
1 | 717 * AVAILABLE_WEBKIT_VERSION_2_0_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERSION_4_0 |
| 717 * | 718 * |
| 718 * Used on declarations introduced in WebKit 2.0, | 719 * Used on declarations introduced in WebKit 2.0, |
| 719 * but later deprecated after WebKit 3.1 | 720 * but later deprecated in WebKit 4.0 |
| 720 */ | 721 */ |
| 721 #if WEBKIT_VERSION_MIN_REQUIRED >= WEBKIT_VERSION_LATEST | 722 #if WEBKIT_VERSION_MIN_REQUIRED >= WEBKIT_VERSION_LATEST |
| 722 #define AVAILABLE_WEBKIT_VERSION_2_0_AND_LATER_BUT_DEPRECATED_AFTER_WEBKIT_V
ERSION_3_1 DEPRECATED_ATTRIBUTE | 723 #define AVAILABLE_WEBKIT_VERSION_2_0_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERS
ION_4_0 DEPRECATED_ATTRIBUTE |
| 723 #else | 724 #else |
| 724 #define AVAILABLE_WEBKIT_VERSION_2_0_AND_LATER_BUT_DEPRECATED_AFTER_WEBKIT_V
ERSION_3_1 AVAILABLE_WEBKIT_VERSION_2_0_AND_LATER | 725 #define AVAILABLE_WEBKIT_VERSION_2_0_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERS
ION_4_0 AVAILABLE_WEBKIT_VERSION_2_0_AND_LATER |
| 725 #endif | 726 #endif |
| 726 | 727 |
| 727 /* | 728 /* |
| 728 * AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER_BUT_DEPRECATED_AFTER_WEBKIT_VERSION_3_
1 | 729 * AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERSION_4_0 |
| 729 * | 730 * |
| 730 * Used on declarations introduced in WebKit 3.0, | 731 * Used on declarations introduced in WebKit 3.0, |
| 731 * but later deprecated after WebKit 3.1 | 732 * but later deprecated in WebKit 4.0 |
| 732 */ | 733 */ |
| 733 #if WEBKIT_VERSION_MIN_REQUIRED >= WEBKIT_VERSION_LATEST | 734 #if WEBKIT_VERSION_MIN_REQUIRED >= WEBKIT_VERSION_LATEST |
| 734 #define AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER_BUT_DEPRECATED_AFTER_WEBKIT_V
ERSION_3_1 DEPRECATED_ATTRIBUTE | 735 #define AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERS
ION_4_0 DEPRECATED_ATTRIBUTE |
| 735 #else | 736 #else |
| 736 #define AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER_BUT_DEPRECATED_AFTER_WEBKIT_V
ERSION_3_1 AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER | 737 #define AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERS
ION_4_0 AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER |
| 737 #endif | 738 #endif |
| 738 | 739 |
| 739 /* | 740 /* |
| 740 * AVAILABLE_WEBKIT_VERSION_3_1_AND_LATER_BUT_DEPRECATED_AFTER_WEBKIT_VERSION_3_
1 | 741 * AVAILABLE_WEBKIT_VERSION_3_1_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERSION_4_0 |
| 741 * | 742 * |
| 742 * Used on declarations introduced in WebKit 3.1, | 743 * Used on declarations introduced in WebKit 3.1, |
| 743 * but later deprecated after WebKit 3.1 | 744 * but later deprecated in WebKit 4.0 |
| 744 */ | 745 */ |
| 745 #if WEBKIT_VERSION_MIN_REQUIRED >= WEBKIT_VERSION_LATEST | 746 #if WEBKIT_VERSION_MIN_REQUIRED >= WEBKIT_VERSION_LATEST |
| 746 #define AVAILABLE_WEBKIT_VERSION_3_1_AND_LATER_BUT_DEPRECATED_AFTER_WEBKIT_V
ERSION_3_1 DEPRECATED_ATTRIBUTE | 747 #define AVAILABLE_WEBKIT_VERSION_3_1_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERS
ION_4_0 DEPRECATED_ATTRIBUTE |
| 747 #else | 748 #else |
| 748 #define AVAILABLE_WEBKIT_VERSION_3_1_AND_LATER_BUT_DEPRECATED_AFTER_WEBKIT_V
ERSION_3_1 AVAILABLE_WEBKIT_VERSION_3_1_AND_LATER | 749 #define AVAILABLE_WEBKIT_VERSION_3_1_AND_LATER_BUT_DEPRECATED_IN_WEBKIT_VERS
ION_4_0 AVAILABLE_WEBKIT_VERSION_3_1_AND_LATER |
| 749 #endif | 750 #endif |
| 750 | 751 |
| 751 /* | 752 /* |
| 752 * DEPRECATED_AFTER_WEBKIT_VERSION_3_1 | 753 * DEPRECATED_IN_WEBKIT_VERSION_4_0 |
| 753 * | 754 * |
| 754 * Used on types deprecated after WebKit 3.1 | 755 * Used on types deprecated in WebKit 4.0 |
| 755 */ | 756 */ |
| 756 #if WEBKIT_VERSION_MIN_REQUIRED >= WEBKIT_VERSION_LATEST | 757 #if WEBKIT_VERSION_MIN_REQUIRED >= WEBKIT_VERSION_LATEST |
| 757 #define DEPRECATED_AFTER_WEBKIT_VERSION_3_1 DEPRECATED_ATTRIBUTE | 758 #define DEPRECATED_IN_WEBKIT_VERSION_4_0 DEPRECATED_ATTRIBUTE |
| 758 #else | 759 #else |
| 759 #define DEPRECATED_AFTER_WEBKIT_VERSION_3_1 | 760 #define DEPRECATED_IN_WEBKIT_VERSION_4_0 |
| 760 #endif | 761 #endif |
| 761 | 762 |
| 762 | 763 |
| 763 #endif /* __WebKitAvailability__ */ | 764 #endif /* __WebKitAvailability__ */ |
| OLD | NEW |