| 1 |
|
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
#import <Cocoa/Cocoa.h> |
|---|
| 9 |
#import <Carbon/Carbon.h> |
|---|
| 10 |
|
|---|
| 11 |
@class QTMovie; |
|---|
| 12 |
@class QTMovieView; |
|---|
| 13 |
|
|---|
| 14 |
#ifdef __cplusplus |
|---|
| 15 |
extern "C" { |
|---|
| 16 |
#endif |
|---|
| 17 |
|
|---|
| 18 |
typedef enum { |
|---|
| 19 |
WKCertificateParseResultSucceeded = 0, |
|---|
| 20 |
WKCertificateParseResultFailed = 1, |
|---|
| 21 |
WKCertificateParseResultPKCS7 = 2, |
|---|
| 22 |
} WKCertificateParseResult; |
|---|
| 23 |
|
|---|
| 24 |
CFStringRef WKCopyCFLocalizationPreferredName(CFStringRef localization); |
|---|
| 25 |
CFStringRef WKSignedPublicKeyAndChallengeString(unsigned keySize, CFStringRef challenge, CFStringRef keyDescription); |
|---|
| 26 |
WKCertificateParseResult WKAddCertificatesToKeychainFromData(const void *bytes, unsigned length); |
|---|
| 27 |
|
|---|
| 28 |
NSString *WKGetPreferredExtensionForMIMEType(NSString *type); |
|---|
| 29 |
NSArray *WKGetExtensionsForMIMEType(NSString *type); |
|---|
| 30 |
NSString *WKGetMIMETypeForExtension(NSString *extension); |
|---|
| 31 |
|
|---|
| 32 |
NSDate *WKGetNSURLResponseLastModifiedDate(NSURLResponse *response); |
|---|
| 33 |
NSTimeInterval WKGetNSURLResponseFreshnessLifetime(NSURLResponse *response); |
|---|
| 34 |
|
|---|
| 35 |
CFStringEncoding WKGetWebDefaultCFStringEncoding(void); |
|---|
| 36 |
|
|---|
| 37 |
void WKSetMetadataURL(NSString *URLString, NSString *referrer, NSString *path); |
|---|
| 38 |
void WKSetNSURLConnectionDefersCallbacks(NSURLConnection *connection, BOOL defers); |
|---|
| 39 |
|
|---|
| 40 |
void WKShowKeyAndMain(void); |
|---|
| 41 |
#ifndef __LP64__ |
|---|
| 42 |
OSStatus WKSyncWindowWithCGAfterMove(WindowRef); |
|---|
| 43 |
unsigned WKCarbonWindowMask(void); |
|---|
| 44 |
void *WKGetNativeWindowFromWindowRef(WindowRef); |
|---|
| 45 |
OSType WKCarbonWindowPropertyCreator(void); |
|---|
| 46 |
OSType WKCarbonWindowPropertyTag(void); |
|---|
| 47 |
#endif |
|---|
| 48 |
|
|---|
| 49 |
typedef id WKNSURLConnectionDelegateProxyPtr; |
|---|
| 50 |
|
|---|
| 51 |
WKNSURLConnectionDelegateProxyPtr WKCreateNSURLConnectionDelegateProxy(void); |
|---|
| 52 |
|
|---|
| 53 |
void WKDisableCGDeferredUpdates(void); |
|---|
| 54 |
|
|---|
| 55 |
Class WKNSURLProtocolClassForRequest(NSURLRequest *request); |
|---|
| 56 |
void WKSetNSURLRequestShouldContentSniff(NSMutableURLRequest *request, BOOL shouldContentSniff); |
|---|
| 57 |
|
|---|
| 58 |
unsigned WKGetNSAutoreleasePoolCount(void); |
|---|
| 59 |
|
|---|
| 60 |
NSString *WKMouseMovedNotification(void); |
|---|
| 61 |
void WKSetNSWindowShouldPostEventNotifications(NSWindow *window, BOOL post); |
|---|
| 62 |
|
|---|
| 63 |
CFTypeID WKGetAXTextMarkerTypeID(void); |
|---|
| 64 |
CFTypeID WKGetAXTextMarkerRangeTypeID(void); |
|---|
| 65 |
CFTypeRef WKCreateAXTextMarker(const void *bytes, size_t len); |
|---|
| 66 |
BOOL WKGetBytesFromAXTextMarker(CFTypeRef textMarker, void *bytes, size_t length); |
|---|
| 67 |
CFTypeRef WKCreateAXTextMarkerRange(CFTypeRef start, CFTypeRef end); |
|---|
| 68 |
CFTypeRef WKCopyAXTextMarkerRangeStart(CFTypeRef range); |
|---|
| 69 |
CFTypeRef WKCopyAXTextMarkerRangeEnd(CFTypeRef range); |
|---|
| 70 |
void WKAccessibilityHandleFocusChanged(void); |
|---|
| 71 |
AXUIElementRef WKCreateAXUIElementRef(id element); |
|---|
| 72 |
void WKUnregisterUniqueIdForElement(id element); |
|---|
| 73 |
|
|---|
| 74 |
void WKSetUpFontCache(void); |
|---|
| 75 |
|
|---|
| 76 |
void WKSignalCFReadStreamEnd(CFReadStreamRef stream); |
|---|
| 77 |
void WKSignalCFReadStreamHasBytes(CFReadStreamRef stream); |
|---|
| 78 |
void WKSignalCFReadStreamError(CFReadStreamRef stream, CFStreamError *error); |
|---|
| 79 |
|
|---|
| 80 |
CFReadStreamRef WKCreateCustomCFReadStream(void *(*formCreate)(CFReadStreamRef, void *), |
|---|
| 81 |
void (*formFinalize)(CFReadStreamRef, void *), |
|---|
| 82 |
Boolean (*formOpen)(CFReadStreamRef, CFStreamError *, Boolean *, void *), |
|---|
| 83 |
CFIndex (*formRead)(CFReadStreamRef, UInt8 *, CFIndex, CFStreamError *, Boolean *, void *), |
|---|
| 84 |
Boolean (*formCanRead)(CFReadStreamRef, void *), |
|---|
| 85 |
void (*formClose)(CFReadStreamRef, void *), |
|---|
| 86 |
void (*formSchedule)(CFReadStreamRef, CFRunLoopRef, CFStringRef, void *), |
|---|
| 87 |
void (*formUnschedule)(CFReadStreamRef, CFRunLoopRef, CFStringRef, void *), |
|---|
| 88 |
void *context); |
|---|
| 89 |
|
|---|
| 90 |
void WKDrawCapsLockIndicator(CGContextRef, CGRect); |
|---|
| 91 |
|
|---|
| 92 |
void WKDrawFocusRing(CGContextRef context, CGColorRef color, int radius); |
|---|
| 93 |
|
|---|
| 94 |
|
|---|
| 95 |
|
|---|
| 96 |
|
|---|
| 97 |
void WKSetDragImage(NSImage *image, NSPoint offset); |
|---|
| 98 |
|
|---|
| 99 |
void WKDrawBezeledTextFieldCell(NSRect, BOOL enabled); |
|---|
| 100 |
void WKDrawTextFieldCellFocusRing(NSTextFieldCell*, NSRect); |
|---|
| 101 |
void WKDrawBezeledTextArea(NSRect, BOOL enabled); |
|---|
| 102 |
void WKPopupMenu(NSMenu*, NSPoint location, float width, NSView*, int selectedItem, NSFont*); |
|---|
| 103 |
|
|---|
| 104 |
void WKSendUserChangeNotifications(void); |
|---|
| 105 |
#ifndef __LP64__ |
|---|
| 106 |
BOOL WKConvertNSEventToCarbonEvent(EventRecord *carbonEvent, NSEvent *cocoaEvent); |
|---|
| 107 |
void WKSendKeyEventToTSM(NSEvent *theEvent); |
|---|
| 108 |
void WKCallDrawingNotification(CGrafPtr port, Rect *bounds); |
|---|
| 109 |
#endif |
|---|
| 110 |
|
|---|
| 111 |
BOOL WKGetGlyphTransformedAdvances(CGFontRef, NSFont*, CGAffineTransform *m, ATSGlyphRef *glyph, CGSize *advance); |
|---|
| 112 |
NSFont *WKGetFontInLanguageForRange(NSFont *font, NSString *string, NSRange range); |
|---|
| 113 |
NSFont *WKGetFontInLanguageForCharacter(NSFont *font, UniChar ch); |
|---|
| 114 |
void WKSetCGFontRenderingMode(CGContextRef cgContext, NSFont *font); |
|---|
| 115 |
void WKReleaseStyleGroup(void *group); |
|---|
| 116 |
BOOL WKCGContextGetShouldSmoothFonts(CGContextRef cgContext); |
|---|
| 117 |
|
|---|
| 118 |
#ifdef BUILDING_ON_TIGER |
|---|
| 119 |
|
|---|
| 120 |
void WKGetFontMetrics(CGFontRef font, int *ascent, int *descent, int *lineGap, unsigned *unitsPerEm); |
|---|
| 121 |
|
|---|
| 122 |
CGFontRef WKGetCGFontFromNSFont(NSFont *font); |
|---|
| 123 |
|
|---|
| 124 |
ATSUFontID WKGetNSFontATSUFontId(NSFont *font); |
|---|
| 125 |
|
|---|
| 126 |
CFStringRef WKCopyFullFontName(CGFontRef font); |
|---|
| 127 |
#endif |
|---|
| 128 |
|
|---|
| 129 |
void WKSetPatternBaseCTM(CGContextRef, CGAffineTransform); |
|---|
| 130 |
void WKSetPatternPhaseInUserSpace(CGContextRef, CGPoint); |
|---|
| 131 |
|
|---|
| 132 |
typedef void *WKGlyphVectorRef; |
|---|
| 133 |
OSStatus WKConvertCharToGlyphs(void *styleGroup, const UniChar *characters, unsigned numCharacters, WKGlyphVectorRef glyphs); |
|---|
| 134 |
OSStatus WKGetATSStyleGroup(ATSUStyle fontStyle, void **styleGroup); |
|---|
| 135 |
OSStatus WKInitializeGlyphVector(int count, WKGlyphVectorRef glyphs); |
|---|
| 136 |
void WKClearGlyphVector(WKGlyphVectorRef glyphs); |
|---|
| 137 |
|
|---|
| 138 |
int WKGetGlyphVectorNumGlyphs(WKGlyphVectorRef glyphVector); |
|---|
| 139 |
ATSLayoutRecord *WKGetGlyphVectorFirstRecord(WKGlyphVectorRef glyphVector); |
|---|
| 140 |
size_t WKGetGlyphVectorRecordSize(WKGlyphVectorRef glyphVector); |
|---|
| 141 |
|
|---|
| 142 |
#ifndef __LP64__ |
|---|
| 143 |
NSEvent *WKCreateNSEventWithCarbonEvent(EventRef eventRef); |
|---|
| 144 |
NSEvent *WKCreateNSEventWithCarbonMouseMoveEvent(EventRef inEvent, NSWindow *window); |
|---|
| 145 |
NSEvent *WKCreateNSEventWithCarbonClickEvent(EventRef inEvent, WindowRef windowRef); |
|---|
| 146 |
#endif |
|---|
| 147 |
|
|---|
| 148 |
CGContextRef WKNSWindowOverrideCGContext(NSWindow *, CGContextRef); |
|---|
| 149 |
void WKNSWindowRestoreCGContext(NSWindow *, CGContextRef); |
|---|
| 150 |
|
|---|
| 151 |
void WKNSWindowMakeBottomCornersSquare(NSWindow *); |
|---|
| 152 |
|
|---|
| 153 |
#ifdef BUILDING_ON_TIGER |
|---|
| 154 |
|
|---|
| 155 |
BOOL WKSupportsMultipartXMixedReplace(NSMutableURLRequest *request); |
|---|
| 156 |
#endif |
|---|
| 157 |
|
|---|
| 158 |
BOOL WKCGContextIsBitmapContext(CGContextRef context); |
|---|
| 159 |
|
|---|
| 160 |
void WKGetWheelEventDeltas(NSEvent *, float *deltaX, float *deltaY, BOOL *continuous); |
|---|
| 161 |
|
|---|
| 162 |
BOOL WKAppVersionCheckLessThan(NSString *, int, double); |
|---|
| 163 |
|
|---|
| 164 |
int WKQTMovieDataRate(QTMovie* movie); |
|---|
| 165 |
float WKQTMovieMaxTimeLoaded(QTMovie* movie); |
|---|
| 166 |
void WKQTMovieViewSetDrawSynchronously(QTMovieView* view, BOOL sync); |
|---|
| 167 |
|
|---|
| 168 |
CFStringRef WKCopyFoundationCacheDirectory(void); |
|---|
| 169 |
|
|---|
| 170 |
void WKDrawMediaFullscreenButton(CGContextRef context, CGRect rect, BOOL active); |
|---|
| 171 |
void WKDrawMediaMuteButton(CGContextRef context, CGRect rect, BOOL active); |
|---|
| 172 |
void WKDrawMediaPauseButton(CGContextRef context, CGRect rect, BOOL active); |
|---|
| 173 |
void WKDrawMediaPlayButton(CGContextRef context, CGRect rect, BOOL active); |
|---|
| 174 |
void WKDrawMediaSeekBackButton(CGContextRef context, CGRect rect, BOOL active); |
|---|
| 175 |
void WKDrawMediaSeekForwardButton(CGContextRef context, CGRect rect, BOOL active); |
|---|
| 176 |
void WKDrawMediaSliderTrack(CGContextRef context, CGRect rect, float percentLoaded); |
|---|
| 177 |
void WKDrawMediaSliderThumb(CGContextRef context, CGRect rect, BOOL active); |
|---|
| 178 |
void WKDrawMediaUnMuteButton(CGContextRef context, CGRect rect, BOOL active); |
|---|
| 179 |
|
|---|
| 180 |
#ifdef __cplusplus |
|---|
| 181 |
} |
|---|
| 182 |
#endif |
|---|
| 183 |
|
|---|