CFStringEncoding WKGetWebDefaultCFStringEncoding(void);
-float WKSecondsSinceLastInputEvent();
-CFStringRef WKPreferRGB32Key();
+float WKSecondsSinceLastInputEvent(void);
+CFStringRef WKPreferRGB32Key(void);
void WKSetNSURLConnectionDefersCallbacks(NSURLConnection *connection, BOOL defers);
float WKSecondsSinceLastInputEvent(void);
typedef id WKNSURLConnectionDelegateProxyPtr;
-WKNSURLConnectionDelegateProxyPtr WKCreateNSURLConnectionDelegateProxy();
+WKNSURLConnectionDelegateProxyPtr WKCreateNSURLConnectionDelegateProxy(void);
-void WKDisableCGDeferredUpdates();
+void WKDisableCGDeferredUpdates(void);
Class WKNSURLProtocolClassForReqest(NSURLRequest *request);
-unsigned WKGetNSAutoreleasePoolCount();
+unsigned WKGetNSAutoreleasePoolCount(void);
-NSString *WKMouseMovedNotification();
-BOOL WKMouseIsDown();
+NSString *WKMouseMovedNotification(void);
+BOOL WKMouseIsDown(void);
void WKSetNSWindowShouldPostEventNotifications(NSWindow *window, BOOL post);
-CFTypeID WKGetAXTextMarkerTypeID();
-CFTypeID WKGetAXTextMarkerRangeTypeID();
+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 WKAccessibilityHandleFocusChanged(void);
AXUIElementRef WKCreateAXUIElementRef(id element);
void WKUnregisterUniqueIdForElement(id element);
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 (*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 WKSetFocusRingStyle(NSFocusRingPlacement placement, int radius, NSColor *color);
void WKSetDragImage(NSImage *image, NSPoint offset);
-void WKSendUserChangeNotifications();
+void WKSendUserChangeNotifications(void);
BOOL WKConvertNSEventToCarbonEvent(EventRecord *carbonEvent, NSEvent *cocoaEvent);
void WKSendKeyEventToTSM(NSEvent *theEvent);
void WKCallDrawingNotification(CGrafPtr port, Rect *bounds);
NSEvent *WKCreateNSEventWithCarbonClickEvent(EventRef inEvent, WindowRef windowRef);
BOOL WKExecutableLinkedInTigerOrEarlier(void);
+
+CGContextRef WKNSWindowOverrideCGContext(NSWindow *, CGContextRef);
+void WKNSWindowRestoreCGContext(NSWindow *, CGContextRef);