From: darin Date: Sun, 19 Feb 2006 18:37:19 +0000 (+0000) Subject: * WebKitSystemInterface.h: Added WKDrawFocusRing. X-Git-Url: https://git.webkit.org/?p=WebKit.git;a=commitdiff_plain;h=c3d23eadc962ab0c678f5787a4134a1937805910 * WebKitSystemInterface.h: Added WKDrawFocusRing. * libWebKitSystemInterface.a: Ditto. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12899 268f45cc-cd09-0410-ab3c-d52691b4dbfc --- diff --git a/WebKitLibraries/ChangeLog b/WebKitLibraries/ChangeLog index e94df10546b1..f1dbecd0677b 100644 --- a/WebKitLibraries/ChangeLog +++ b/WebKitLibraries/ChangeLog @@ -1,3 +1,8 @@ +2006-02-19 Darin Adler + + * WebKitSystemInterface.h: Added WKDrawFocusRing. + * libWebKitSystemInterface.a: Ditto. + 2006-02-06 John Sullivan * WebKitSystemInterface.h: diff --git a/WebKitLibraries/WebKitSystemInterface.h b/WebKitLibraries/WebKitSystemInterface.h index 126da267f6b2..abfd6ef5d692 100644 --- a/WebKitLibraries/WebKitSystemInterface.h +++ b/WebKitLibraries/WebKitSystemInterface.h @@ -1,7 +1,7 @@ /* WebKitSystemInterface.h - Copyright (C) 2005 Apple Computer, Inc. All rights reserved. - + Copyright (C) 2005, 2006 Apple Computer, Inc. All rights reserved. + Public header file. */ @@ -87,7 +87,16 @@ CFReadStreamRef WKCreateCustomCFReadStream(void *(*formCreate)(CFReadStreamRef, 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); + // 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); diff --git a/WebKitLibraries/libWebKitSystemInterface.a b/WebKitLibraries/libWebKitSystemInterface.a index c5e3106cb325..2308bf02dd21 100644 Binary files a/WebKitLibraries/libWebKitSystemInterface.a and b/WebKitLibraries/libWebKitSystemInterface.a differ