Remove some dead code.
[WebKit-https.git] / WebKitLibraries / WebKitSystemInterface.h
1 /*      
2     WebKitSystemInterface.h
3     Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved.
4
5     Public header file.
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 struct _CFURLResponse* CFURLResponseRef;
19
20 typedef enum {
21     WKCertificateParseResultSucceeded  = 0,
22     WKCertificateParseResultFailed     = 1,
23     WKCertificateParseResultPKCS7      = 2,
24 } WKCertificateParseResult;
25
26 CFStringRef WKCopyCFLocalizationPreferredName(CFStringRef localization);
27 void WKSetDefaultLocalization(CFStringRef localization);
28
29 CFStringRef WKSignedPublicKeyAndChallengeString(unsigned keySize, CFStringRef challenge, CFStringRef keyDescription);
30 WKCertificateParseResult WKAddCertificatesToKeychainFromData(const void *bytes, unsigned length);
31
32 NSString *WKGetPreferredExtensionForMIMEType(NSString *type);
33 NSArray *WKGetExtensionsForMIMEType(NSString *type);
34 NSString *WKGetMIMETypeForExtension(NSString *extension);
35
36 NSDate *WKGetNSURLResponseLastModifiedDate(NSURLResponse *response);
37 NSTimeInterval WKGetNSURLResponseFreshnessLifetime(NSURLResponse *response);
38 NSString *WKCopyNSURLResponseStatusLine(NSURLResponse *response);
39
40 #ifndef BUILDING_ON_LEOPARD
41 CFArrayRef WKCopyNSURLResponseCertificateChain(NSURLResponse *response);
42 #endif
43
44 CFStringEncoding WKGetWebDefaultCFStringEncoding(void);
45
46 void WKSetMetadataURL(NSString *URLString, NSString *referrer, NSString *path);
47 void WKSetNSURLConnectionDefersCallbacks(NSURLConnection *connection, BOOL defers);
48
49 void WKShowKeyAndMain(void);
50 #ifndef __LP64__
51 OSStatus WKSyncWindowWithCGAfterMove(WindowRef);
52 unsigned WKCarbonWindowMask(void);
53 void *WKGetNativeWindowFromWindowRef(WindowRef);
54 OSType WKCarbonWindowPropertyCreator(void);
55 OSType WKCarbonWindowPropertyTag(void);
56 #endif
57
58 typedef id WKNSURLConnectionDelegateProxyPtr;
59
60 WKNSURLConnectionDelegateProxyPtr WKCreateNSURLConnectionDelegateProxy(void);
61
62 void WKDisableCGDeferredUpdates(void);
63
64 Class WKNSURLProtocolClassForRequest(NSURLRequest *request);
65 void WKSetNSURLRequestShouldContentSniff(NSMutableURLRequest *request, BOOL shouldContentSniff);
66
67 void WKSetCookieStoragePrivateBrowsingEnabled(BOOL enabled);
68
69 unsigned WKGetNSAutoreleasePoolCount(void);
70
71 void WKAdvanceDefaultButtonPulseAnimation(NSButtonCell *button);
72
73 NSString *WKMouseMovedNotification(void);
74 NSString *WKWindowWillOrderOnScreenNotification(void);
75 NSString *WKWindowWillOrderOffScreenNotification(void);
76 void WKSetNSWindowShouldPostEventNotifications(NSWindow *window, BOOL post);
77
78 CFTypeID WKGetAXTextMarkerTypeID(void);
79 CFTypeID WKGetAXTextMarkerRangeTypeID(void);
80 CFTypeRef WKCreateAXTextMarker(const void *bytes, size_t len);
81 BOOL WKGetBytesFromAXTextMarker(CFTypeRef textMarker, void *bytes, size_t length);
82 CFTypeRef WKCreateAXTextMarkerRange(CFTypeRef start, CFTypeRef end);
83 CFTypeRef WKCopyAXTextMarkerRangeStart(CFTypeRef range);
84 CFTypeRef WKCopyAXTextMarkerRangeEnd(CFTypeRef range);
85 void WKAccessibilityHandleFocusChanged(void);
86 AXUIElementRef WKCreateAXUIElementRef(id element);
87 void WKUnregisterUniqueIdForElement(id element);
88
89
90 #if !defined(BUILDING_ON_LEOPARD) && !defined(BUILDING_ON_SNOW_LEOPARD)
91 // Remote Accessibility API.
92 void WKAXRegisterRemoteApp(void);
93 void WKAXInitializeElementWithPresenterPid(id, pid_t);
94 NSData *WKAXRemoteTokenForElement(id);
95 id WKAXRemoteElementForToken(NSData *);
96 void WKAXSetWindowForRemoteElement(id remoteWindow, id remoteElement);
97 void WKAXRegisterRemoteProcess(bool registerProcess, pid_t);
98 pid_t WKAXRemoteProcessIdentifier(id remoteElement);
99 #endif
100
101 void WKSetUpFontCache(void);
102
103 void WKSignalCFReadStreamEnd(CFReadStreamRef stream);
104 void WKSignalCFReadStreamHasBytes(CFReadStreamRef stream);
105 void WKSignalCFReadStreamError(CFReadStreamRef stream, CFStreamError *error);
106
107 CFReadStreamRef WKCreateCustomCFReadStream(void *(*formCreate)(CFReadStreamRef, void *), 
108     void (*formFinalize)(CFReadStreamRef, void *), 
109     Boolean (*formOpen)(CFReadStreamRef, CFStreamError *, Boolean *, void *), 
110     CFIndex (*formRead)(CFReadStreamRef, UInt8 *, CFIndex, CFStreamError *, Boolean *, void *), 
111     Boolean (*formCanRead)(CFReadStreamRef, void *), 
112     void (*formClose)(CFReadStreamRef, void *), 
113     void (*formSchedule)(CFReadStreamRef, CFRunLoopRef, CFStringRef, void *), 
114     void (*formUnschedule)(CFReadStreamRef, CFRunLoopRef, CFStringRef, void *),
115     void *context);
116
117 void WKDrawCapsLockIndicator(CGContextRef, CGRect);
118
119 void WKDrawFocusRing(CGContextRef context, CGColorRef color, int radius);
120     // The CG context's current path is the focus ring's path.
121     // A color of 0 means "use system focus ring color".
122     // A radius of 0 means "use default focus ring radius".
123
124 void WKSetDragImage(NSImage *image, NSPoint offset);
125
126 void WKDrawBezeledTextFieldCell(NSRect, BOOL enabled);
127 void WKDrawTextFieldCellFocusRing(NSTextFieldCell*, NSRect);
128 void WKDrawBezeledTextArea(NSRect, BOOL enabled);
129 void WKPopupMenu(NSMenu*, NSPoint location, float width, NSView*, int selectedItem, NSFont*);
130 void WKPopupContextMenu(NSMenu *menu, NSPoint screenLocation);
131 void WKSendUserChangeNotifications(void);
132 #ifndef __LP64__
133 BOOL WKConvertNSEventToCarbonEvent(EventRecord *carbonEvent, NSEvent *cocoaEvent);
134 void WKSendKeyEventToTSM(NSEvent *theEvent);
135 void WKCallDrawingNotification(CGrafPtr port, Rect *bounds);
136 #endif
137
138 BOOL WKGetGlyphTransformedAdvances(CGFontRef, NSFont*, CGAffineTransform *m, ATSGlyphRef *glyph, CGSize *advance);
139 NSFont *WKGetFontInLanguageForRange(NSFont *font, NSString *string, NSRange range);
140 NSFont *WKGetFontInLanguageForCharacter(NSFont *font, UniChar ch);
141 void WKSetCGFontRenderingMode(CGContextRef cgContext, NSFont *font);
142 BOOL WKCGContextGetShouldSmoothFonts(CGContextRef cgContext);
143
144
145 void WKSetPatternBaseCTM(CGContextRef, CGAffineTransform);
146 void WKSetPatternPhaseInUserSpace(CGContextRef, CGPoint);
147 CGAffineTransform WKGetUserToBaseCTM(CGContextRef);
148
149 void WKGetGlyphsForCharacters(CGFontRef, const UniChar[], CGGlyph[], size_t);
150
151 CTLineRef WKCreateCTLineWithUniCharProvider(const UniChar* (*provide)(CFIndex stringIndex, CFIndex* charCount, CFDictionaryRef* attributes, void*), void (*dispose)(const UniChar* chars, void*), void*);
152 #if !defined(BUILDING_ON_LEOPARD) && !defined(BUILDING_ON_SNOW_LEOPARD)
153 CTTypesetterRef WKCreateCTTypesetterWithUniCharProviderAndOptions(const UniChar* (*provide)(CFIndex stringIndex, CFIndex* charCount, CFDictionaryRef* attributes, void*), void (*dispose)(const UniChar* chars, void*), void*, CFDictionaryRef options);
154
155 CGContextRef WKIOSurfaceContextCreate(IOSurfaceRef, unsigned width, unsigned height, CGColorSpaceRef);
156 CGImageRef WKIOSurfaceContextCreateImage(CGContextRef context);
157 #endif
158
159 #ifndef __LP64__
160 NSEvent *WKCreateNSEventWithCarbonEvent(EventRef eventRef);
161 NSEvent *WKCreateNSEventWithCarbonMouseMoveEvent(EventRef inEvent, NSWindow *window);
162 NSEvent *WKCreateNSEventWithCarbonClickEvent(EventRef inEvent, WindowRef windowRef);
163 #endif
164
165 CGContextRef WKNSWindowOverrideCGContext(NSWindow *, CGContextRef);
166 void WKNSWindowRestoreCGContext(NSWindow *, CGContextRef);
167
168 void WKNSWindowMakeBottomCornersSquare(NSWindow *);
169
170 // These constants match the ones used by ThemeScrollbarArrowStyle (some of the values are private, so we can't just
171 // use that enum directly).
172 typedef enum {
173     WKThemeScrollBarArrowsSingle     = 0,
174     WKThemeScrollBarArrowsLowerRight = 1,
175     WKThemeScrollBarArrowsDouble     = 2,
176     WKThemeScrollBarArrowsUpperLeft  = 3,
177 } WKThemeScrollBarArrowStyle;
178
179 OSStatus WKThemeDrawTrack(const HIThemeTrackDrawInfo* inDrawInfo, CGContextRef inContext, int inArrowStyle);
180
181
182 BOOL WKCGContextIsBitmapContext(CGContextRef context);
183
184 void WKGetWheelEventDeltas(NSEvent *, float *deltaX, float *deltaY, BOOL *continuous);
185
186 BOOL WKAppVersionCheckLessThan(NSString *, int, double);
187
188 typedef enum {
189     WKMovieTypeUnknown,
190     WKMovieTypeDownload,
191     WKMovieTypeStoredStream,
192     WKMovieTypeLiveStream
193 } WKMovieType;
194
195 int WKQTMovieGetType(QTMovie* movie);
196
197 BOOL WKQTMovieHasClosedCaptions(QTMovie* movie);
198 void WKQTMovieSetShowClosedCaptions(QTMovie* movie, BOOL showClosedCaptions);
199 void WKQTMovieSelectPreferredAlternates(QTMovie* movie);
200 void WKQTMovieSelectPreferredAlternateTrackForMediaType(QTMovie* movie, NSString* mediaType);
201
202 unsigned WKQTIncludeOnlyModernMediaFileTypes(void);
203 int WKQTMovieDataRate(QTMovie* movie);
204 float WKQTMovieMaxTimeLoaded(QTMovie* movie);
205 float WKQTMovieMaxTimeSeekable(QTMovie* movie);
206 NSString *WKQTMovieMaxTimeLoadedChangeNotification(void);
207 void WKQTMovieViewSetDrawSynchronously(QTMovieView* view, BOOL sync);
208 void WKQTMovieDisableComponent(uint32_t[5]);
209
210 CFStringRef WKCopyFoundationCacheDirectory(void);
211
212 typedef const struct __CFURLStorageSession* CFURLStorageSessionRef;
213 CFURLStorageSessionRef WKCreatePrivateStorageSession(CFStringRef);
214 NSURLRequest *WKCopyRequestWithStorageSession(CFURLStorageSessionRef, NSURLRequest*);
215 NSCachedURLResponse *WKCachedResponseForRequest(CFURLStorageSessionRef, NSURLRequest*);
216
217 typedef struct OpaqueCFHTTPCookieStorage* CFHTTPCookieStorageRef;
218 CFHTTPCookieStorageRef WKCopyHTTPCookieStorage(CFURLStorageSessionRef);
219 unsigned WKGetHTTPCookieAcceptPolicy(CFHTTPCookieStorageRef);
220 NSArray *WKHTTPCookiesForURL(CFHTTPCookieStorageRef, NSURL *);
221 void WKSetHTTPCookiesForURL(CFHTTPCookieStorageRef, NSArray *, NSURL *, NSURL *);
222 void WKDeleteHTTPCookie(CFHTTPCookieStorageRef, NSHTTPCookie *);
223
224 void WKSetVisibleApplicationName(CFStringRef);
225
226 typedef enum {
227     WKMediaUIPartFullscreenButton   = 0,
228     WKMediaUIPartMuteButton,
229     WKMediaUIPartPlayButton,
230     WKMediaUIPartSeekBackButton,
231     WKMediaUIPartSeekForwardButton,
232     WKMediaUIPartTimelineSlider,
233     WKMediaUIPartTimelineSliderThumb,
234     WKMediaUIPartRewindButton,
235     WKMediaUIPartSeekToRealtimeButton,
236     WKMediaUIPartShowClosedCaptionsButton,
237     WKMediaUIPartHideClosedCaptionsButton,
238     WKMediaUIPartUnMuteButton,
239     WKMediaUIPartPauseButton,
240     WKMediaUIPartBackground,
241     WKMediaUIPartCurrentTimeDisplay,
242     WKMediaUIPartTimeRemainingDisplay,
243     WKMediaUIPartStatusDisplay,
244     WKMediaUIPartControlsPanel,
245     WKMediaUIPartVolumeSliderContainer,
246     WKMediaUIPartVolumeSlider,
247     WKMediaUIPartVolumeSliderThumb
248 } WKMediaUIPart;
249
250 typedef enum {
251     WKMediaControllerThemeClassic   = 1,
252     WKMediaControllerThemeQuickTime = 2
253 } WKMediaControllerThemeStyle;
254
255 typedef enum {
256     WKMediaControllerFlagDisabled = 1 << 0,
257     WKMediaControllerFlagPressed = 1 << 1,
258     WKMediaControllerFlagDrawEndCaps = 1 << 3,
259     WKMediaControllerFlagFocused = 1 << 4
260 } WKMediaControllerThemeState;
261
262 BOOL WKMediaControllerThemeAvailable(int themeStyle);
263 BOOL WKHitTestMediaUIPart(int part, int themeStyle, CGRect bounds, CGPoint point);
264 void WKMeasureMediaUIPart(int part, int themeStyle, CGRect *bounds, CGSize *naturalSize);
265 void WKDrawMediaUIPart(int part, int themeStyle, CGContextRef context, CGRect rect, unsigned state);
266 void WKDrawMediaSliderTrack(int themeStyle, CGContextRef context, CGRect rect, float timeLoaded, float currentTime, float duration, unsigned state);
267 NSView *WKCreateMediaUIBackgroundView(void);
268
269 typedef enum {
270     WKMediaUIControlTimeline,
271     WKMediaUIControlSlider,
272     WKMediaUIControlPlayPauseButton,
273     WKMediaUIControlExitFullscreenButton,
274     WKMediaUIControlRewindButton,
275     WKMediaUIControlFastForwardButton,
276     WKMediaUIControlVolumeUpButton,
277     WKMediaUIControlVolumeDownButton
278 } WKMediaUIControlType;
279     
280 NSControl *WKCreateMediaUIControl(int controlType);
281
282 NSArray *WKQTGetSitesInMediaDownloadCache();
283 void WKQTClearMediaDownloadCacheForSite(NSString *site);
284 void WKQTClearMediaDownloadCache();
285     
286 #ifndef BUILDING_ON_LEOPARD
287 mach_port_t WKInitializeRenderServer(void);
288     
289 @class CALayer;
290
291 CALayer *WKMakeRenderLayer(uint32_t contextID);
292     
293 typedef struct __WKSoftwareCARendererRef *WKSoftwareCARendererRef;
294
295 WKSoftwareCARendererRef WKSoftwareCARendererCreate(uint32_t contextID);
296 void WKSoftwareCARendererDestroy(WKSoftwareCARendererRef);
297 void WKSoftwareCARendererRender(WKSoftwareCARendererRef, CGContextRef, CGRect);
298
299 typedef struct __WKCARemoteLayerClientRef *WKCARemoteLayerClientRef;
300
301 WKCARemoteLayerClientRef WKCARemoteLayerClientMakeWithServerPort(mach_port_t port);
302 void WKCARemoteLayerClientInvalidate(WKCARemoteLayerClientRef);
303 uint32_t WKCARemoteLayerClientGetClientId(WKCARemoteLayerClientRef);
304 void WKCARemoteLayerClientSetLayer(WKCARemoteLayerClientRef, CALayer *);
305 CALayer *WKCARemoteLayerClientGetLayer(WKCARemoteLayerClientRef);
306
307 @class CARenderer;
308
309 void WKCARendererAddChangeNotificationObserver(CARenderer *, void (*callback)(void*), void* context);
310 void WKCARendererRemoveChangeNotificationObserver(CARenderer *, void (*callback)(void*), void* context);
311
312 typedef struct __WKWindowBounceAnimationContext *WKWindowBounceAnimationContextRef;
313
314 WKWindowBounceAnimationContextRef WKWindowBounceAnimationContextCreate(NSWindow *window);
315 void WKWindowBounceAnimationContextDestroy(WKWindowBounceAnimationContextRef context);
316 void WKWindowBounceAnimationSetAnimationProgress(WKWindowBounceAnimationContextRef context, double animationProgress);
317
318 #if defined(__x86_64__)
319 #import <mach/mig.h>
320 CFRunLoopSourceRef WKCreateMIGServerSource(mig_subsystem_t subsystem, mach_port_t serverPort);
321 #endif // defined(__x86_64__)
322
323 NSUInteger WKGetInputPanelWindowStyle(void);
324 UInt8 WKGetNSEventKeyChar(NSEvent *);
325 #endif // !defined(BUILDING_ON_LEOPARD)
326
327 @class CAPropertyAnimation;
328 void WKSetCAAnimationValueFunction(CAPropertyAnimation*, NSString* function);
329
330 unsigned WKInitializeMaximumHTTPConnectionCountPerHost(unsigned preferredConnectionCount);
331 int WKGetHTTPPipeliningPriority(NSURLRequest *);
332 void WKSetHTTPPipeliningMaximumPriority(int maximumPriority);
333 void WKSetHTTPPipeliningPriority(NSMutableURLRequest *, int priority);
334 void WKSetHTTPPipeliningMinimumFastLanePriority(int priority);
335
336 void WKSetCONNECTProxyForStream(CFReadStreamRef, CFStringRef proxyHost, CFNumberRef proxyPort);
337 void WKSetCONNECTProxyAuthorizationForStream(CFReadStreamRef, CFStringRef proxyAuthorizationString);
338 CFHTTPMessageRef WKCopyCONNECTProxyResponse(CFReadStreamRef, CFURLRef responseURL);
339
340 #if defined(BUILDING_ON_LEOPARD) || defined(BUILDING_ON_SNOW_LEOPARD)
341 typedef enum {
342     WKEventPhaseNone = 0,
343     WKEventPhaseBegan = 1,
344     WKEventPhaseChanged = 2,
345     WKEventPhaseEnded = 3,
346 } WKEventPhase;
347
348 int WKGetNSEventMomentumPhase(NSEvent *);
349 #endif
350
351 void WKWindowSetAlpha(NSWindow *window, float alphaValue);
352 void WKWindowSetScaledFrame(NSWindow *window, NSRect scaleFrame, NSRect nonScaledFrame);
353
354 #ifndef BUILDING_ON_LEOPARD
355 void WKSyncSurfaceToView(NSView *view);
356
357 void WKEnableSettingCursorWhenInBackground(void);
358
359 CFDictionaryRef WKNSURLRequestCreateSerializableRepresentation(NSURLRequest *request, CFTypeRef tokenNull);
360 NSURLRequest *WKNSURLRequestFromSerializableRepresentation(CFDictionaryRef representation, CFTypeRef tokenNull);
361
362 CFDictionaryRef WKNSURLResponseCreateSerializableRepresentation(NSURLResponse *response, CFTypeRef tokenNull);
363 NSURLResponse *WKNSURLResponseFromSerializableRepresentation(CFDictionaryRef representation, CFTypeRef tokenNull);
364
365 #ifndef __LP64__
366 ScriptCode WKGetScriptCodeFromCurrentKeyboardInputSource(void);
367 #endif
368
369 #endif
370
371 #if defined(BUILDING_ON_LEOPARD) || defined(BUILDING_ON_SNOW_LEOPARD)
372 CFIndex WKGetHyphenationLocationBeforeIndex(CFStringRef string, CFIndex index);
373 #endif
374
375 CFArrayRef WKCFURLCacheCopyAllHostNamesInPersistentStore(void);
376 void WKCFURLCacheDeleteHostNamesInPersistentStore(CFArrayRef hostArray);    
377
378 CFStringRef WKGetCFURLResponseMIMEType(CFURLResponseRef);
379 CFURLRef WKGetCFURLResponseURL(CFURLResponseRef);
380 CFHTTPMessageRef WKGetCFURLResponseHTTPResponse(CFURLResponseRef);
381 CFStringRef WKCopyCFURLResponseSuggestedFilename(CFURLResponseRef);
382 void WKSetCFURLResponseMIMEType(CFURLResponseRef, CFStringRef mimeType);
383
384 #if !defined(BUILDING_ON_LEOPARD) && !defined(BUILDING_ON_SNOW_LEOPARD)
385 typedef enum {
386     WKSandboxExtensionTypeReadOnly,
387     WKSandboxExtensionTypeWriteOnly,    
388     WKSandboxExtensionTypeReadWrite,
389 } WKSandboxExtensionType;
390 typedef struct __WKSandboxExtension *WKSandboxExtensionRef;
391
392 WKSandboxExtensionRef WKSandboxExtensionCreate(const char* path, WKSandboxExtensionType type);
393 void WKSandboxExtensionDestroy(WKSandboxExtensionRef sandboxExtension);
394
395 bool WKSandboxExtensionConsume(WKSandboxExtensionRef sandboxExtension);
396 bool WKSandboxExtensionInvalidate(WKSandboxExtensionRef sandboxExtension);
397
398 const char* WKSandboxExtensionGetSerializedFormat(WKSandboxExtensionRef sandboxExtension, size_t* length);
399 WKSandboxExtensionRef WKSandboxExtensionCreateFromSerializedFormat(const char* serializationFormat, size_t length);
400
401 typedef struct __WKScrollbarPainter *WKScrollbarPainterRef;
402 typedef struct __WKScrollbarPainterController *WKScrollbarPainterControllerRef;
403
404 WKScrollbarPainterRef WKMakeScrollbarPainter(int controlSize, bool isHorizontal);
405 WKScrollbarPainterRef WKMakeScrollbarReplacementPainter(WKScrollbarPainterRef oldPainter, int newStyle, int controlSize, bool isHorizontal);
406 void WKScrollbarPainterSetDelegate(WKScrollbarPainterRef, id scrollbarPainterDelegate);
407 void WKScrollbarPainterPaint(WKScrollbarPainterRef, bool enabled, double value, CGFloat proportion, CGRect frameRect);
408 void WKScrollbarPainterForceFlashScrollers(WKScrollbarPainterControllerRef);
409 int WKScrollbarThickness(int controlSize);
410 int WKScrollbarMinimumThumbLength(WKScrollbarPainterRef);
411 int WKScrollbarMinimumTotalLengthNeededForThumb(WKScrollbarPainterRef);
412 CGFloat WKScrollbarPainterKnobAlpha(WKScrollbarPainterRef);
413 void WKSetScrollbarPainterKnobAlpha(WKScrollbarPainterRef, CGFloat);
414 CGFloat WKScrollbarPainterTrackAlpha(WKScrollbarPainterRef);
415 void WKSetScrollbarPainterTrackAlpha(WKScrollbarPainterRef, CGFloat);
416 bool WKScrollbarPainterIsHorizontal(WKScrollbarPainterRef);
417 void WKScrollbarPainterSetOverlayState(WKScrollbarPainterRef, int overlayScrollerState);
418
419 WKScrollbarPainterControllerRef WKMakeScrollbarPainterController(id painterControllerDelegate);
420 void WKSetPainterForPainterController(WKScrollbarPainterControllerRef, WKScrollbarPainterRef, bool isHorizontal);
421 WKScrollbarPainterRef WKVerticalScrollbarPainterForController(WKScrollbarPainterControllerRef);
422 WKScrollbarPainterRef WKHorizontalScrollbarPainterForController(WKScrollbarPainterControllerRef);
423 void WKSetScrollbarPainterControllerStyle(WKScrollbarPainterControllerRef, int newStyle);
424 void WKContentAreaScrolled(WKScrollbarPainterControllerRef);
425 void WKContentAreaWillPaint(WKScrollbarPainterControllerRef);
426 void WKMouseEnteredContentArea(WKScrollbarPainterControllerRef);
427 void WKMouseExitedContentArea(WKScrollbarPainterControllerRef);
428 void WKMouseMovedInContentArea(WKScrollbarPainterControllerRef);
429 void WKWillStartLiveResize(WKScrollbarPainterControllerRef);
430 void WKContentAreaResized(WKScrollbarPainterControllerRef);
431 void WKWillEndLiveResize(WKScrollbarPainterControllerRef);
432 void WKContentAreaDidShow(WKScrollbarPainterControllerRef);
433 void WKContentAreaDidHide(WKScrollbarPainterControllerRef);
434 void WKDidBeginScrollGesture(WKScrollbarPainterControllerRef);
435 void WKDidEndScrollGesture(WKScrollbarPainterControllerRef);
436
437 bool WKScrollbarPainterUsesOverlayScrollers(void);
438
439 NSRange WKExtractWordDefinitionTokenRangeFromContextualString(NSString *contextString, NSRange range, NSDictionary **options);
440 void WKShowWordDefinitionWindow(NSAttributedString *term, NSPoint screenPoint, NSDictionary *options);
441 void WKHideWordDefinitionWindow(void);
442
443 #endif
444
445 #ifdef __cplusplus
446 }
447 #endif