OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2006, 2007, 2008, 2009, 2010 Apple Computer, Inc. All rights reserv
ed. | 2 * Copyright 2006, 2007, 2008, 2009, 2010 Apple Computer, Inc. All rights reserv
ed. |
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 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 10 matching lines...) Expand all Loading... |
21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
24 */ | 24 */ |
25 | 25 |
26 #import "config.h" | 26 #import "config.h" |
27 #import "WebCoreSystemInterface.h" | 27 #import "WebCoreSystemInterface.h" |
28 #import <Foundation/Foundation.h> | 28 #import <Foundation/Foundation.h> |
29 | 29 |
30 void (*wkAdvanceDefaultButtonPulseAnimation)(NSButtonCell *); | 30 void (*wkAdvanceDefaultButtonPulseAnimation)(NSButtonCell *); |
31 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1070 | |
32 void (*wkCALayerEnumerateRectsBeingDrawnWithBlock)(CALayer *, CGContextRef conte
xt, void (^block)(CGRect rect)); | |
33 #endif | |
34 BOOL (*wkCGContextGetShouldSmoothFonts)(CGContextRef); | |
35 void (*wkCGContextResetClip)(CGContextRef); | |
36 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1080 | |
37 bool (*wkCGContextDrawsWithCorrectShadowOffsets)(CGContextRef); | |
38 #endif | |
39 CGPatternRef (*wkCGPatternCreateWithImageAndTransform)(CGImageRef, CGAffineTrans
form, int); | |
40 CFStringRef (*wkCopyCFLocalizationPreferredName)(CFStringRef); | |
41 NSString* (*wkCopyNSURLResponseStatusLine)(NSURLResponse*); | |
42 CFArrayRef (*wkCopyNSURLResponseCertificateChain)(NSURLResponse*); | |
43 NSString* (*wkCreateURLPasteboardFlavorTypeName)(void); | |
44 NSString* (*wkCreateURLNPasteboardFlavorTypeName)(void); | |
45 void (*wkDrawBezeledTextFieldCell)(NSRect, BOOL enabled); | 31 void (*wkDrawBezeledTextFieldCell)(NSRect, BOOL enabled); |
46 void (*wkDrawTextFieldCellFocusRing)(NSTextFieldCell*, NSRect); | |
47 void (*wkDrawCapsLockIndicator)(CGContextRef, CGRect); | 32 void (*wkDrawCapsLockIndicator)(CGContextRef, CGRect); |
48 void (*wkDrawBezeledTextArea)(NSRect, BOOL enabled); | 33 void (*wkDrawBezeledTextArea)(NSRect, BOOL enabled); |
49 void (*wkDrawFocusRing)(CGContextRef, CGColorRef, int radius); | |
50 NSFont* (*wkGetFontInLanguageForRange)(NSFont*, NSString*, NSRange); | 34 NSFont* (*wkGetFontInLanguageForRange)(NSFont*, NSString*, NSRange); |
51 NSFont* (*wkGetFontInLanguageForCharacter)(NSFont*, UniChar); | 35 NSFont* (*wkGetFontInLanguageForCharacter)(NSFont*, UniChar); |
52 BOOL (*wkGetGlyphTransformedAdvances)(CGFontRef, NSFont*, CGAffineTransform*, AT
SGlyphRef*, CGSize* advance); | 36 BOOL (*wkGetGlyphTransformedAdvances)(CGFontRef, NSFont*, CGAffineTransform*, AT
SGlyphRef*, CGSize* advance); |
53 void (*wkWindowSetAlpha)(NSWindow *, float); | |
54 void (*wkWindowSetScaledFrame)(NSWindow *, NSRect, NSRect); | |
55 NSString* (*wkGetPreferredExtensionForMIMEType)(NSString*); | |
56 CFStringRef (*wkSignedPublicKeyAndChallengeString)(unsigned keySize, CFStringRef
challenge, CFStringRef keyDescription); | |
57 NSArray* (*wkGetExtensionsForMIMEType)(NSString*); | |
58 NSString* (*wkGetMIMETypeForExtension)(NSString*); | |
59 NSTimeInterval (*wkGetNSURLResponseCalculatedExpiration)(NSURLResponse *response
); | |
60 NSDate *(*wkGetNSURLResponseLastModifiedDate)(NSURLResponse *response); | |
61 BOOL (*wkGetNSURLResponseMustRevalidate)(NSURLResponse *response); | |
62 void (*wkGetWheelEventDeltas)(NSEvent*, float* deltaX, float* deltaY, BOOL* cont
inuous); | |
63 UInt8 (*wkGetNSEventKeyChar)(NSEvent *); | |
64 void (*wkPopupMenu)(NSMenu*, NSPoint location, float width, NSView*, int selecte
dItem, NSFont*); | |
65 unsigned (*wkQTIncludeOnlyModernMediaFileTypes)(void); | |
66 int (*wkQTMovieDataRate)(QTMovie*); | |
67 void (*wkQTMovieDisableComponent)(uint32_t[5]); | |
68 float (*wkQTMovieMaxTimeLoaded)(QTMovie*); | |
69 NSString *(*wkQTMovieMaxTimeLoadedChangeNotification)(void); | |
70 float (*wkQTMovieMaxTimeSeekable)(QTMovie*); | |
71 int (*wkQTMovieGetType)(QTMovie*); | |
72 BOOL (*wkQTMovieHasClosedCaptions)(QTMovie*); | |
73 NSURL *(*wkQTMovieResolvedURL)(QTMovie*); | |
74 void (*wkQTMovieSetShowClosedCaptions)(QTMovie*, BOOL); | |
75 void (*wkQTMovieSelectPreferredAlternates)(QTMovie*); | |
76 void (*wkQTMovieViewSetDrawSynchronously)(QTMovieView*, BOOL); | |
77 NSArray *(*wkQTGetSitesInMediaDownloadCache)(); | |
78 void (*wkQTClearMediaDownloadCacheForSite)(NSString *site); | |
79 void (*wkQTClearMediaDownloadCache)(); | |
80 | |
81 void (*wkSetCGFontRenderingMode)(CGContextRef, NSFont*); | |
82 void (*wkSetDragImage)(NSImage*, NSPoint offset); | |
83 void (*wkSetBaseCTM)(CGContextRef, CGAffineTransform); | |
84 void (*wkSetPatternPhaseInUserSpace)(CGContextRef, CGPoint point); | |
85 CGAffineTransform (*wkGetUserToBaseCTM)(CGContextRef); | |
86 void (*wkSetUpFontCache)(); | 37 void (*wkSetUpFontCache)(); |
87 void (*wkSignalCFReadStreamEnd)(CFReadStreamRef stream); | |
88 void (*wkSignalCFReadStreamHasBytes)(CFReadStreamRef stream); | |
89 void (*wkSignalCFReadStreamError)(CFReadStreamRef stream, CFStreamError *error); | |
90 CFReadStreamRef (*wkCreateCustomCFReadStream)(void *(*formCreate)(CFReadStreamRe
f, void *), | |
91 void (*formFinalize)(CFReadStreamRef, void *), | |
92 Boolean (*formOpen)(CFReadStreamRef, CFStreamError *, Boolean *, void *), | |
93 CFIndex (*formRead)(CFReadStreamRef, UInt8 *, CFIndex, CFStreamError *, Bool
ean *, void *), | |
94 Boolean (*formCanRead)(CFReadStreamRef, void *), | |
95 void (*formClose)(CFReadStreamRef, void *), | |
96 void (*formSchedule)(CFReadStreamRef, CFRunLoopRef, CFStringRef, void *), | |
97 void (*formUnschedule)(CFReadStreamRef, CFRunLoopRef, CFStringRef, void *), | |
98 void *context); | |
99 void (*wkSetNSURLConnectionDefersCallbacks)(NSURLConnection *, BOOL); | |
100 void (*wkSetNSURLRequestShouldContentSniff)(NSMutableURLRequest *, BOOL); | |
101 unsigned (*wkInitializeMaximumHTTPConnectionCountPerHost)(unsigned preferredConn
ectionCount); | |
102 int (*wkGetHTTPPipeliningPriority)(CFURLRequestRef); | |
103 void (*wkSetHTTPPipeliningMaximumPriority)(int priority); | |
104 void (*wkSetHTTPPipeliningPriority)(CFURLRequestRef, int priority); | |
105 void (*wkSetHTTPPipeliningMinimumFastLanePriority)(int priority); | |
106 void (*wkSetCONNECTProxyForStream)(CFReadStreamRef, CFStringRef proxyHost, CFNum
berRef proxyPort); | |
107 void (*wkSetCONNECTProxyAuthorizationForStream)(CFReadStreamRef, CFStringRef pro
xyAuthorizationString); | |
108 CFHTTPMessageRef (*wkCopyCONNECTProxyResponse)(CFReadStreamRef, CFURLRef respons
eURL); | |
109 | |
110 void (*wkGetGlyphsForCharacters)(CGFontRef, const UniChar[], CGGlyph[], size_t); | 38 void (*wkGetGlyphsForCharacters)(CGFontRef, const UniChar[], CGGlyph[], size_t); |
111 bool (*wkGetVerticalGlyphsForCharacters)(CTFontRef, const UniChar[], CGGlyph[],
size_t); | 39 bool (*wkGetVerticalGlyphsForCharacters)(CTFontRef, const UniChar[], CGGlyph[],
size_t); |
112 | |
113 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1070 | |
114 void* wkGetHyphenationLocationBeforeIndex; | |
115 #else | |
116 CFIndex (*wkGetHyphenationLocationBeforeIndex)(CFStringRef string, CFIndex index
); | |
117 int (*wkGetNSEventMomentumPhase)(NSEvent *); | |
118 #endif | |
119 | |
120 CTLineRef (*wkCreateCTLineWithUniCharProvider)(const UniChar* (*provide)(CFIndex
stringIndex, CFIndex* charCount, CFDictionaryRef* attributes, void*), void (*di
spose)(const UniChar* chars, void*), void*); | 40 CTLineRef (*wkCreateCTLineWithUniCharProvider)(const UniChar* (*provide)(CFIndex
stringIndex, CFIndex* charCount, CFDictionaryRef* attributes, void*), void (*di
spose)(const UniChar* chars, void*), void*); |
121 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090 | |
122 bool (*wkCTFontTransformGlyphs)(CTFontRef font, CGGlyph glyphs[], CGSize advance
s[], CFIndex count, wkCTFontTransformOptions options); | |
123 #endif | |
124 | |
125 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1070 | |
126 CTTypesetterRef (*wkCreateCTTypesetterWithUniCharProviderAndOptions)(const UniCh
ar* (*provide)(CFIndex stringIndex, CFIndex* charCount, CFDictionaryRef* attribu
tes, void*), void (*dispose)(const UniChar* chars, void*), void*, CFDictionaryRe
f options); | |
127 | |
128 CGContextRef (*wkIOSurfaceContextCreate)(IOSurfaceRef surface, unsigned width, u
nsigned height, CGColorSpaceRef colorSpace); | |
129 CGImageRef (*wkIOSurfaceContextCreateImage)(CGContextRef context); | |
130 | |
131 int (*wkRecommendedScrollerStyle)(void); | |
132 | |
133 bool (*wkExecutableWasLinkedOnOrBeforeSnowLeopard)(void); | |
134 | |
135 CFStringRef (*wkCopyDefaultSearchProviderDisplayName)(void); | |
136 void (*wkSetCrashReportApplicationSpecificInformation)(CFStringRef); | |
137 | |
138 NSURL *(*wkAVAssetResolvedURL)(AVAsset*); | |
139 | |
140 NSCursor *(*wkCursor)(const char*); | |
141 | |
142 #endif | |
143 | |
144 void (*wkUnregisterUniqueIdForElement)(id element); | |
145 void (*wkAccessibilityHandleFocusChanged)(void); | |
146 CFTypeID (*wkGetAXTextMarkerTypeID)(void); | |
147 CFTypeID (*wkGetAXTextMarkerRangeTypeID)(void); | |
148 CFTypeRef (*wkCreateAXTextMarkerRange)(CFTypeRef start, CFTypeRef end); | |
149 CFTypeRef (*wkCopyAXTextMarkerRangeStart)(CFTypeRef range); | |
150 CFTypeRef (*wkCopyAXTextMarkerRangeEnd)(CFTypeRef range); | |
151 CFTypeRef (*wkCreateAXTextMarker)(const void *bytes, size_t len); | |
152 BOOL (*wkGetBytesFromAXTextMarker)(CFTypeRef textMarker, void *bytes, size_t len
gth); | |
153 AXUIElementRef (*wkCreateAXUIElementRef)(id element); | |
154 | |
155 CFURLStorageSessionRef (*wkCreatePrivateStorageSession)(CFStringRef); | |
156 NSURLRequest* (*wkCopyRequestWithStorageSession)(CFURLStorageSessionRef, NSURLRe
quest*); | |
157 CFHTTPCookieStorageRef (*wkCopyHTTPCookieStorage)(CFURLStorageSessionRef); | |
158 unsigned (*wkGetHTTPCookieAcceptPolicy)(CFHTTPCookieStorageRef); | |
159 void (*wkSetHTTPCookieAcceptPolicy)(CFHTTPCookieStorageRef, unsigned); | |
160 NSArray *(*wkHTTPCookies)(CFHTTPCookieStorageRef); | |
161 NSArray *(*wkHTTPCookiesForURL)(CFHTTPCookieStorageRef, NSURL *); | |
162 void (*wkSetHTTPCookiesForURL)(CFHTTPCookieStorageRef, NSArray *, NSURL *, NSURL
*); | |
163 void (*wkDeleteAllHTTPCookies)(CFHTTPCookieStorageRef); | |
164 void (*wkDeleteHTTPCookie)(CFHTTPCookieStorageRef, NSHTTPCookie *); | |
165 | |
166 CFStringRef (*wkGetCFURLResponseMIMEType)(CFURLResponseRef); | |
167 CFURLRef (*wkGetCFURLResponseURL)(CFURLResponseRef); | |
168 CFHTTPMessageRef (*wkGetCFURLResponseHTTPResponse)(CFURLResponseRef); | |
169 CFStringRef (*wkCopyCFURLResponseSuggestedFilename)(CFURLResponseRef); | |
170 void (*wkSetCFURLResponseMIMEType)(CFURLResponseRef, CFStringRef mimeType); | |
171 void (*wkSetMetadataURL)(NSString *urlString, NSString *referrer, NSString *path
); | |
172 | |
173 void(*wkDestroyRenderingResources)(void); | |
174 | |
175 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1070 | |
176 dispatch_source_t (*wkCreateVMPressureDispatchOnMainQueue)(void); | |
177 #endif | |
178 | |
179 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1080 | |
180 bool (*wkExecutableWasLinkedOnOrBeforeLion)(void); | |
181 #endif | |
182 | |
183 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1070 | |
184 void (*wkCGPathAddRoundedRect)(CGMutablePathRef path, const CGAffineTransform* m
atrix, CGRect rect, CGFloat cornerWidth, CGFloat cornerHeight); | |
185 #endif | |
186 | |
187 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1070 | |
188 void (*wkCFURLRequestAllowAllPostCaching)(CFURLRequestRef); | |
189 #endif | |
190 | |
191 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1080 | |
192 CGFloat (*wkNSElasticDeltaForTimeDelta)(CGFloat initialPosition, CGFloat initial
Velocity, CGFloat elapsedTime); | |
193 CGFloat (*wkNSElasticDeltaForReboundDelta)(CGFloat delta); | |
194 CGFloat (*wkNSReboundDeltaForElasticDelta)(CGFloat delta); | |
195 #endif | |
196 | |
OLD | NEW |