| Index: Source/core/platform/mac/WebCoreSystemInterface.mm
|
| diff --git a/Source/core/platform/mac/WebCoreSystemInterface.mm b/Source/core/platform/mac/WebCoreSystemInterface.mm
|
| index fbf1758fc6cd4daa284f0e37ae812f9238df00e5..02725e79d72ba765498e4cd8bf9a04d92cee75e9 100644
|
| --- a/Source/core/platform/mac/WebCoreSystemInterface.mm
|
| +++ b/Source/core/platform/mac/WebCoreSystemInterface.mm
|
| @@ -28,169 +28,13 @@
|
| #import <Foundation/Foundation.h>
|
|
|
| void (*wkAdvanceDefaultButtonPulseAnimation)(NSButtonCell *);
|
| -#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1070
|
| -void (*wkCALayerEnumerateRectsBeingDrawnWithBlock)(CALayer *, CGContextRef context, void (^block)(CGRect rect));
|
| -#endif
|
| -BOOL (*wkCGContextGetShouldSmoothFonts)(CGContextRef);
|
| -void (*wkCGContextResetClip)(CGContextRef);
|
| -#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1080
|
| -bool (*wkCGContextDrawsWithCorrectShadowOffsets)(CGContextRef);
|
| -#endif
|
| -CGPatternRef (*wkCGPatternCreateWithImageAndTransform)(CGImageRef, CGAffineTransform, int);
|
| -CFStringRef (*wkCopyCFLocalizationPreferredName)(CFStringRef);
|
| -NSString* (*wkCopyNSURLResponseStatusLine)(NSURLResponse*);
|
| -CFArrayRef (*wkCopyNSURLResponseCertificateChain)(NSURLResponse*);
|
| -NSString* (*wkCreateURLPasteboardFlavorTypeName)(void);
|
| -NSString* (*wkCreateURLNPasteboardFlavorTypeName)(void);
|
| void (*wkDrawBezeledTextFieldCell)(NSRect, BOOL enabled);
|
| -void (*wkDrawTextFieldCellFocusRing)(NSTextFieldCell*, NSRect);
|
| void (*wkDrawCapsLockIndicator)(CGContextRef, CGRect);
|
| void (*wkDrawBezeledTextArea)(NSRect, BOOL enabled);
|
| -void (*wkDrawFocusRing)(CGContextRef, CGColorRef, int radius);
|
| NSFont* (*wkGetFontInLanguageForRange)(NSFont*, NSString*, NSRange);
|
| NSFont* (*wkGetFontInLanguageForCharacter)(NSFont*, UniChar);
|
| BOOL (*wkGetGlyphTransformedAdvances)(CGFontRef, NSFont*, CGAffineTransform*, ATSGlyphRef*, CGSize* advance);
|
| -void (*wkWindowSetAlpha)(NSWindow *, float);
|
| -void (*wkWindowSetScaledFrame)(NSWindow *, NSRect, NSRect);
|
| -NSString* (*wkGetPreferredExtensionForMIMEType)(NSString*);
|
| -CFStringRef (*wkSignedPublicKeyAndChallengeString)(unsigned keySize, CFStringRef challenge, CFStringRef keyDescription);
|
| -NSArray* (*wkGetExtensionsForMIMEType)(NSString*);
|
| -NSString* (*wkGetMIMETypeForExtension)(NSString*);
|
| -NSTimeInterval (*wkGetNSURLResponseCalculatedExpiration)(NSURLResponse *response);
|
| -NSDate *(*wkGetNSURLResponseLastModifiedDate)(NSURLResponse *response);
|
| -BOOL (*wkGetNSURLResponseMustRevalidate)(NSURLResponse *response);
|
| -void (*wkGetWheelEventDeltas)(NSEvent*, float* deltaX, float* deltaY, BOOL* continuous);
|
| -UInt8 (*wkGetNSEventKeyChar)(NSEvent *);
|
| -void (*wkPopupMenu)(NSMenu*, NSPoint location, float width, NSView*, int selectedItem, NSFont*);
|
| -unsigned (*wkQTIncludeOnlyModernMediaFileTypes)(void);
|
| -int (*wkQTMovieDataRate)(QTMovie*);
|
| -void (*wkQTMovieDisableComponent)(uint32_t[5]);
|
| -float (*wkQTMovieMaxTimeLoaded)(QTMovie*);
|
| -NSString *(*wkQTMovieMaxTimeLoadedChangeNotification)(void);
|
| -float (*wkQTMovieMaxTimeSeekable)(QTMovie*);
|
| -int (*wkQTMovieGetType)(QTMovie*);
|
| -BOOL (*wkQTMovieHasClosedCaptions)(QTMovie*);
|
| -NSURL *(*wkQTMovieResolvedURL)(QTMovie*);
|
| -void (*wkQTMovieSetShowClosedCaptions)(QTMovie*, BOOL);
|
| -void (*wkQTMovieSelectPreferredAlternates)(QTMovie*);
|
| -void (*wkQTMovieViewSetDrawSynchronously)(QTMovieView*, BOOL);
|
| -NSArray *(*wkQTGetSitesInMediaDownloadCache)();
|
| -void (*wkQTClearMediaDownloadCacheForSite)(NSString *site);
|
| -void (*wkQTClearMediaDownloadCache)();
|
| -
|
| -void (*wkSetCGFontRenderingMode)(CGContextRef, NSFont*);
|
| -void (*wkSetDragImage)(NSImage*, NSPoint offset);
|
| -void (*wkSetBaseCTM)(CGContextRef, CGAffineTransform);
|
| -void (*wkSetPatternPhaseInUserSpace)(CGContextRef, CGPoint point);
|
| -CGAffineTransform (*wkGetUserToBaseCTM)(CGContextRef);
|
| void (*wkSetUpFontCache)();
|
| -void (*wkSignalCFReadStreamEnd)(CFReadStreamRef stream);
|
| -void (*wkSignalCFReadStreamHasBytes)(CFReadStreamRef stream);
|
| -void (*wkSignalCFReadStreamError)(CFReadStreamRef stream, CFStreamError *error);
|
| -CFReadStreamRef (*wkCreateCustomCFReadStream)(void *(*formCreate)(CFReadStreamRef, void *),
|
| - void (*formFinalize)(CFReadStreamRef, void *),
|
| - Boolean (*formOpen)(CFReadStreamRef, CFStreamError *, Boolean *, void *),
|
| - CFIndex (*formRead)(CFReadStreamRef, UInt8 *, CFIndex, CFStreamError *, Boolean *, void *),
|
| - Boolean (*formCanRead)(CFReadStreamRef, void *),
|
| - void (*formClose)(CFReadStreamRef, void *),
|
| - void (*formSchedule)(CFReadStreamRef, CFRunLoopRef, CFStringRef, void *),
|
| - void (*formUnschedule)(CFReadStreamRef, CFRunLoopRef, CFStringRef, void *),
|
| - void *context);
|
| -void (*wkSetNSURLConnectionDefersCallbacks)(NSURLConnection *, BOOL);
|
| -void (*wkSetNSURLRequestShouldContentSniff)(NSMutableURLRequest *, BOOL);
|
| -unsigned (*wkInitializeMaximumHTTPConnectionCountPerHost)(unsigned preferredConnectionCount);
|
| -int (*wkGetHTTPPipeliningPriority)(CFURLRequestRef);
|
| -void (*wkSetHTTPPipeliningMaximumPriority)(int priority);
|
| -void (*wkSetHTTPPipeliningPriority)(CFURLRequestRef, int priority);
|
| -void (*wkSetHTTPPipeliningMinimumFastLanePriority)(int priority);
|
| -void (*wkSetCONNECTProxyForStream)(CFReadStreamRef, CFStringRef proxyHost, CFNumberRef proxyPort);
|
| -void (*wkSetCONNECTProxyAuthorizationForStream)(CFReadStreamRef, CFStringRef proxyAuthorizationString);
|
| -CFHTTPMessageRef (*wkCopyCONNECTProxyResponse)(CFReadStreamRef, CFURLRef responseURL);
|
| -
|
| void (*wkGetGlyphsForCharacters)(CGFontRef, const UniChar[], CGGlyph[], size_t);
|
| bool (*wkGetVerticalGlyphsForCharacters)(CTFontRef, const UniChar[], CGGlyph[], size_t);
|
| -
|
| -#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1070
|
| -void* wkGetHyphenationLocationBeforeIndex;
|
| -#else
|
| -CFIndex (*wkGetHyphenationLocationBeforeIndex)(CFStringRef string, CFIndex index);
|
| -int (*wkGetNSEventMomentumPhase)(NSEvent *);
|
| -#endif
|
| -
|
| CTLineRef (*wkCreateCTLineWithUniCharProvider)(const UniChar* (*provide)(CFIndex stringIndex, CFIndex* charCount, CFDictionaryRef* attributes, void*), void (*dispose)(const UniChar* chars, void*), void*);
|
| -#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090
|
| -bool (*wkCTFontTransformGlyphs)(CTFontRef font, CGGlyph glyphs[], CGSize advances[], CFIndex count, wkCTFontTransformOptions options);
|
| -#endif
|
| -
|
| -#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1070
|
| -CTTypesetterRef (*wkCreateCTTypesetterWithUniCharProviderAndOptions)(const UniChar* (*provide)(CFIndex stringIndex, CFIndex* charCount, CFDictionaryRef* attributes, void*), void (*dispose)(const UniChar* chars, void*), void*, CFDictionaryRef options);
|
| -
|
| -CGContextRef (*wkIOSurfaceContextCreate)(IOSurfaceRef surface, unsigned width, unsigned height, CGColorSpaceRef colorSpace);
|
| -CGImageRef (*wkIOSurfaceContextCreateImage)(CGContextRef context);
|
| -
|
| -int (*wkRecommendedScrollerStyle)(void);
|
| -
|
| -bool (*wkExecutableWasLinkedOnOrBeforeSnowLeopard)(void);
|
| -
|
| -CFStringRef (*wkCopyDefaultSearchProviderDisplayName)(void);
|
| -void (*wkSetCrashReportApplicationSpecificInformation)(CFStringRef);
|
| -
|
| -NSURL *(*wkAVAssetResolvedURL)(AVAsset*);
|
| -
|
| -NSCursor *(*wkCursor)(const char*);
|
| -
|
| -#endif
|
| -
|
| -void (*wkUnregisterUniqueIdForElement)(id element);
|
| -void (*wkAccessibilityHandleFocusChanged)(void);
|
| -CFTypeID (*wkGetAXTextMarkerTypeID)(void);
|
| -CFTypeID (*wkGetAXTextMarkerRangeTypeID)(void);
|
| -CFTypeRef (*wkCreateAXTextMarkerRange)(CFTypeRef start, CFTypeRef end);
|
| -CFTypeRef (*wkCopyAXTextMarkerRangeStart)(CFTypeRef range);
|
| -CFTypeRef (*wkCopyAXTextMarkerRangeEnd)(CFTypeRef range);
|
| -CFTypeRef (*wkCreateAXTextMarker)(const void *bytes, size_t len);
|
| -BOOL (*wkGetBytesFromAXTextMarker)(CFTypeRef textMarker, void *bytes, size_t length);
|
| -AXUIElementRef (*wkCreateAXUIElementRef)(id element);
|
| -
|
| -CFURLStorageSessionRef (*wkCreatePrivateStorageSession)(CFStringRef);
|
| -NSURLRequest* (*wkCopyRequestWithStorageSession)(CFURLStorageSessionRef, NSURLRequest*);
|
| -CFHTTPCookieStorageRef (*wkCopyHTTPCookieStorage)(CFURLStorageSessionRef);
|
| -unsigned (*wkGetHTTPCookieAcceptPolicy)(CFHTTPCookieStorageRef);
|
| -void (*wkSetHTTPCookieAcceptPolicy)(CFHTTPCookieStorageRef, unsigned);
|
| -NSArray *(*wkHTTPCookies)(CFHTTPCookieStorageRef);
|
| -NSArray *(*wkHTTPCookiesForURL)(CFHTTPCookieStorageRef, NSURL *);
|
| -void (*wkSetHTTPCookiesForURL)(CFHTTPCookieStorageRef, NSArray *, NSURL *, NSURL *);
|
| -void (*wkDeleteAllHTTPCookies)(CFHTTPCookieStorageRef);
|
| -void (*wkDeleteHTTPCookie)(CFHTTPCookieStorageRef, NSHTTPCookie *);
|
| -
|
| -CFStringRef (*wkGetCFURLResponseMIMEType)(CFURLResponseRef);
|
| -CFURLRef (*wkGetCFURLResponseURL)(CFURLResponseRef);
|
| -CFHTTPMessageRef (*wkGetCFURLResponseHTTPResponse)(CFURLResponseRef);
|
| -CFStringRef (*wkCopyCFURLResponseSuggestedFilename)(CFURLResponseRef);
|
| -void (*wkSetCFURLResponseMIMEType)(CFURLResponseRef, CFStringRef mimeType);
|
| -void (*wkSetMetadataURL)(NSString *urlString, NSString *referrer, NSString *path);
|
| -
|
| -void(*wkDestroyRenderingResources)(void);
|
| -
|
| -#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1070
|
| -dispatch_source_t (*wkCreateVMPressureDispatchOnMainQueue)(void);
|
| -#endif
|
| -
|
| -#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1080
|
| -bool (*wkExecutableWasLinkedOnOrBeforeLion)(void);
|
| -#endif
|
| -
|
| -#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1070
|
| -void (*wkCGPathAddRoundedRect)(CGMutablePathRef path, const CGAffineTransform* matrix, CGRect rect, CGFloat cornerWidth, CGFloat cornerHeight);
|
| -#endif
|
| -
|
| -#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1070
|
| -void (*wkCFURLRequestAllowAllPostCaching)(CFURLRequestRef);
|
| -#endif
|
| -
|
| -#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1080
|
| -CGFloat (*wkNSElasticDeltaForTimeDelta)(CGFloat initialPosition, CGFloat initialVelocity, CGFloat elapsedTime);
|
| -CGFloat (*wkNSElasticDeltaForReboundDelta)(CGFloat delta);
|
| -CGFloat (*wkNSReboundDeltaForElasticDelta)(CGFloat delta);
|
| -#endif
|
| -
|
|
|