diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2008-12-17 18:05:15 -0800 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2008-12-17 18:05:15 -0800 |
commit | 1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353 (patch) | |
tree | 4457a7306ea5acb43fe05bfe0973b1f7faf97ba2 /WebKitLibraries/WebKitSystemInterface.h | |
parent | 9364f22aed35e1a1e9d07c121510f80be3ab0502 (diff) | |
download | external_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.zip external_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.tar.gz external_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.tar.bz2 |
Code drop from //branches/cupcake/...@124589
Diffstat (limited to 'WebKitLibraries/WebKitSystemInterface.h')
-rw-r--r-- | WebKitLibraries/WebKitSystemInterface.h | 43 |
1 files changed, 26 insertions, 17 deletions
diff --git a/WebKitLibraries/WebKitSystemInterface.h b/WebKitLibraries/WebKitSystemInterface.h index de8cb12..c1d4822 100644 --- a/WebKitLibraries/WebKitSystemInterface.h +++ b/WebKitLibraries/WebKitSystemInterface.h @@ -1,6 +1,6 @@ /* WebKitSystemInterface.h - Copyright (C) 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. + Copyright (C) 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. Public header file. */ @@ -31,17 +31,11 @@ NSString *WKGetMIMETypeForExtension(NSString *extension); NSDate *WKGetNSURLResponseLastModifiedDate(NSURLResponse *response); NSTimeInterval WKGetNSURLResponseFreshnessLifetime(NSURLResponse *response); -NSTimeInterval WKGetNSURLResponseCalculatedExpiration(NSURLResponse *response); -BOOL WKGetNSURLResponseMustRevalidate(NSURLResponse *response); CFStringEncoding WKGetWebDefaultCFStringEncoding(void); -float WKSecondsSinceLastInputEvent(void); -CFStringRef WKPreferRGB32Key(void); - void WKSetMetadataURL(NSString *URLString, NSString *referrer, NSString *path); void WKSetNSURLConnectionDefersCallbacks(NSURLConnection *connection, BOOL defers); -float WKSecondsSinceLastInputEvent(void); void WKShowKeyAndMain(void); #ifndef __LP64__ @@ -58,12 +52,15 @@ WKNSURLConnectionDelegateProxyPtr WKCreateNSURLConnectionDelegateProxy(void); void WKDisableCGDeferredUpdates(void); -Class WKNSURLProtocolClassForReqest(NSURLRequest *request); +Class WKNSURLProtocolClassForRequest(NSURLRequest *request); void WKSetNSURLRequestShouldContentSniff(NSMutableURLRequest *request, BOOL shouldContentSniff); unsigned WKGetNSAutoreleasePoolCount(void); +void WKAdvanceDefaultButtonPulseAnimation(NSButtonCell *button); + NSString *WKMouseMovedNotification(void); +NSString *WKWindowWillOrderOnScreenNotification(void); void WKSetNSWindowShouldPostEventNotifications(NSWindow *window, BOOL post); CFTypeID WKGetAXTextMarkerTypeID(void); @@ -77,8 +74,7 @@ void WKAccessibilityHandleFocusChanged(void); AXUIElementRef WKCreateAXUIElementRef(id element); void WKUnregisterUniqueIdForElement(id element); -BOOL WKFontSmoothingModeIsLCD(int mode); -void WKSetUpFontCache(size_t s); +void WKSetUpFontCache(void); void WKSignalCFReadStreamEnd(CFReadStreamRef stream); void WKSignalCFReadStreamHasBytes(CFReadStreamRef stream); @@ -109,35 +105,46 @@ void WKDrawBezeledTextArea(NSRect, BOOL enabled); void WKPopupMenu(NSMenu*, NSPoint location, float width, NSView*, int selectedItem, NSFont*); void WKSendUserChangeNotifications(void); -#ifndef __LP64__ +#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); -CGFontRef WKGetCGFontFromNSFont(NSFont *font); -void WKGetFontMetrics(CGFontRef font, int *ascent, int *descent, int *lineGap, unsigned *unitsPerEm); NSFont *WKGetFontInLanguageForRange(NSFont *font, NSString *string, NSRange range); NSFont *WKGetFontInLanguageForCharacter(NSFont *font, UniChar ch); void WKSetCGFontRenderingMode(CGContextRef cgContext, NSFont *font); -ATSUFontID WKGetNSFontATSUFontId(NSFont *font); -void WKReleaseStyleGroup(void *group); BOOL WKCGContextGetShouldSmoothFonts(CGContextRef cgContext); +#ifdef BUILDING_ON_TIGER +// CGFontGetAscent, CGFontGetDescent, CGFontGetLeading and CGFontGetUnitsPerEm were not available until Leopard +void WKGetFontMetrics(CGFontRef font, int *ascent, int *descent, int *lineGap, unsigned *unitsPerEm); +// CTFontCopyGraphicsFont was not available until Leopard +CGFontRef WKGetCGFontFromNSFont(NSFont *font); +// CTFontGetPlatformFont was not available until Leopard +ATSUFontID WKGetNSFontATSUFontId(NSFont *font); +// CGFontCopyFullName was not available until Leopard +CFStringRef WKCopyFullFontName(CGFontRef font); +#endif + void WKSetPatternBaseCTM(CGContextRef, CGAffineTransform); void WKSetPatternPhaseInUserSpace(CGContextRef, CGPoint); +#ifndef BUILDING_ON_TIGER +void WKGetGlyphsForCharacters(CGFontRef, const UniChar[], CGGlyph[], size_t); +#else typedef void *WKGlyphVectorRef; OSStatus WKConvertCharToGlyphs(void *styleGroup, const UniChar *characters, unsigned numCharacters, WKGlyphVectorRef glyphs); OSStatus WKGetATSStyleGroup(ATSUStyle fontStyle, void **styleGroup); +void WKReleaseStyleGroup(void *group); OSStatus WKInitializeGlyphVector(int count, WKGlyphVectorRef glyphs); void WKClearGlyphVector(WKGlyphVectorRef glyphs); int WKGetGlyphVectorNumGlyphs(WKGlyphVectorRef glyphVector); ATSLayoutRecord *WKGetGlyphVectorFirstRecord(WKGlyphVectorRef glyphVector); size_t WKGetGlyphVectorRecordSize(WKGlyphVectorRef glyphVector); -ATSGlyphRef WKGetDefaultGlyphForChar(NSFont *font, UniChar c); +#endif #ifndef __LP64__ NSEvent *WKCreateNSEventWithCarbonEvent(EventRef eventRef); @@ -150,8 +157,10 @@ void WKNSWindowRestoreCGContext(NSWindow *, CGContextRef); void WKNSWindowMakeBottomCornersSquare(NSWindow *); +#ifdef BUILDING_ON_TIGER +// WKSupportsMultipartXMixedReplace is not required on Leopard as multipart/x-mixed-replace is always handled by NSURLRequest BOOL WKSupportsMultipartXMixedReplace(NSMutableURLRequest *request); -NSString* WKPathFromFont(NSFont *font); +#endif BOOL WKCGContextIsBitmapContext(CGContextRef context); |