2 * Copyright (C) 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
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. AND ITS CONTRIBUTORS ``AS IS''
14 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
15 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
16 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
17 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
18 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
19 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
20 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
21 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
22 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
23 * THE POSSIBILITY OF SUCH DAMAGE.
27 #import "WebSystemInterface.h"
29 #import <WebCore/WebCoreSystemInterface.h>
30 #import <WebKitSystemInterface.h>
32 #define INIT(function) wk##function = WK##function
34 void InitWebCoreSystemInterface(void)
36 static dispatch_once_t initOnce;
38 dispatch_once(&initOnce, ^{
39 INIT(AdvanceDefaultButtonPulseAnimation);
40 INIT(CopyCFLocalizationPreferredName);
41 INIT(CGContextGetShouldSmoothFonts);
42 INIT(CopyCONNECTProxyResponse);
43 INIT(CopyNSURLResponseStatusLine);
44 INIT(CreateCTLineWithUniCharProvider);
45 INIT(CreateCustomCFReadStream);
46 INIT(CreateNSURLConnectionDelegateProxy);
47 INIT(DrawBezeledTextArea);
48 INIT(DrawBezeledTextFieldCell);
49 INIT(DrawCapsLockIndicator);
51 INIT(DrawMediaSliderTrack);
52 INIT(DrawMediaUIPart);
53 INIT(DrawTextFieldCellFocusRing);
54 INIT(GetExtensionsForMIMEType);
55 INIT(GetFontInLanguageForCharacter);
56 INIT(GetFontInLanguageForRange);
57 INIT(GetGlyphTransformedAdvances);
58 INIT(GetGlyphsForCharacters);
59 INIT(GetHTTPPipeliningPriority);
60 INIT(GetMIMETypeForExtension);
61 INIT(GetNSURLResponseLastModifiedDate);
62 INIT(GetPreferredExtensionForMIMEType);
63 INIT(GetUserToBaseCTM);
64 INIT(GetWheelEventDeltas);
65 INIT(HitTestMediaUIPart);
66 INIT(InitializeMaximumHTTPConnectionCountPerHost);
67 INIT(IsLatchingWheelEvent);
68 INIT(MeasureMediaUIPart);
69 INIT(MediaControllerThemeAvailable);
71 INIT(QTIncludeOnlyModernMediaFileTypes);
72 INIT(QTMovieDataRate);
73 INIT(QTMovieDisableComponent);
75 INIT(QTMovieHasClosedCaptions);
76 INIT(QTMovieMaxTimeLoaded);
77 INIT(QTMovieMaxTimeLoadedChangeNotification);
78 INIT(QTMovieMaxTimeSeekable);
79 INIT(QTMovieSelectPreferredAlternates);
80 INIT(QTMovieSetShowClosedCaptions);
81 INIT(QTMovieViewSetDrawSynchronously);
82 INIT(SetCGFontRenderingMode);
83 INIT(SetCONNECTProxyAuthorizationForStream);
84 INIT(SetCONNECTProxyForStream);
85 INIT(SetCookieStoragePrivateBrowsingEnabled);
87 INIT(SetHTTPPipeliningPriority);
88 INIT(SetNSURLConnectionDefersCallbacks);
89 INIT(SetNSURLRequestShouldContentSniff);
90 INIT(SetPatternBaseCTM);
91 INIT(SetPatternPhaseInUserSpace);
93 INIT(SignalCFReadStreamEnd);
94 INIT(SignalCFReadStreamError);
95 INIT(SignalCFReadStreamHasBytes);
96 INIT(CreatePrivateStorageSession);
97 INIT(CopyRequestWithStorageSession);
98 INIT(CopyHTTPCookieStorage);
99 INIT(GetHTTPCookieAcceptPolicy);
100 INIT(HTTPCookiesForURL);
101 INIT(SetHTTPCookiesForURL);
102 INIT(DeleteHTTPCookie);
104 #if !defined(BUILDING_ON_SNOW_LEOPARD)
105 INIT(IOSurfaceContextCreate);
106 INIT(IOSurfaceContextCreateImage);
107 INIT(CreateCTTypesetterWithUniCharProviderAndOptions);
108 INIT(MakeScrollbarPainter);
109 INIT(ScrollbarPainterSetDelegate);
110 INIT(ScrollbarPainterPaint);
111 INIT(ScrollbarThickness);
112 INIT(ScrollbarMinimumThumbLength);
113 INIT(ScrollbarMinimumTotalLengthNeededForThumb);
114 INIT(ScrollbarPainterKnobAlpha);
115 INIT(SetScrollbarPainterKnobAlpha);
116 INIT(ScrollbarPainterTrackAlpha);
117 INIT(SetScrollbarPainterTrackAlpha);
118 INIT(ScrollbarPainterIsHorizontal);
119 INIT(ScrollbarPainterSetOverlayState);
120 INIT(MakeScrollbarPainterController);
121 INIT(MakeScrollbarReplacementPainter);
122 INIT(SetPainterForPainterController);
123 INIT(VerticalScrollbarPainterForController);
124 INIT(HorizontalScrollbarPainterForController);
125 INIT(SetScrollbarPainterControllerStyle);
126 INIT(ContentAreaScrolled);
127 INIT(ContentAreaWillPaint);
128 INIT(MouseEnteredContentArea);
129 INIT(MouseExitedContentArea);
130 INIT(MouseMovedInContentArea);
131 INIT(WillStartLiveResize);
132 INIT(ContentAreaResized);
133 INIT(WillEndLiveResize);
134 INIT(ContentAreaDidShow);
135 INIT(ContentAreaDidHide);
136 INIT(ScrollbarPainterUsesOverlayScrollers);
138 INIT(GetHyphenationLocationBeforeIndex);
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);