diff options
author | rsesek@chromium.org <rsesek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-03 16:11:25 +0000 |
---|---|---|
committer | rsesek@chromium.org <rsesek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-03 16:11:25 +0000 |
commit | f2274dc2da5a589c5baa1342f69a99d07d31c8f6 (patch) | |
tree | 69e63a01a65cdfe836280aeee3f9c7a4936253c7 /third_party/apple_webkit | |
parent | a50ff3772ff27d668ccd100f1fc203e269c61715 (diff) | |
download | chromium_src-f2274dc2da5a589c5baa1342f69a99d07d31c8f6.zip chromium_src-f2274dc2da5a589c5baa1342f69a99d07d31c8f6.tar.gz chromium_src-f2274dc2da5a589c5baa1342f69a99d07d31c8f6.tar.bz2 |
Copy libWebKitSystemInterfaceLeopard.a into third_party/apple_webkit/.
This also moves third_party/apple to third_party/apple_sample_code/.
BUG=101387
TEST=none
Review URL: http://codereview.chromium.org/8437088
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@108475 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party/apple_webkit')
-rw-r--r-- | third_party/apple_webkit/LICENSE | 21 | ||||
-rw-r--r-- | third_party/apple_webkit/README.chromium | 7 | ||||
-rw-r--r-- | third_party/apple_webkit/WebKitSystemInterface.h | 478 | ||||
-rw-r--r-- | third_party/apple_webkit/libWebKitSystemInterfaceLeopard.a | bin | 0 -> 2077808 bytes |
4 files changed, 506 insertions, 0 deletions
diff --git a/third_party/apple_webkit/LICENSE b/third_party/apple_webkit/LICENSE new file mode 100644 index 0000000..f29b41c --- /dev/null +++ b/third_party/apple_webkit/LICENSE @@ -0,0 +1,21 @@ +Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND ANY +EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY +DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/third_party/apple_webkit/README.chromium b/third_party/apple_webkit/README.chromium new file mode 100644 index 0000000..9cfadb1 --- /dev/null +++ b/third_party/apple_webkit/README.chromium @@ -0,0 +1,7 @@ +Name: WebKit private system interface +URL: http://svn.webkit.org/repository/webkit/trunk/WebKitLibraries/libWebKitSystemInterfaceLeopard.a@99107 +SVN Revision: r99107 +Date: 2 November 2011 + +Local changes: +Added the contents of LICENSE to WebKitSystemInterface.h. diff --git a/third_party/apple_webkit/WebKitSystemInterface.h b/third_party/apple_webkit/WebKitSystemInterface.h new file mode 100644 index 0000000..cefee7a --- /dev/null +++ b/third_party/apple_webkit/WebKitSystemInterface.h @@ -0,0 +1,478 @@ +/* + WebKitSystemInterface.h + Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. + + Public header file. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND ANY +EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY +DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +#import <Cocoa/Cocoa.h> +#import <Carbon/Carbon.h> + +@class AVAsset; +@class QTMovie; +@class QTMovieView; + +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct _CFURLResponse* CFURLResponseRef; +typedef const struct _CFURLRequest* CFURLRequestRef; +typedef struct _CFURLRequest* CFMutableURLRequestRef; + +typedef struct _CFURLCredential* WKCFURLCredentialRef; +typedef struct _CFURLProtectionSpace* CFURLProtectionSpaceRef; + +typedef enum { + WKCertificateParseResultSucceeded = 0, + WKCertificateParseResultFailed = 1, + WKCertificateParseResultPKCS7 = 2, +} WKCertificateParseResult; + +CFStringRef WKCopyCFLocalizationPreferredName(CFStringRef localization); +void WKSetDefaultLocalization(CFStringRef localization); + +CFStringRef WKSignedPublicKeyAndChallengeString(unsigned keySize, CFStringRef challenge, CFStringRef keyDescription); +WKCertificateParseResult WKAddCertificatesToKeychainFromData(const void *bytes, unsigned length); + +NSString *WKGetPreferredExtensionForMIMEType(NSString *type); +NSArray *WKGetExtensionsForMIMEType(NSString *type); +NSString *WKGetMIMETypeForExtension(NSString *extension); + +NSDate *WKGetNSURLResponseLastModifiedDate(NSURLResponse *response); +NSTimeInterval WKGetNSURLResponseFreshnessLifetime(NSURLResponse *response); +NSString *WKCopyNSURLResponseStatusLine(NSURLResponse *response); + +#ifndef BUILDING_ON_LEOPARD +CFArrayRef WKCopyNSURLResponseCertificateChain(NSURLResponse *response); +#endif + +CFStringEncoding WKGetWebDefaultCFStringEncoding(void); + +void WKSetMetadataURL(NSString *URLString, NSString *referrer, NSString *path); +void WKSetNSURLConnectionDefersCallbacks(NSURLConnection *connection, BOOL defers); + +void WKShowKeyAndMain(void); +#ifndef __LP64__ +OSStatus WKSyncWindowWithCGAfterMove(WindowRef); +unsigned WKCarbonWindowMask(void); +void *WKGetNativeWindowFromWindowRef(WindowRef); +OSType WKCarbonWindowPropertyCreator(void); +OSType WKCarbonWindowPropertyTag(void); +#endif + +typedef id WKNSURLConnectionDelegateProxyPtr; + +WKNSURLConnectionDelegateProxyPtr WKCreateNSURLConnectionDelegateProxy(void); + +void WKDisableCGDeferredUpdates(void); + +Class WKNSURLProtocolClassForRequest(NSURLRequest *request); +void WKSetNSURLRequestShouldContentSniff(NSMutableURLRequest *request, BOOL shouldContentSniff); + +void WKSetCookieStoragePrivateBrowsingEnabled(BOOL enabled); + +unsigned WKGetNSAutoreleasePoolCount(void); + +void WKAdvanceDefaultButtonPulseAnimation(NSButtonCell *button); + +NSString *WKMouseMovedNotification(void); +NSString *WKWindowWillOrderOnScreenNotification(void); +NSString *WKWindowWillOrderOffScreenNotification(void); +void WKSetNSWindowShouldPostEventNotifications(NSWindow *window, BOOL post); + +CFTypeID WKGetAXTextMarkerTypeID(void); +CFTypeID WKGetAXTextMarkerRangeTypeID(void); +CFTypeRef WKCreateAXTextMarker(const void *bytes, size_t len); +BOOL WKGetBytesFromAXTextMarker(CFTypeRef textMarker, void *bytes, size_t length); +CFTypeRef WKCreateAXTextMarkerRange(CFTypeRef start, CFTypeRef end); +CFTypeRef WKCopyAXTextMarkerRangeStart(CFTypeRef range); +CFTypeRef WKCopyAXTextMarkerRangeEnd(CFTypeRef range); +void WKAccessibilityHandleFocusChanged(void); +AXUIElementRef WKCreateAXUIElementRef(id element); +void WKUnregisterUniqueIdForElement(id element); + + +#if !defined(BUILDING_ON_LEOPARD) +// Remote Accessibility API. +void WKAXRegisterRemoteApp(void); +void WKAXInitializeElementWithPresenterPid(id, pid_t); +NSData *WKAXRemoteTokenForElement(id); +id WKAXRemoteElementForToken(NSData *); +void WKAXSetWindowForRemoteElement(id remoteWindow, id remoteElement); +void WKAXRegisterRemoteProcess(bool registerProcess, pid_t); +pid_t WKAXRemoteProcessIdentifier(id remoteElement); +#endif + +void WKSetUpFontCache(void); + +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 WKDrawCapsLockIndicator(CGContextRef, CGRect); + +void WKDrawFocusRing(CGContextRef context, CGColorRef color, int radius); + // The CG context's current path is the focus ring's path. + // A color of 0 means "use system focus ring color". + // A radius of 0 means "use default focus ring radius". + +void WKSetDragImage(NSImage *image, NSPoint offset); + +void WKDrawBezeledTextFieldCell(NSRect, BOOL enabled); +void WKDrawTextFieldCellFocusRing(NSTextFieldCell*, NSRect); +void WKDrawBezeledTextArea(NSRect, BOOL enabled); +void WKPopupMenu(NSMenu*, NSPoint location, float width, NSView*, int selectedItem, NSFont*); +void WKPopupContextMenu(NSMenu *menu, NSPoint screenLocation); +void WKSendUserChangeNotifications(void); +#ifndef __LP64__ +BOOL WKConvertNSEventToCarbonEvent(EventRecord *carbonEvent, NSEvent *cocoaEvent); +void WKSendKeyEventToTSM(NSEvent *theEvent); +void WKCallDrawingNotification(CGrafPtr port, Rect *bounds); +#endif + +BOOL WKGetGlyphTransformedAdvances(CGFontRef, NSFont*, CGAffineTransform *m, ATSGlyphRef *glyph, CGSize *advance); +NSFont *WKGetFontInLanguageForRange(NSFont *font, NSString *string, NSRange range); +NSFont *WKGetFontInLanguageForCharacter(NSFont *font, UniChar ch); +void WKSetCGFontRenderingMode(CGContextRef cgContext, NSFont *font); +BOOL WKCGContextGetShouldSmoothFonts(CGContextRef cgContext); + + +void WKSetBaseCTM(CGContextRef, CGAffineTransform); +void WKSetPatternPhaseInUserSpace(CGContextRef, CGPoint); +CGAffineTransform WKGetUserToBaseCTM(CGContextRef); + +void WKGetGlyphsForCharacters(CGFontRef, const UniChar[], CGGlyph[], size_t); +bool WKGetVerticalGlyphsForCharacters(CTFontRef, const UniChar[], CGGlyph[], size_t); + +CTLineRef WKCreateCTLineWithUniCharProvider(const UniChar* (*provide)(CFIndex stringIndex, CFIndex* charCount, CFDictionaryRef* attributes, void*), void (*dispose)(const UniChar* chars, void*), void*); +#if !defined(BUILDING_ON_LEOPARD) && !defined(BUILDING_ON_SNOW_LEOPARD) +CTTypesetterRef WKCreateCTTypesetterWithUniCharProviderAndOptions(const UniChar* (*provide)(CFIndex stringIndex, CFIndex* charCount, CFDictionaryRef* attributes, void*), void (*dispose)(const UniChar* chars, void*), void*, CFDictionaryRef options); + +CGContextRef WKIOSurfaceContextCreate(IOSurfaceRef, unsigned width, unsigned height, CGColorSpaceRef); +CGImageRef WKIOSurfaceContextCreateImage(CGContextRef context); +#endif + +typedef enum { + WKPatternTilingNoDistortion, + WKPatternTilingConstantSpacingMinimalDistortion, + WKPatternTilingConstantSpacing +} WKPatternTiling; + +CGPatternRef WKCGPatternCreateWithImageAndTransform(CGImageRef image, CGAffineTransform transform, int tiling); + +#ifndef __LP64__ +NSEvent *WKCreateNSEventWithCarbonEvent(EventRef eventRef); +NSEvent *WKCreateNSEventWithCarbonMouseMoveEvent(EventRef inEvent, NSWindow *window); +NSEvent *WKCreateNSEventWithCarbonClickEvent(EventRef inEvent, WindowRef windowRef); +#endif + +CGContextRef WKNSWindowOverrideCGContext(NSWindow *, CGContextRef); +void WKNSWindowRestoreCGContext(NSWindow *, CGContextRef); + +void WKNSWindowMakeBottomCornersSquare(NSWindow *); + +// These constants match the ones used by ThemeScrollbarArrowStyle (some of the values are private, so we can't just +// use that enum directly). +typedef enum { + WKThemeScrollBarArrowsSingle = 0, + WKThemeScrollBarArrowsLowerRight = 1, + WKThemeScrollBarArrowsDouble = 2, + WKThemeScrollBarArrowsUpperLeft = 3, +} WKThemeScrollBarArrowStyle; + +OSStatus WKThemeDrawTrack(const HIThemeTrackDrawInfo* inDrawInfo, CGContextRef inContext, int inArrowStyle); + + +BOOL WKCGContextIsBitmapContext(CGContextRef context); + +void WKGetWheelEventDeltas(NSEvent *, float *deltaX, float *deltaY, BOOL *continuous); + +BOOL WKAppVersionCheckLessThan(NSString *, int, double); + +typedef enum { + WKMovieTypeUnknown, + WKMovieTypeDownload, + WKMovieTypeStoredStream, + WKMovieTypeLiveStream +} WKMovieType; + +int WKQTMovieGetType(QTMovie* movie); + +BOOL WKQTMovieHasClosedCaptions(QTMovie* movie); +void WKQTMovieSetShowClosedCaptions(QTMovie* movie, BOOL showClosedCaptions); +void WKQTMovieSelectPreferredAlternates(QTMovie* movie); +void WKQTMovieSelectPreferredAlternateTrackForMediaType(QTMovie* movie, NSString* mediaType); + +unsigned WKQTIncludeOnlyModernMediaFileTypes(void); +int WKQTMovieDataRate(QTMovie* movie); +float WKQTMovieMaxTimeLoaded(QTMovie* movie); +float WKQTMovieMaxTimeSeekable(QTMovie* movie); +NSString *WKQTMovieMaxTimeLoadedChangeNotification(void); +void WKQTMovieViewSetDrawSynchronously(QTMovieView* view, BOOL sync); +void WKQTMovieDisableComponent(uint32_t[5]); +NSURL *WKQTMovieResolvedURL(QTMovie* movie); + +CFStringRef WKCopyFoundationCacheDirectory(void); + +#if defined(BUILDING_ON_SNOW_LEOPARD) || defined(BUILDING_ON_LEOPARD) +typedef struct __CFURLStorageSession* CFURLStorageSessionRef; +#else +typedef const struct __CFURLStorageSession* CFURLStorageSessionRef; +#endif +CFURLStorageSessionRef WKCreatePrivateStorageSession(CFStringRef); +NSURLRequest *WKCopyRequestWithStorageSession(CFURLStorageSessionRef, NSURLRequest*); +NSCachedURLResponse *WKCachedResponseForRequest(CFURLStorageSessionRef, NSURLRequest*); +void WKSetRequestStorageSession(CFURLStorageSessionRef, CFMutableURLRequestRef); + +typedef struct OpaqueCFHTTPCookieStorage* CFHTTPCookieStorageRef; +CFHTTPCookieStorageRef WKCopyHTTPCookieStorage(CFURLStorageSessionRef); +unsigned WKGetHTTPCookieAcceptPolicy(CFHTTPCookieStorageRef); +void WKSetHTTPCookieAcceptPolicy(CFHTTPCookieStorageRef, unsigned policy); +NSArray *WKHTTPCookiesForURL(CFHTTPCookieStorageRef, NSURL *); +void WKSetHTTPCookiesForURL(CFHTTPCookieStorageRef, NSArray *, NSURL *, NSURL *); +void WKDeleteHTTPCookie(CFHTTPCookieStorageRef, NSHTTPCookie *); + +CFHTTPCookieStorageRef WKGetDefaultHTTPCookieStorage(void); +WKCFURLCredentialRef WKCopyCredentialFromCFPersistentStorage(CFURLProtectionSpaceRef); +void WKSetCFURLRequestShouldContentSniff(CFMutableURLRequestRef, bool flag); +CFArrayRef WKCFURLRequestCopyHTTPRequestBodyParts(CFURLRequestRef); +void WKCFURLRequestSetHTTPRequestBodyParts(CFMutableURLRequestRef, CFArrayRef bodyParts); + +void WKSetVisibleApplicationName(CFStringRef); + +typedef enum { + WKMediaUIPartFullscreenButton = 0, + WKMediaUIPartMuteButton, + WKMediaUIPartPlayButton, + WKMediaUIPartSeekBackButton, + WKMediaUIPartSeekForwardButton, + WKMediaUIPartTimelineSlider, + WKMediaUIPartTimelineSliderThumb, + WKMediaUIPartRewindButton, + WKMediaUIPartSeekToRealtimeButton, + WKMediaUIPartShowClosedCaptionsButton, + WKMediaUIPartHideClosedCaptionsButton, + WKMediaUIPartUnMuteButton, + WKMediaUIPartPauseButton, + WKMediaUIPartBackground, + WKMediaUIPartCurrentTimeDisplay, + WKMediaUIPartTimeRemainingDisplay, + WKMediaUIPartStatusDisplay, + WKMediaUIPartControlsPanel, + WKMediaUIPartVolumeSliderContainer, + WKMediaUIPartVolumeSlider, + WKMediaUIPartVolumeSliderThumb +} WKMediaUIPart; + +typedef enum { + WKMediaControllerThemeClassic = 1, + WKMediaControllerThemeQuickTime = 2 +} WKMediaControllerThemeStyle; + +typedef enum { + WKMediaControllerFlagDisabled = 1 << 0, + WKMediaControllerFlagPressed = 1 << 1, + WKMediaControllerFlagDrawEndCaps = 1 << 3, + WKMediaControllerFlagFocused = 1 << 4 +} WKMediaControllerThemeState; + +BOOL WKMediaControllerThemeAvailable(int themeStyle); +BOOL WKHitTestMediaUIPart(int part, int themeStyle, CGRect bounds, CGPoint point); +void WKMeasureMediaUIPart(int part, int themeStyle, CGRect *bounds, CGSize *naturalSize); +void WKDrawMediaUIPart(int part, int themeStyle, CGContextRef context, CGRect rect, unsigned state); +void WKDrawMediaSliderTrack(int themeStyle, CGContextRef context, CGRect rect, float timeLoaded, float currentTime, float duration, unsigned state); +NSView *WKCreateMediaUIBackgroundView(void); + +typedef enum { + WKMediaUIControlTimeline, + WKMediaUIControlSlider, + WKMediaUIControlPlayPauseButton, + WKMediaUIControlExitFullscreenButton, + WKMediaUIControlRewindButton, + WKMediaUIControlFastForwardButton, + WKMediaUIControlVolumeUpButton, + WKMediaUIControlVolumeDownButton +} WKMediaUIControlType; + +NSControl *WKCreateMediaUIControl(int controlType); + +NSArray *WKQTGetSitesInMediaDownloadCache(); +void WKQTClearMediaDownloadCacheForSite(NSString *site); +void WKQTClearMediaDownloadCache(); + +#ifndef BUILDING_ON_LEOPARD +mach_port_t WKInitializeRenderServer(void); + +@class CALayer; + +CALayer *WKMakeRenderLayer(uint32_t contextID); + +typedef struct __WKSoftwareCARendererRef *WKSoftwareCARendererRef; + +WKSoftwareCARendererRef WKSoftwareCARendererCreate(uint32_t contextID); +void WKSoftwareCARendererDestroy(WKSoftwareCARendererRef); +void WKSoftwareCARendererRender(WKSoftwareCARendererRef, CGContextRef, CGRect); + +typedef struct __WKCARemoteLayerClientRef *WKCARemoteLayerClientRef; + +WKCARemoteLayerClientRef WKCARemoteLayerClientMakeWithServerPort(mach_port_t port); +void WKCARemoteLayerClientInvalidate(WKCARemoteLayerClientRef); +uint32_t WKCARemoteLayerClientGetClientId(WKCARemoteLayerClientRef); +void WKCARemoteLayerClientSetLayer(WKCARemoteLayerClientRef, CALayer *); +CALayer *WKCARemoteLayerClientGetLayer(WKCARemoteLayerClientRef); + +@class CARenderer; + +void WKCARendererAddChangeNotificationObserver(CARenderer *, void (*callback)(void*), void* context); +void WKCARendererRemoveChangeNotificationObserver(CARenderer *, void (*callback)(void*), void* context); + +typedef struct __WKWindowBounceAnimationContext *WKWindowBounceAnimationContextRef; + +WKWindowBounceAnimationContextRef WKWindowBounceAnimationContextCreate(NSWindow *window); +void WKWindowBounceAnimationContextDestroy(WKWindowBounceAnimationContextRef context); +void WKWindowBounceAnimationSetAnimationProgress(WKWindowBounceAnimationContextRef context, double animationProgress); + +#if defined(__x86_64__) +#import <mach/mig.h> +CFRunLoopSourceRef WKCreateMIGServerSource(mig_subsystem_t subsystem, mach_port_t serverPort); +#endif // defined(__x86_64__) + +NSUInteger WKGetInputPanelWindowStyle(void); +UInt8 WKGetNSEventKeyChar(NSEvent *); +#endif // !defined(BUILDING_ON_LEOPARD) + +@class CAPropertyAnimation; +void WKSetCAAnimationValueFunction(CAPropertyAnimation*, NSString* function); + +unsigned WKInitializeMaximumHTTPConnectionCountPerHost(unsigned preferredConnectionCount); +int WKGetHTTPPipeliningPriority(CFURLRequestRef); +void WKSetHTTPPipeliningMaximumPriority(int maximumPriority); +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); + +#if defined(BUILDING_ON_LEOPARD) || defined(BUILDING_ON_SNOW_LEOPARD) +typedef enum { + WKEventPhaseNone = 0, + WKEventPhaseBegan = 1, + WKEventPhaseChanged = 2, + WKEventPhaseEnded = 3, +} WKEventPhase; + +int WKGetNSEventMomentumPhase(NSEvent *); +#endif + +void WKWindowSetAlpha(NSWindow *window, float alphaValue); +void WKWindowSetScaledFrame(NSWindow *window, NSRect scaleFrame, NSRect nonScaledFrame); + +#ifndef BUILDING_ON_LEOPARD +void WKSyncSurfaceToView(NSView *view); + +void WKEnableSettingCursorWhenInBackground(void); + +CFDictionaryRef WKNSURLRequestCreateSerializableRepresentation(NSURLRequest *request, CFTypeRef tokenNull); +NSURLRequest *WKNSURLRequestFromSerializableRepresentation(CFDictionaryRef representation, CFTypeRef tokenNull); + +CFDictionaryRef WKNSURLResponseCreateSerializableRepresentation(NSURLResponse *response, CFTypeRef tokenNull); +NSURLResponse *WKNSURLResponseFromSerializableRepresentation(CFDictionaryRef representation, CFTypeRef tokenNull); + +#ifndef __LP64__ +ScriptCode WKGetScriptCodeFromCurrentKeyboardInputSource(void); +#endif + +#endif + +#if defined(BUILDING_ON_LEOPARD) || defined(BUILDING_ON_SNOW_LEOPARD) +CFIndex WKGetHyphenationLocationBeforeIndex(CFStringRef string, CFIndex index); +#endif + +CFArrayRef WKCFURLCacheCopyAllHostNamesInPersistentStore(void); +void WKCFURLCacheDeleteHostNamesInPersistentStore(CFArrayRef hostArray); + +CFStringRef WKGetCFURLResponseMIMEType(CFURLResponseRef); +CFURLRef WKGetCFURLResponseURL(CFURLResponseRef); +CFHTTPMessageRef WKGetCFURLResponseHTTPResponse(CFURLResponseRef); +CFStringRef WKCopyCFURLResponseSuggestedFilename(CFURLResponseRef); +void WKSetCFURLResponseMIMEType(CFURLResponseRef, CFStringRef mimeType); + +CIFormat WKCIGetRGBA8Format(void); + +#if !defined(BUILDING_ON_LEOPARD) && !defined(BUILDING_ON_SNOW_LEOPARD) + +typedef enum { + WKSandboxExtensionTypeReadOnly, + WKSandboxExtensionTypeWriteOnly, + WKSandboxExtensionTypeReadWrite, +} WKSandboxExtensionType; +typedef struct __WKSandboxExtension *WKSandboxExtensionRef; + +WKSandboxExtensionRef WKSandboxExtensionCreate(const char* path, WKSandboxExtensionType type); +void WKSandboxExtensionDestroy(WKSandboxExtensionRef sandboxExtension); + +bool WKSandboxExtensionConsume(WKSandboxExtensionRef sandboxExtension); +bool WKSandboxExtensionInvalidate(WKSandboxExtensionRef sandboxExtension); + +const char* WKSandboxExtensionGetSerializedFormat(WKSandboxExtensionRef sandboxExtension, size_t* length); +WKSandboxExtensionRef WKSandboxExtensionCreateFromSerializedFormat(const char* serializationFormat, size_t length); + +int WKRecommendedScrollerStyle(void); + +bool WKExecutableWasLinkedOnOrBeforeSnowLeopard(void); + +NSRange WKExtractWordDefinitionTokenRangeFromContextualString(NSString *contextString, NSRange range, NSDictionary **options); +void WKShowWordDefinitionWindow(NSAttributedString *term, NSPoint screenPoint, NSDictionary *options); +void WKHideWordDefinitionWindow(void); + +CFStringRef WKCopyDefaultSearchProviderDisplayName(void); + +NSURL* WKAVAssetResolvedURL(AVAsset*); + +NSCursor *WKCursor(const char *name); + +#endif + +#if !defined(BUILDING_ON_LEOPARD) && !defined(BUILDING_ON_SNOW_LEOPARD) + +#import <dispatch/dispatch.h> + +dispatch_source_t WKCreateVMPressureDispatchOnMainQueue(void); + +#endif + +#ifdef __cplusplus +} +#endif diff --git a/third_party/apple_webkit/libWebKitSystemInterfaceLeopard.a b/third_party/apple_webkit/libWebKitSystemInterfaceLeopard.a Binary files differnew file mode 100644 index 0000000..b3079da --- /dev/null +++ b/third_party/apple_webkit/libWebKitSystemInterfaceLeopard.a |