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