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