OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. | 2 * Copyright 2006, 2007, 2008, 2009, 2010, 2011 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 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 10 matching lines...) Expand all Loading... |
21 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | 21 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
22 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | 22 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
23 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | 23 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 */ | 27 */ |
28 | 28 |
29 #import "WebSystemInterface.h" | 29 #import "WebSystemInterface.h" |
30 | 30 |
31 // Needed for builds not using PCH to expose BUILDING_ macros, see bug 32753. | |
32 #include <wtf/Platform.h> | |
33 | |
34 #import <WebCoreSystemInterface.h> | 31 #import <WebCoreSystemInterface.h> |
35 #import <WebKitSystemInterface.h> | 32 #import <WebKitSystemInterface.h> |
36 | 33 |
37 #define INIT(function) wk##function = WK##function | 34 #define INIT(function) wk##function = WK##function |
38 | 35 |
39 void InitWebCoreSystemInterface(void) | 36 void InitWebCoreSystemInterface(void) |
40 { | 37 { |
41 static bool didInit; | 38 static bool didInit; |
42 if (didInit) | 39 if (didInit) |
43 return; | 40 return; |
44 | 41 |
45 INIT(AdvanceDefaultButtonPulseAnimation); | 42 INIT(AdvanceDefaultButtonPulseAnimation); |
46 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1070 | 43 INIT(DrawBezeledTextFieldCell); |
47 INIT(CALayerEnumerateRectsBeingDrawnWithBlock); | |
48 #endif | |
49 INIT(CGContextGetShouldSmoothFonts); | |
50 INIT(CGPatternCreateWithImageAndTransform); | |
51 INIT(CGContextResetClip); | |
52 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1080 | |
53 INIT(CGContextDrawsWithCorrectShadowOffsets); | |
54 #endif | |
55 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090 | |
56 INIT(CTFontTransformGlyphs); | |
57 #endif | |
58 INIT(CopyCFLocalizationPreferredName); | |
59 INIT(CopyCONNECTProxyResponse); | |
60 INIT(CopyNSURLResponseStatusLine); | |
61 INIT(CreateCustomCFReadStream); | |
62 INIT(DrawCapsLockIndicator); | 44 INIT(DrawCapsLockIndicator); |
63 INIT(DrawBezeledTextArea); | 45 INIT(DrawBezeledTextArea); |
64 INIT(DrawBezeledTextFieldCell); | 46 INIT(GetFontInLanguageForRange); |
65 INIT(DrawFocusRing); | |
66 INIT(DrawTextFieldCellFocusRing); | |
67 INIT(GetExtensionsForMIMEType); | |
68 INIT(GetFontInLanguageForCharacter); | 47 INIT(GetFontInLanguageForCharacter); |
69 INIT(GetFontInLanguageForRange); | |
70 INIT(GetGlyphTransformedAdvances); | 48 INIT(GetGlyphTransformedAdvances); |
71 INIT(GetHTTPPipeliningPriority); | |
72 INIT(GetMIMETypeForExtension); | |
73 INIT(GetNSURLResponseLastModifiedDate); | |
74 INIT(SignedPublicKeyAndChallengeString); | |
75 INIT(GetPreferredExtensionForMIMEType); | |
76 INIT(GetWheelEventDeltas); | |
77 INIT(InitializeMaximumHTTPConnectionCountPerHost); | |
78 INIT(WindowSetAlpha); | |
79 INIT(WindowSetScaledFrame); | |
80 INIT(PopupMenu); | |
81 INIT(SetBaseCTM); | |
82 INIT(SetCGFontRenderingMode); | |
83 INIT(SetCONNECTProxyAuthorizationForStream); | |
84 INIT(SetCONNECTProxyForStream); | |
85 INIT(SetDragImage); | |
86 INIT(SetHTTPPipeliningMaximumPriority); | |
87 INIT(SetHTTPPipeliningPriority); | |
88 INIT(SetHTTPPipeliningMinimumFastLanePriority); | |
89 INIT(SetNSURLConnectionDefersCallbacks); | |
90 INIT(SetNSURLRequestShouldContentSniff); | |
91 INIT(SetPatternPhaseInUserSpace); | |
92 INIT(GetUserToBaseCTM); | |
93 INIT(SetUpFontCache); | 49 INIT(SetUpFontCache); |
94 INIT(SignalCFReadStreamEnd); | |
95 INIT(SignalCFReadStreamError); | |
96 INIT(SignalCFReadStreamHasBytes); | |
97 INIT(QTIncludeOnlyModernMediaFileTypes); | |
98 INIT(QTMovieDataRate); | |
99 INIT(QTMovieDisableComponent); | |
100 INIT(QTMovieMaxTimeLoaded); | |
101 INIT(QTMovieMaxTimeLoadedChangeNotification); | |
102 INIT(QTMovieMaxTimeSeekable); | |
103 INIT(QTMovieGetType); | |
104 INIT(QTMovieHasClosedCaptions); | |
105 INIT(QTMovieResolvedURL); | |
106 INIT(QTMovieSetShowClosedCaptions); | |
107 INIT(QTMovieSelectPreferredAlternates); | |
108 INIT(QTMovieViewSetDrawSynchronously); | |
109 INIT(QTGetSitesInMediaDownloadCache); | |
110 INIT(QTClearMediaDownloadCacheForSite); | |
111 INIT(QTClearMediaDownloadCache); | |
112 | |
113 INIT(GetGlyphsForCharacters); | 50 INIT(GetGlyphsForCharacters); |
114 INIT(GetVerticalGlyphsForCharacters); | 51 INIT(GetVerticalGlyphsForCharacters); |
115 | |
116 #if __MAC_OS_X_VERSION_MIN_REQUIRED <= 1060 | |
117 INIT(GetHyphenationLocationBeforeIndex); | |
118 INIT(GetNSEventMomentumPhase); | |
119 #endif | |
120 | |
121 INIT(CreateCTLineWithUniCharProvider); | 52 INIT(CreateCTLineWithUniCharProvider); |
122 | 53 |
123 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1070 | |
124 INIT(IOSurfaceContextCreate); | |
125 INIT(IOSurfaceContextCreateImage); | |
126 INIT(CreateCTTypesetterWithUniCharProviderAndOptions); | |
127 INIT(RecommendedScrollerStyle); | |
128 INIT(ExecutableWasLinkedOnOrBeforeSnowLeopard); | |
129 INIT(SetCrashReportApplicationSpecificInformation); | |
130 INIT(CopyDefaultSearchProviderDisplayName); | |
131 INIT(AVAssetResolvedURL); | |
132 INIT(Cursor); | |
133 #endif | |
134 | |
135 INIT(GetAXTextMarkerTypeID); | |
136 INIT(GetAXTextMarkerRangeTypeID); | |
137 INIT(CreateAXTextMarker); | |
138 INIT(GetBytesFromAXTextMarker); | |
139 INIT(CreateAXTextMarkerRange); | |
140 INIT(CopyAXTextMarkerRangeStart); | |
141 INIT(CopyAXTextMarkerRangeEnd); | |
142 INIT(AccessibilityHandleFocusChanged); | |
143 INIT(CreateAXUIElementRef); | |
144 INIT(UnregisterUniqueIdForElement); | |
145 INIT(CreatePrivateStorageSession); | |
146 INIT(CopyRequestWithStorageSession); | |
147 INIT(CopyHTTPCookieStorage); | |
148 INIT(GetHTTPCookieAcceptPolicy); | |
149 INIT(HTTPCookiesForURL); | |
150 INIT(SetHTTPCookiesForURL); | |
151 INIT(DeleteHTTPCookie); | |
152 | |
153 INIT(GetCFURLResponseMIMEType); | |
154 INIT(GetCFURLResponseURL); | |
155 INIT(GetCFURLResponseHTTPResponse); | |
156 INIT(CopyCFURLResponseSuggestedFilename); | |
157 INIT(SetCFURLResponseMIMEType); | |
158 | |
159 INIT(SetMetadataURL); | |
160 | |
161 didInit = true; | 54 didInit = true; |
162 } | 55 } |
OLD | NEW |