Remove some dead code.
[WebKit-https.git] / Source / WebKit / mac / WebCoreSupport / WebSystemInterface.mm
1 /*
2  * Copyright 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved.
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions
6  * are met:
7  *
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. 
16  *
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.
27  */
28
29 #import "WebSystemInterface.h"
30
31 // Needed for builds not using PCH to expose BUILDING_ macros, see bug 32753.
32 #include <wtf/Platform.h>
33
34 #import <WebCore/WebCoreSystemInterface.h>
35 #import <WebKitSystemInterface.h>
36
37 #define INIT(function) wk##function = WK##function
38
39 void InitWebCoreSystemInterface(void)
40 {
41     static bool didInit;
42     if (didInit)
43         return;
44
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);
55     INIT(DrawFocusRing);
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(SignedPublicKeyAndChallengeString);
67     INIT(GetPreferredExtensionForMIMEType);
68     INIT(GetWheelEventDeltas);
69     INIT(HitTestMediaUIPart);
70     INIT(InitializeMaximumHTTPConnectionCountPerHost);
71     INIT(MeasureMediaUIPart);
72     INIT(MediaControllerThemeAvailable);
73     INIT(PopupMenu);
74     INIT(SetCGFontRenderingMode);
75     INIT(SetCONNECTProxyAuthorizationForStream);
76     INIT(SetCONNECTProxyForStream);
77     INIT(SetCookieStoragePrivateBrowsingEnabled);
78     INIT(SetDragImage);
79     INIT(SetHTTPPipeliningMaximumPriority);
80     INIT(SetHTTPPipeliningPriority);
81     INIT(SetHTTPPipeliningMinimumFastLanePriority);
82     INIT(SetNSURLConnectionDefersCallbacks);
83     INIT(SetNSURLRequestShouldContentSniff);
84     INIT(SetPatternBaseCTM);
85     INIT(SetPatternPhaseInUserSpace);
86     INIT(GetUserToBaseCTM);
87     INIT(SetUpFontCache);
88     INIT(SignalCFReadStreamEnd);
89     INIT(SignalCFReadStreamError);
90     INIT(SignalCFReadStreamHasBytes);
91     INIT(QTIncludeOnlyModernMediaFileTypes);
92     INIT(QTMovieDataRate);
93     INIT(QTMovieDisableComponent);
94     INIT(QTMovieMaxTimeLoaded);
95     INIT(QTMovieMaxTimeLoadedChangeNotification);
96     INIT(QTMovieMaxTimeSeekable);
97     INIT(QTMovieGetType);
98     INIT(QTMovieHasClosedCaptions);
99     INIT(QTMovieSetShowClosedCaptions);
100     INIT(QTMovieSelectPreferredAlternates);
101     INIT(QTMovieViewSetDrawSynchronously);
102     INIT(QTGetSitesInMediaDownloadCache);
103     INIT(QTClearMediaDownloadCacheForSite);
104     INIT(QTClearMediaDownloadCache);
105
106     INIT(GetGlyphsForCharacters);
107
108 #if defined(BUILDING_ON_LEOPARD) || defined(BUILDING_ON_SNOW_LEOPARD)
109     INIT(GetHyphenationLocationBeforeIndex);
110     INIT(GetNSEventMomentumPhase);
111 #endif
112
113     INIT(CreateCTLineWithUniCharProvider);
114
115 #if !defined(BUILDING_ON_LEOPARD) && !defined(BUILDING_ON_SNOW_LEOPARD)
116     INIT(IOSurfaceContextCreate);
117     INIT(IOSurfaceContextCreateImage);
118     INIT(CreateCTTypesetterWithUniCharProviderAndOptions);
119     INIT(MakeScrollbarPainter);
120     INIT(ScrollbarPainterSetDelegate);
121     INIT(ScrollbarPainterPaint);
122     INIT(ScrollbarPainterForceFlashScrollers);
123     INIT(ScrollbarThickness);
124     INIT(ScrollbarMinimumThumbLength);
125     INIT(ScrollbarMinimumTotalLengthNeededForThumb);
126     INIT(ScrollbarPainterKnobAlpha);
127     INIT(SetScrollbarPainterKnobAlpha);
128     INIT(ScrollbarPainterTrackAlpha);
129     INIT(SetScrollbarPainterTrackAlpha);
130     INIT(ScrollbarPainterIsHorizontal);
131     INIT(ScrollbarPainterKnobRect);
132     INIT(ScrollbarPainterSetOverlayState);
133     INIT(SetScrollbarPainterKnobStyle);
134     INIT(MakeScrollbarPainterController);
135     INIT(MakeScrollbarReplacementPainter);
136     INIT(SetPainterForPainterController);
137     INIT(VerticalScrollbarPainterForController);
138     INIT(HorizontalScrollbarPainterForController);
139     INIT(SetScrollbarPainterControllerStyle);
140     INIT(ContentAreaScrolled);
141     INIT(ContentAreaWillPaint);
142     INIT(MouseEnteredContentArea);
143     INIT(MouseExitedContentArea);
144     INIT(MouseMovedInContentArea);
145     INIT(WillStartLiveResize);
146     INIT(ContentAreaResized);
147     INIT(WillEndLiveResize);
148     INIT(ContentAreaDidShow);
149     INIT(ContentAreaDidHide);
150     INIT(DidBeginScrollGesture);
151     INIT(DidEndScrollGesture);
152     INIT(ScrollbarPainterUsesOverlayScrollers);
153 #endif
154
155     INIT(GetAXTextMarkerTypeID);
156     INIT(GetAXTextMarkerRangeTypeID);
157     INIT(CreateAXTextMarker);
158     INIT(GetBytesFromAXTextMarker);
159     INIT(CreateAXTextMarkerRange);
160     INIT(CopyAXTextMarkerRangeStart);
161     INIT(CopyAXTextMarkerRangeEnd);
162     INIT(AccessibilityHandleFocusChanged);
163     INIT(CreateAXUIElementRef);
164     INIT(UnregisterUniqueIdForElement);
165     INIT(CreatePrivateStorageSession);
166     INIT(CopyRequestWithStorageSession);
167     INIT(CopyHTTPCookieStorage);
168     INIT(GetHTTPCookieAcceptPolicy);
169     INIT(HTTPCookiesForURL);
170     INIT(SetHTTPCookiesForURL);
171     INIT(DeleteHTTPCookie);
172
173     INIT(GetCFURLResponseMIMEType);
174     INIT(GetCFURLResponseURL);
175     INIT(GetCFURLResponseHTTPResponse);
176     INIT(CopyCFURLResponseSuggestedFilename);
177     INIT(SetCFURLResponseMIMEType);
178
179     didInit = true;
180 }