* WebKitSystemInterface.h: Added WKDrawFocusRing.
authordarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 19 Feb 2006 18:37:19 +0000 (18:37 +0000)
committerdarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 19 Feb 2006 18:37:19 +0000 (18:37 +0000)
        * libWebKitSystemInterface.a: Ditto.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@12899 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKitLibraries/ChangeLog
WebKitLibraries/WebKitSystemInterface.h
WebKitLibraries/libWebKitSystemInterface.a

index e94df10..f1dbecd 100644 (file)
@@ -1,3 +1,8 @@
+2006-02-19  Darin Adler  <darin@apple.com>
+
+        * WebKitSystemInterface.h: Added WKDrawFocusRing.
+        * libWebKitSystemInterface.a: Ditto.
+
 2006-02-06  John Sullivan  <sullivan@apple.com>
 
         * WebKitSystemInterface.h:
 2006-02-06  John Sullivan  <sullivan@apple.com>
 
         * WebKitSystemInterface.h:
index 126da26..abfd6ef 100644 (file)
@@ -1,7 +1,7 @@
 /*      
     WebKitSystemInterface.h
 /*      
     WebKitSystemInterface.h
-    Copyright (C) 2005 Apple Computer, Inc. All rights reserved.    
-    
+    Copyright (C) 2005, 2006 Apple Computer, Inc. All rights reserved.    
+
     Public header file.
 */
 
     Public header file.
 */
 
@@ -87,7 +87,16 @@ CFReadStreamRef WKCreateCustomCFReadStream(void *(*formCreate)(CFReadStreamRef,
     void (*formUnschedule)(CFReadStreamRef, CFRunLoopRef, CFStringRef, void *),
     void *context);
 
     void (*formUnschedule)(CFReadStreamRef, CFRunLoopRef, CFStringRef, void *),
     void *context);
 
+void WKDrawFocusRing(CGContextRef context, CGRect clipRect, CGColorRef color, int radius);
+    // Ignore the context's clipping.
+    // The CG context's current path is the focus ring's path.
+    // A color of 0 means "use system focus ring color".
+    // A radius of 0 means "use default focus ring radius".
+
 void WKSetFocusRingStyle(NSFocusRingPlacement placement, int radius, NSColor *color);
 void WKSetFocusRingStyle(NSFocusRingPlacement placement, int radius, NSColor *color);
+    // Deprecated (even more than the rest of this file).
+    // Keeping this here until WebKit switches entirely to WKDrawFocusRing.
+
 void WKSetDragImage(NSImage *image, NSPoint offset);
 
 void WKSendUserChangeNotifications(void);
 void WKSetDragImage(NSImage *image, NSPoint offset);
 
 void WKSendUserChangeNotifications(void);
index c5e3106..2308bf0 100644 (file)
Binary files a/WebKitLibraries/libWebKitSystemInterface.a and b/WebKitLibraries/libWebKitSystemInterface.a differ