2 * Copyright 2006, 2007, 2008, 2009, 2010, 2011 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
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.
13 * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of
14 * its contributors may be used to endorse or promote products derived
15 * from this software without specific prior written permission.
17 * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
18 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
19 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
20 * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
21 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
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
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
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 #import "WebSystemInterface.h"
31 // Needed for builds not using PCH to expose BUILDING_ macros, see bug 32753.
32 #include <wtf/Platform.h>
34 #import <WebCore/WebCoreSystemInterface.h>
35 #import <WebKitSystemInterface.h>
37 #define INIT(function) wk##function = WK##function
39 void InitWebCoreSystemInterface(void)
45 INIT(AdvanceDefaultButtonPulseAnimation);
46 INIT(CGContextGetShouldSmoothFonts);
47 INIT(CGPatternCreateWithImageAndTransform);
48 INIT(CopyCFLocalizationPreferredName);
49 INIT(CopyCONNECTProxyResponse);
50 INIT(CopyNSURLResponseStatusLine);
51 INIT(CreateCustomCFReadStream);
52 INIT(CreateNSURLConnectionDelegateProxy);
53 INIT(DrawCapsLockIndicator);
54 INIT(DrawBezeledTextArea);
55 INIT(DrawBezeledTextFieldCell);
57 INIT(DrawMediaUIPart);
58 INIT(DrawMediaSliderTrack);
59 INIT(DrawTextFieldCellFocusRing);
60 INIT(GetExtensionsForMIMEType);
61 INIT(GetFontInLanguageForCharacter);
62 INIT(GetFontInLanguageForRange);
63 INIT(GetGlyphTransformedAdvances);
64 INIT(GetHTTPPipeliningPriority);
65 INIT(GetMIMETypeForExtension);
66 INIT(GetNSURLResponseLastModifiedDate);
67 INIT(SignedPublicKeyAndChallengeString);
68 INIT(GetPreferredExtensionForMIMEType);
69 INIT(GetWheelEventDeltas);
70 INIT(HitTestMediaUIPart);
71 INIT(InitializeMaximumHTTPConnectionCountPerHost);
72 INIT(MeasureMediaUIPart);
73 INIT(CreateMediaUIBackgroundView);
74 INIT(CreateMediaUIControl);
76 INIT(WindowSetScaledFrame);
77 INIT(MediaControllerThemeAvailable);
79 INIT(SetCGFontRenderingMode);
80 INIT(SetCONNECTProxyAuthorizationForStream);
81 INIT(SetCONNECTProxyForStream);
82 INIT(SetCookieStoragePrivateBrowsingEnabled);
84 INIT(SetHTTPPipeliningMaximumPriority);
85 INIT(SetHTTPPipeliningPriority);
86 INIT(SetHTTPPipeliningMinimumFastLanePriority);
87 INIT(SetNSURLConnectionDefersCallbacks);
88 INIT(SetNSURLRequestShouldContentSniff);
89 INIT(SetPatternBaseCTM);
90 INIT(SetPatternPhaseInUserSpace);
91 INIT(GetUserToBaseCTM);
93 INIT(SignalCFReadStreamEnd);
94 INIT(SignalCFReadStreamError);
95 INIT(SignalCFReadStreamHasBytes);
96 INIT(QTIncludeOnlyModernMediaFileTypes);
97 INIT(QTMovieDataRate);
98 INIT(QTMovieDisableComponent);
99 INIT(QTMovieMaxTimeLoaded);
100 INIT(QTMovieMaxTimeLoadedChangeNotification);
101 INIT(QTMovieMaxTimeSeekable);
102 INIT(QTMovieGetType);
103 INIT(QTMovieHasClosedCaptions);
104 INIT(QTMovieResolvedURL);
105 INIT(QTMovieSetShowClosedCaptions);
106 INIT(QTMovieSelectPreferredAlternates);
107 INIT(QTMovieViewSetDrawSynchronously);
108 INIT(QTGetSitesInMediaDownloadCache);
109 INIT(QTClearMediaDownloadCacheForSite);
110 INIT(QTClearMediaDownloadCache);
112 INIT(GetGlyphsForCharacters);
113 INIT(GetVerticalGlyphsForCharacters);
115 #if defined(BUILDING_ON_LEOPARD) || defined(BUILDING_ON_SNOW_LEOPARD)
116 INIT(GetHyphenationLocationBeforeIndex);
117 INIT(GetNSEventMomentumPhase);
120 INIT(CreateCTLineWithUniCharProvider);
122 #if !defined(BUILDING_ON_LEOPARD) && !defined(BUILDING_ON_SNOW_LEOPARD)
123 INIT(IOSurfaceContextCreate);
124 INIT(IOSurfaceContextCreateImage);
125 INIT(CreateCTTypesetterWithUniCharProviderAndOptions);
126 INIT(RecommendedScrollerStyle);
127 INIT(ExecutableWasLinkedOnOrBeforeSnowLeopard);
128 INIT(CopyDefaultSearchProviderDisplayName);
129 INIT(AVAssetResolvedURL);
133 INIT(GetDefaultHTTPCookieStorage);
134 INIT(CopyCredentialFromCFPersistentStorage);
135 INIT(SetCFURLRequestShouldContentSniff);
136 INIT(CFURLRequestCopyHTTPRequestBodyParts);
137 INIT(CFURLRequestSetHTTPRequestBodyParts);
138 INIT(SetRequestStorageSession);
141 INIT(GetAXTextMarkerTypeID);
142 INIT(GetAXTextMarkerRangeTypeID);
143 INIT(CreateAXTextMarker);
144 INIT(GetBytesFromAXTextMarker);
145 INIT(CreateAXTextMarkerRange);
146 INIT(CopyAXTextMarkerRangeStart);
147 INIT(CopyAXTextMarkerRangeEnd);
148 INIT(AccessibilityHandleFocusChanged);
149 INIT(CreateAXUIElementRef);
150 INIT(UnregisterUniqueIdForElement);
151 INIT(CreatePrivateStorageSession);
152 INIT(CopyRequestWithStorageSession);
153 INIT(CopyHTTPCookieStorage);
154 INIT(GetHTTPCookieAcceptPolicy);
155 INIT(HTTPCookiesForURL);
156 INIT(SetHTTPCookiesForURL);
157 INIT(DeleteHTTPCookie);
159 INIT(GetCFURLResponseMIMEType);
160 INIT(GetCFURLResponseURL);
161 INIT(GetCFURLResponseHTTPResponse);
162 INIT(CopyCFURLResponseSuggestedFilename);
163 INIT(SetCFURLResponseMIMEType);