diff options
Diffstat (limited to 'WebKitLibraries/WebKitSystemInterface.h')
| -rw-r--r-- | WebKitLibraries/WebKitSystemInterface.h | 58 |
1 files changed, 49 insertions, 9 deletions
diff --git a/WebKitLibraries/WebKitSystemInterface.h b/WebKitLibraries/WebKitSystemInterface.h index ed68410..7ec07fb 100644 --- a/WebKitLibraries/WebKitSystemInterface.h +++ b/WebKitLibraries/WebKitSystemInterface.h @@ -1,6 +1,6 @@ /* WebKitSystemInterface.h - Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. + Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. Public header file. */ @@ -31,6 +31,11 @@ NSString *WKGetMIMETypeForExtension(NSString *extension); NSDate *WKGetNSURLResponseLastModifiedDate(NSURLResponse *response); NSTimeInterval WKGetNSURLResponseFreshnessLifetime(NSURLResponse *response); +NSString *WKCopyNSURLResponseStatusLine(NSURLResponse *response); + +#if !defined(BUILDING_ON_TIGER) && !defined(BUILDING_ON_LEOPARD) +CFArrayRef WKCopyNSURLResponseCertificateChain(NSURLResponse *response); +#endif CFStringEncoding WKGetWebDefaultCFStringEncoding(void); @@ -55,6 +60,8 @@ void WKDisableCGDeferredUpdates(void); Class WKNSURLProtocolClassForRequest(NSURLRequest *request); void WKSetNSURLRequestShouldContentSniff(NSMutableURLRequest *request, BOOL shouldContentSniff); +void WKSetCookieStoragePrivateBrowsingEnabled(BOOL enabled); + unsigned WKGetNSAutoreleasePoolCount(void); void WKAdvanceDefaultButtonPulseAnimation(NSButtonCell *button); @@ -147,6 +154,11 @@ ATSLayoutRecord *WKGetGlyphVectorFirstRecord(WKGlyphVectorRef glyphVector); size_t WKGetGlyphVectorRecordSize(WKGlyphVectorRef glyphVector); #endif +CTLineRef WKCreateCTLineWithUniCharProvider(const UniChar* (*provide)(CFIndex stringIndex, CFIndex* charCount, CFDictionaryRef* attributes, void*), void (*dispose)(const UniChar* chars, void*), void*); +#if !defined(BUILDING_ON_TIGER) && !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); +#endif + #ifndef __LP64__ NSEvent *WKCreateNSEventWithCarbonEvent(EventRef eventRef); NSEvent *WKCreateNSEventWithCarbonMouseMoveEvent(EventRef inEvent, NSWindow *window); @@ -191,6 +203,8 @@ 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); @@ -198,17 +212,20 @@ float WKQTMovieMaxTimeLoaded(QTMovie* movie); float WKQTMovieMaxTimeSeekable(QTMovie* movie); NSString *WKQTMovieMaxTimeLoadedChangeNotification(void); void WKQTMovieViewSetDrawSynchronously(QTMovieView* view, BOOL sync); +void WKQTMovieDisableComponent(uint32_t[5]); CFStringRef WKCopyFoundationCacheDirectory(void); +void WKSetVisibleApplicationName(CFStringRef); + typedef enum { WKMediaUIPartFullscreenButton = 0, WKMediaUIPartMuteButton, WKMediaUIPartPlayButton, WKMediaUIPartSeekBackButton, WKMediaUIPartSeekForwardButton, - WKMediaUIPartSlider, - WKMediaUIPartSliderThumb, + WKMediaUIPartTimelineSlider, + WKMediaUIPartTimelineSliderThumb, WKMediaUIPartRewindButton, WKMediaUIPartSeekToRealtimeButton, WKMediaUIPartShowClosedCaptionsButton, @@ -217,7 +234,12 @@ typedef enum { WKMediaUIPartPauseButton, WKMediaUIPartBackground, WKMediaUIPartCurrentTimeDisplay, - WKMediaUIPartTimeRemainingDisplay + WKMediaUIPartTimeRemainingDisplay, + WKMediaUIPartStatusDisplay, + WKMediaUIPartControlsPanel, + WKMediaUIPartVolumeSliderContainer, + WKMediaUIPartVolumeSlider, + WKMediaUIPartVolumeSliderThumb } WKMediaUIPart; typedef enum { @@ -248,12 +270,11 @@ typedef enum { WKMediaUIControlFastForwardButton, WKMediaUIControlVolumeUpButton, WKMediaUIControlVolumeDownButton - } WKMediaUIControlType; NSControl *WKCreateMediaUIControl(int controlType); -#if !defined(BUILDING_ON_TIGER) && !defined(BUILDING_ON_LEOPARD) && defined(__x86_64__) +#if !defined(BUILDING_ON_TIGER) && !defined(BUILDING_ON_LEOPARD) mach_port_t WKInitializeRenderServer(void); @class CALayer; @@ -266,6 +287,21 @@ 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); + +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); @@ -273,8 +309,8 @@ CFRunLoopSourceRef WKCreateMIGServerSource(mig_subsystem_t subsystem, mach_port_ NSUInteger WKGetInputPanelWindowStyle(void); UInt8 WKGetNSEventKeyChar(NSEvent *); - -#endif +#endif // defined(__x86_64__) +#endif // !defined(BUILDING_ON_TIGER) && !defined(BUILDING_ON_LEOPARD) @class CAPropertyAnimation; void WKSetCAAnimationValueFunction(CAPropertyAnimation*, NSString* function); @@ -293,7 +329,11 @@ void WKWindowSetScaledFrame(NSWindow *window, NSRect scaleFrame, NSRect nonScale #endif #if !defined(BUILDING_ON_TIGER) && !defined(BUILDING_ON_LEOPARD) -NSMutableArray *WKNoteOpenPanelFiles(NSArray *paths); +void WKSyncSurfaceToView(NSView *view); +#endif + +#if defined(BUILDING_ON_TIGER) || defined(BUILDING_ON_LEOPARD) || defined(BUILDING_ON_SNOW_LEOPARD) +CFIndex WKGetHyphenationLocationBeforeIndex(CFStringRef string, CFIndex index); #endif #ifdef __cplusplus |
