2 * Copyright 2006, 2007, 2008, 2009, 2010 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(CopyCFLocalizationPreferredName);
48 INIT(CopyCONNECTProxyResponse);
49 INIT(CopyNSURLResponseStatusLine);
50 INIT(CreateCustomCFReadStream);
51 INIT(CreateNSURLConnectionDelegateProxy);
52 INIT(DrawCapsLockIndicator);
53 INIT(DrawBezeledTextArea);
54 INIT(DrawBezeledTextFieldCell);
56 INIT(DrawMediaUIPart);
57 INIT(DrawMediaSliderTrack);
58 INIT(DrawTextFieldCellFocusRing);
59 INIT(GetExtensionsForMIMEType);
60 INIT(GetFontInLanguageForCharacter);
61 INIT(GetFontInLanguageForRange);
62 INIT(GetGlyphTransformedAdvances);
63 INIT(GetHTTPPipeliningPriority);
64 INIT(GetMIMETypeForExtension);
65 INIT(GetNSURLResponseLastModifiedDate);
66 INIT(GetPreferredExtensionForMIMEType);
67 INIT(GetWheelEventDeltas);
68 INIT(HitTestMediaUIPart);
69 INIT(InitializeMaximumHTTPConnectionCountPerHost);
70 INIT(IsLatchingWheelEvent);
71 INIT(MeasureMediaUIPart);
72 INIT(MediaControllerThemeAvailable);
74 INIT(SetCGFontRenderingMode);
75 INIT(SetCONNECTProxyAuthorizationForStream);
76 INIT(SetCONNECTProxyForStream);
77 INIT(SetCookieStoragePrivateBrowsingEnabled);
79 INIT(SetHTTPPipeliningPriority);
80 INIT(SetNSURLConnectionDefersCallbacks);
81 INIT(SetNSURLRequestShouldContentSniff);
82 INIT(SetPatternBaseCTM);
83 INIT(SetPatternPhaseInUserSpace);
84 INIT(GetUserToBaseCTM);
86 INIT(SignalCFReadStreamEnd);
87 INIT(SignalCFReadStreamError);
88 INIT(SignalCFReadStreamHasBytes);
89 INIT(QTIncludeOnlyModernMediaFileTypes);
90 INIT(QTMovieDataRate);
91 INIT(QTMovieDisableComponent);
92 INIT(QTMovieMaxTimeLoaded);
93 INIT(QTMovieMaxTimeLoadedChangeNotification);
94 INIT(QTMovieMaxTimeSeekable);
96 INIT(QTMovieHasClosedCaptions);
97 INIT(QTMovieSetShowClosedCaptions);
98 INIT(QTMovieSelectPreferredAlternates);
99 INIT(QTMovieViewSetDrawSynchronously);
101 #ifndef BUILDING_ON_TIGER
102 INIT(GetGlyphsForCharacters);
104 INIT(ClearGlyphVector);
105 INIT(ConvertCharToGlyphs);
106 INIT(CopyFullFontName);
107 INIT(GetATSStyleGroup);
108 INIT(GetCGFontFromNSFont);
109 INIT(GetFontMetrics);
110 INIT(GetGlyphVectorFirstRecord);
111 INIT(GetGlyphVectorNumGlyphs);
112 INIT(GetGlyphVectorRecordSize);
113 INIT(GetNSFontATSUFontId);
114 INIT(InitializeGlyphVector);
115 INIT(ReleaseStyleGroup);
116 INIT(SupportsMultipartXMixedReplace);
119 #if defined(BUILDING_ON_TIGER) || defined(BUILDING_ON_LEOPARD) || defined(BUILDING_ON_SNOW_LEOPARD)
120 INIT(GetHyphenationLocationBeforeIndex);
123 INIT(CreateCTLineWithUniCharProvider);
124 #if !defined(BUILDING_ON_TIGER) && !defined(BUILDING_ON_LEOPARD) && !defined(BUILDING_ON_SNOW_LEOPARD)
125 INIT(IOSurfaceContextCreate);
126 INIT(IOSurfaceContextCreateImage);
127 INIT(CreateCTTypesetterWithUniCharProviderAndOptions);
128 INIT(MakeScrollbarPainter);
129 INIT(ScrollbarPainterSetDelegate);
130 INIT(ScrollbarPainterPaint);
131 INIT(ScrollbarThickness);
132 INIT(ScrollbarMinimumThumbLength);
133 INIT(ScrollbarMinimumTotalLengthNeededForThumb);
134 INIT(ScrollbarPainterKnobAlpha);
135 INIT(SetScrollbarPainterKnobAlpha);
136 INIT(ScrollbarPainterTrackAlpha);
137 INIT(SetScrollbarPainterTrackAlpha);
138 INIT(ScrollbarPainterIsHorizontal);
139 INIT(ScrollbarPainterSetOverlayState);
140 INIT(MakeScrollbarPainterController);
141 INIT(MakeScrollbarReplacementPainter);
142 INIT(SetPainterForPainterController);
143 INIT(VerticalScrollbarPainterForController);
144 INIT(HorizontalScrollbarPainterForController);
145 INIT(SetScrollbarPainterControllerStyle);
146 INIT(ContentAreaScrolled);
147 INIT(ContentAreaWillPaint);
148 INIT(MouseEnteredContentArea);
149 INIT(MouseExitedContentArea);
150 INIT(MouseMovedInContentArea);
151 INIT(WillStartLiveResize);
152 INIT(ContentAreaResized);
153 INIT(WillEndLiveResize);
154 INIT(ContentAreaDidShow);
155 INIT(ContentAreaDidHide);
156 INIT(ScrollbarPainterUsesOverlayScrollers);
159 INIT(GetAXTextMarkerTypeID);
160 INIT(GetAXTextMarkerRangeTypeID);
161 INIT(CreateAXTextMarker);
162 INIT(GetBytesFromAXTextMarker);
163 INIT(CreateAXTextMarkerRange);
164 INIT(CopyAXTextMarkerRangeStart);
165 INIT(CopyAXTextMarkerRangeEnd);
166 INIT(AccessibilityHandleFocusChanged);
167 INIT(CreateAXUIElementRef);
168 INIT(UnregisterUniqueIdForElement);
169 INIT(CreatePrivateStorageSession);
170 INIT(CopyRequestWithStorageSession);
171 INIT(CopyHTTPCookieStorage);
172 INIT(GetHTTPCookieAcceptPolicy);
173 INIT(HTTPCookiesForURL);
174 INIT(SetHTTPCookiesForURL);
175 INIT(DeleteHTTPCookie);