* WebKitSystemInterface.h: Update to latest
[WebKit-https.git] / WebKitLibraries / WebKitSystemInterface.h
index e8558369413ec45165b627878d2e9d0bf2de983c..f5224c6628d7aaaa3d576ec52bd3c79170728039 100644 (file)
@@ -32,8 +32,8 @@ BOOL WKGetNSURLResponseMustRevalidate(NSURLResponse *response);
 
 CFStringEncoding WKGetWebDefaultCFStringEncoding(void);
 
-float WKSecondsSinceLastInputEvent();
-CFStringRef WKPreferRGB32Key();
+float WKSecondsSinceLastInputEvent(void);
+CFStringRef WKPreferRGB32Key(void);
 
 void WKSetNSURLConnectionDefersCallbacks(NSURLConnection *connection, BOOL defers);
 float WKSecondsSinceLastInputEvent(void);
@@ -47,26 +47,26 @@ OSType WKCarbonWindowPropertyTag(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);
 
@@ -78,19 +78,19 @@ 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 (*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);
@@ -123,3 +123,6 @@ NSEvent *WKCreateNSEventWithCarbonMouseMoveEvent(EventRef inEvent, NSWindow *win
 NSEvent *WKCreateNSEventWithCarbonClickEvent(EventRef inEvent, WindowRef windowRef);
 
 BOOL WKExecutableLinkedInTigerOrEarlier(void);
+
+CGContextRef WKNSWindowOverrideCGContext(NSWindow *, CGContextRef);
+void WKNSWindowRestoreCGContext(NSWindow *, CGContextRef);