Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(56)

Side by Side Diff: third_party/apple_webkit/WebKitSystemInterface.h

Issue 14663006: Delete third_party/apple_webkit/ since WebKitSystemInterface is no longer needed. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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 Redistribution and use in source and binary forms, with or without
8 modification, are permitted provided that the following conditions
9 are met:
10 1. Redistributions of source code must retain the above copyright
11 notice, this list of conditions and the following disclaimer.
12 2. Redistributions in binary form must reproduce the above copyright
13 notice, this list of conditions and the following disclaimer in the
14 documentation and/or other materials provided with the distribution.
15
16 THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND ANY
17 EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY
20 DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
23 ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28 #import <Cocoa/Cocoa.h>
29 #import <Carbon/Carbon.h>
30
31 @class AVAsset;
32 @class QTMovie;
33 @class QTMovieView;
34
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
38
39 typedef struct _CFURLResponse* CFURLResponseRef;
40 typedef const struct _CFURLRequest* CFURLRequestRef;
41 typedef struct _CFURLRequest* CFMutableURLRequestRef;
42
43 typedef struct _CFURLCredential* WKCFURLCredentialRef;
44 typedef struct _CFURLProtectionSpace* CFURLProtectionSpaceRef;
45
46 typedef enum {
47 WKCertificateParseResultSucceeded = 0,
48 WKCertificateParseResultFailed = 1,
49 WKCertificateParseResultPKCS7 = 2,
50 } WKCertificateParseResult;
51
52 CFStringRef WKCopyCFLocalizationPreferredName(CFStringRef localization);
53 void WKSetDefaultLocalization(CFStringRef localization);
54
55 CFStringRef WKSignedPublicKeyAndChallengeString(unsigned keySize, CFStringRef ch allenge, CFStringRef keyDescription);
56 WKCertificateParseResult WKAddCertificatesToKeychainFromData(const void *bytes, unsigned length);
57
58 NSString *WKGetPreferredExtensionForMIMEType(NSString *type);
59 NSArray *WKGetExtensionsForMIMEType(NSString *type);
60 NSString *WKGetMIMETypeForExtension(NSString *extension);
61
62 NSDate *WKGetNSURLResponseLastModifiedDate(NSURLResponse *response);
63 NSTimeInterval WKGetNSURLResponseFreshnessLifetime(NSURLResponse *response);
64 NSString *WKCopyNSURLResponseStatusLine(NSURLResponse *response);
65
66 #if MAC_OS_X_VERSION_MIN_REQUIRED >= 1060
67 CFArrayRef WKCopyNSURLResponseCertificateChain(NSURLResponse *response);
68 #endif
69
70 CFStringEncoding WKGetWebDefaultCFStringEncoding(void);
71
72 void WKSetMetadataURL(NSString *URLString, NSString *referrer, NSString *path);
73 void WKSetNSURLConnectionDefersCallbacks(NSURLConnection *connection, BOOL defer s);
74
75 void WKShowKeyAndMain(void);
76 #ifndef __LP64__
77 OSStatus WKSyncWindowWithCGAfterMove(WindowRef);
78 unsigned WKCarbonWindowMask(void);
79 void *WKGetNativeWindowFromWindowRef(WindowRef);
80 OSType WKCarbonWindowPropertyCreator(void);
81 OSType WKCarbonWindowPropertyTag(void);
82 #endif
83
84 typedef id WKNSURLConnectionDelegateProxyPtr;
85
86 WKNSURLConnectionDelegateProxyPtr WKCreateNSURLConnectionDelegateProxy(void);
87
88 void WKDisableCGDeferredUpdates(void);
89
90 Class WKNSURLProtocolClassForRequest(NSURLRequest *request);
91 void WKSetNSURLRequestShouldContentSniff(NSMutableURLRequest *request, BOOL shou ldContentSniff);
92
93 void WKSetCookieStoragePrivateBrowsingEnabled(BOOL enabled);
94
95 unsigned WKGetNSAutoreleasePoolCount(void);
96
97 void WKAdvanceDefaultButtonPulseAnimation(NSButtonCell *button);
98
99 NSString *WKMouseMovedNotification(void);
100 NSString *WKWindowWillOrderOnScreenNotification(void);
101 NSString *WKWindowWillOrderOffScreenNotification(void);
102 void WKSetNSWindowShouldPostEventNotifications(NSWindow *window, BOOL post);
103
104 CFTypeID WKGetAXTextMarkerTypeID(void);
105 CFTypeID WKGetAXTextMarkerRangeTypeID(void);
106 CFTypeRef WKCreateAXTextMarker(const void *bytes, size_t len);
107 BOOL WKGetBytesFromAXTextMarker(CFTypeRef textMarker, void *bytes, size_t length );
108 CFTypeRef WKCreateAXTextMarkerRange(CFTypeRef start, CFTypeRef end);
109 CFTypeRef WKCopyAXTextMarkerRangeStart(CFTypeRef range);
110 CFTypeRef WKCopyAXTextMarkerRangeEnd(CFTypeRef range);
111 void WKAccessibilityHandleFocusChanged(void);
112 AXUIElementRef WKCreateAXUIElementRef(id element);
113 void WKUnregisterUniqueIdForElement(id element);
114
115
116 #if MAC_OS_X_VERSION_MIN_REQUIRED >= 1060
117 // Remote Accessibility API.
118 void WKAXRegisterRemoteApp(void);
119 void WKAXInitializeElementWithPresenterPid(id, pid_t);
120 NSData *WKAXRemoteTokenForElement(id);
121 id WKAXRemoteElementForToken(NSData *);
122 void WKAXSetWindowForRemoteElement(id remoteWindow, id remoteElement);
123 void WKAXRegisterRemoteProcess(bool registerProcess, pid_t);
124 pid_t WKAXRemoteProcessIdentifier(id remoteElement);
125 #endif
126
127 void WKSetUpFontCache(void);
128
129 void WKSignalCFReadStreamEnd(CFReadStreamRef stream);
130 void WKSignalCFReadStreamHasBytes(CFReadStreamRef stream);
131 void WKSignalCFReadStreamError(CFReadStreamRef stream, CFStreamError *error);
132
133 CFReadStreamRef WKCreateCustomCFReadStream(void *(*formCreate)(CFReadStreamRef, void *),
134 void (*formFinalize)(CFReadStreamRef, void *),
135 Boolean (*formOpen)(CFReadStreamRef, CFStreamError *, Boolean *, void *),
136 CFIndex (*formRead)(CFReadStreamRef, UInt8 *, CFIndex, CFStreamError *, Bool ean *, void *),
137 Boolean (*formCanRead)(CFReadStreamRef, void *),
138 void (*formClose)(CFReadStreamRef, void *),
139 void (*formSchedule)(CFReadStreamRef, CFRunLoopRef, CFStringRef, void *),
140 void (*formUnschedule)(CFReadStreamRef, CFRunLoopRef, CFStringRef, void *),
141 void *context);
142
143 void WKDrawCapsLockIndicator(CGContextRef, CGRect);
144
145 void WKDrawFocusRing(CGContextRef context, CGColorRef color, int radius);
146 // The CG context's current path is the focus ring's path.
147 // A color of 0 means "use system focus ring color".
148 // A radius of 0 means "use default focus ring radius".
149
150 void WKSetDragImage(NSImage *image, NSPoint offset);
151
152 void WKDrawBezeledTextFieldCell(NSRect, BOOL enabled);
153 void WKDrawTextFieldCellFocusRing(NSTextFieldCell*, NSRect);
154 void WKDrawBezeledTextArea(NSRect, BOOL enabled);
155 void WKPopupMenu(NSMenu*, NSPoint location, float width, NSView*, int selectedIt em, NSFont*);
156 void WKPopupContextMenu(NSMenu *menu, NSPoint screenLocation);
157 void WKSendUserChangeNotifications(void);
158 #ifndef __LP64__
159 BOOL WKConvertNSEventToCarbonEvent(EventRecord *carbonEvent, NSEvent *cocoaEvent );
160 void WKSendKeyEventToTSM(NSEvent *theEvent);
161 void WKCallDrawingNotification(CGrafPtr port, Rect *bounds);
162 #endif
163
164 BOOL WKGetGlyphTransformedAdvances(CGFontRef, NSFont*, CGAffineTransform *m, ATS GlyphRef *glyph, CGSize *advance);
165 NSFont *WKGetFontInLanguageForRange(NSFont *font, NSString *string, NSRange rang e);
166 NSFont *WKGetFontInLanguageForCharacter(NSFont *font, UniChar ch);
167 void WKSetCGFontRenderingMode(CGContextRef cgContext, NSFont *font);
168 BOOL WKCGContextGetShouldSmoothFonts(CGContextRef cgContext);
169
170
171 void WKSetBaseCTM(CGContextRef, CGAffineTransform);
172 void WKSetPatternPhaseInUserSpace(CGContextRef, CGPoint);
173 CGAffineTransform WKGetUserToBaseCTM(CGContextRef);
174
175 void WKGetGlyphsForCharacters(CGFontRef, const UniChar[], CGGlyph[], size_t);
176 bool WKGetVerticalGlyphsForCharacters(CTFontRef, const UniChar[], CGGlyph[], siz e_t);
177
178 CTLineRef WKCreateCTLineWithUniCharProvider(const UniChar* (*provide)(CFIndex st ringIndex, CFIndex* charCount, CFDictionaryRef* attributes, void*), void (*dispo se)(const UniChar* chars, void*), void*);
179 #if MAC_OS_X_VERSION_MIN_REQUIRED >= 1070
180 CTTypesetterRef WKCreateCTTypesetterWithUniCharProviderAndOptions(const UniChar* (*provide)(CFIndex stringIndex, CFIndex* charCount, CFDictionaryRef* attributes , void*), void (*dispose)(const UniChar* chars, void*), void*, CFDictionaryRef o ptions);
181
182 CGContextRef WKIOSurfaceContextCreate(IOSurfaceRef, unsigned width, unsigned hei ght, CGColorSpaceRef);
183 CGImageRef WKIOSurfaceContextCreateImage(CGContextRef context);
184 #endif
185
186 typedef enum {
187 WKPatternTilingNoDistortion,
188 WKPatternTilingConstantSpacingMinimalDistortion,
189 WKPatternTilingConstantSpacing
190 } WKPatternTiling;
191
192 CGPatternRef WKCGPatternCreateWithImageAndTransform(CGImageRef image, CGAffineTr ansform transform, int tiling);
193 void WKCGContextResetClip(CGContextRef);
194
195 #ifndef __LP64__
196 NSEvent *WKCreateNSEventWithCarbonEvent(EventRef eventRef);
197 NSEvent *WKCreateNSEventWithCarbonMouseMoveEvent(EventRef inEvent, NSWindow *win dow);
198 NSEvent *WKCreateNSEventWithCarbonClickEvent(EventRef inEvent, WindowRef windowR ef);
199 #endif
200
201 CGContextRef WKNSWindowOverrideCGContext(NSWindow *, CGContextRef);
202 void WKNSWindowRestoreCGContext(NSWindow *, CGContextRef);
203
204 void WKNSWindowMakeBottomCornersSquare(NSWindow *);
205
206 // These constants match the ones used by ThemeScrollbarArrowStyle (some of the values are private, so we can't just
207 // use that enum directly).
208 typedef enum {
209 WKThemeScrollBarArrowsSingle = 0,
210 WKThemeScrollBarArrowsLowerRight = 1,
211 WKThemeScrollBarArrowsDouble = 2,
212 WKThemeScrollBarArrowsUpperLeft = 3,
213 } WKThemeScrollBarArrowStyle;
214
215 OSStatus WKThemeDrawTrack(const HIThemeTrackDrawInfo* inDrawInfo, CGContextRef i nContext, int inArrowStyle);
216
217
218 BOOL WKCGContextIsBitmapContext(CGContextRef context);
219
220 void WKGetWheelEventDeltas(NSEvent *, float *deltaX, float *deltaY, BOOL *contin uous);
221
222 BOOL WKAppVersionCheckLessThan(NSString *, int, double);
223
224 typedef enum {
225 WKMovieTypeUnknown,
226 WKMovieTypeDownload,
227 WKMovieTypeStoredStream,
228 WKMovieTypeLiveStream
229 } WKMovieType;
230
231 int WKQTMovieGetType(QTMovie* movie);
232
233 BOOL WKQTMovieHasClosedCaptions(QTMovie* movie);
234 void WKQTMovieSetShowClosedCaptions(QTMovie* movie, BOOL showClosedCaptions);
235 void WKQTMovieSelectPreferredAlternates(QTMovie* movie);
236 void WKQTMovieSelectPreferredAlternateTrackForMediaType(QTMovie* movie, NSString * mediaType);
237
238 unsigned WKQTIncludeOnlyModernMediaFileTypes(void);
239 int WKQTMovieDataRate(QTMovie* movie);
240 float WKQTMovieMaxTimeLoaded(QTMovie* movie);
241 float WKQTMovieMaxTimeSeekable(QTMovie* movie);
242 NSString *WKQTMovieMaxTimeLoadedChangeNotification(void);
243 void WKQTMovieViewSetDrawSynchronously(QTMovieView* view, BOOL sync);
244 void WKQTMovieDisableComponent(uint32_t[5]);
245 NSURL *WKQTMovieResolvedURL(QTMovie* movie);
246
247 CFStringRef WKCopyFoundationCacheDirectory(void);
248
249 #if MAC_OS_X_VERSION_MIN_REQUIRED <= 1060
250 typedef struct __CFURLStorageSession* CFURLStorageSessionRef;
251 #else
252 typedef const struct __CFURLStorageSession* CFURLStorageSessionRef;
253 #endif
254 CFURLStorageSessionRef WKCreatePrivateStorageSession(CFStringRef);
255 NSURLRequest *WKCopyRequestWithStorageSession(CFURLStorageSessionRef, NSURLReque st*);
256 NSCachedURLResponse *WKCachedResponseForRequest(CFURLStorageSessionRef, NSURLReq uest*);
257 void WKSetRequestStorageSession(CFURLStorageSessionRef, CFMutableURLRequestRef);
258
259 typedef struct OpaqueCFHTTPCookieStorage* CFHTTPCookieStorageRef;
260 CFHTTPCookieStorageRef WKCopyHTTPCookieStorage(CFURLStorageSessionRef);
261 unsigned WKGetHTTPCookieAcceptPolicy(CFHTTPCookieStorageRef);
262 void WKSetHTTPCookieAcceptPolicy(CFHTTPCookieStorageRef, unsigned policy);
263 NSArray *WKHTTPCookiesForURL(CFHTTPCookieStorageRef, NSURL *);
264 void WKSetHTTPCookiesForURL(CFHTTPCookieStorageRef, NSArray *, NSURL *, NSURL *) ;
265 void WKDeleteHTTPCookie(CFHTTPCookieStorageRef, NSHTTPCookie *);
266
267 CFHTTPCookieStorageRef WKGetDefaultHTTPCookieStorage(void);
268 WKCFURLCredentialRef WKCopyCredentialFromCFPersistentStorage(CFURLProtectionSpac eRef);
269 void WKSetCFURLRequestShouldContentSniff(CFMutableURLRequestRef, bool flag);
270 CFArrayRef WKCFURLRequestCopyHTTPRequestBodyParts(CFURLRequestRef);
271 void WKCFURLRequestSetHTTPRequestBodyParts(CFMutableURLRequestRef, CFArrayRef bo dyParts);
272
273 void WKSetVisibleApplicationName(CFStringRef);
274
275 typedef enum {
276 WKMediaUIPartFullscreenButton = 0,
277 WKMediaUIPartMuteButton,
278 WKMediaUIPartPlayButton,
279 WKMediaUIPartSeekBackButton,
280 WKMediaUIPartSeekForwardButton,
281 WKMediaUIPartTimelineSlider,
282 WKMediaUIPartTimelineSliderThumb,
283 WKMediaUIPartRewindButton,
284 WKMediaUIPartSeekToRealtimeButton,
285 WKMediaUIPartShowClosedCaptionsButton,
286 WKMediaUIPartHideClosedCaptionsButton,
287 WKMediaUIPartUnMuteButton,
288 WKMediaUIPartPauseButton,
289 WKMediaUIPartBackground,
290 WKMediaUIPartCurrentTimeDisplay,
291 WKMediaUIPartTimeRemainingDisplay,
292 WKMediaUIPartStatusDisplay,
293 WKMediaUIPartControlsPanel,
294 WKMediaUIPartVolumeSliderContainer,
295 WKMediaUIPartVolumeSlider,
296 WKMediaUIPartVolumeSliderThumb
297 } WKMediaUIPart;
298
299 typedef enum {
300 WKMediaControllerThemeClassic = 1,
301 WKMediaControllerThemeQuickTime = 2
302 } WKMediaControllerThemeStyle;
303
304 typedef enum {
305 WKMediaControllerFlagDisabled = 1 << 0,
306 WKMediaControllerFlagPressed = 1 << 1,
307 WKMediaControllerFlagDrawEndCaps = 1 << 3,
308 WKMediaControllerFlagFocused = 1 << 4
309 } WKMediaControllerThemeState;
310
311 BOOL WKMediaControllerThemeAvailable(int themeStyle);
312 BOOL WKHitTestMediaUIPart(int part, int themeStyle, CGRect bounds, CGPoint point );
313 void WKMeasureMediaUIPart(int part, int themeStyle, CGRect *bounds, CGSize *natu ralSize);
314 void WKDrawMediaUIPart(int part, int themeStyle, CGContextRef context, CGRect re ct, unsigned state);
315 void WKDrawMediaSliderTrack(int themeStyle, CGContextRef context, CGRect rect, f loat timeLoaded, float currentTime, float duration, unsigned state);
316 NSView *WKCreateMediaUIBackgroundView(void);
317
318 typedef enum {
319 WKMediaUIControlTimeline,
320 WKMediaUIControlSlider,
321 WKMediaUIControlPlayPauseButton,
322 WKMediaUIControlExitFullscreenButton,
323 WKMediaUIControlRewindButton,
324 WKMediaUIControlFastForwardButton,
325 WKMediaUIControlVolumeUpButton,
326 WKMediaUIControlVolumeDownButton
327 } WKMediaUIControlType;
328
329 NSControl *WKCreateMediaUIControl(int controlType);
330
331 NSArray *WKQTGetSitesInMediaDownloadCache();
332 void WKQTClearMediaDownloadCacheForSite(NSString *site);
333 void WKQTClearMediaDownloadCache();
334
335 #if MAC_OS_X_VERSION_MIN_REQUIRED >= 1060
336 mach_port_t WKInitializeRenderServer(void);
337
338 @class CALayer;
339
340 CALayer *WKMakeRenderLayer(uint32_t contextID);
341
342 typedef struct __WKSoftwareCARendererRef *WKSoftwareCARendererRef;
343
344 WKSoftwareCARendererRef WKSoftwareCARendererCreate(uint32_t contextID);
345 void WKSoftwareCARendererDestroy(WKSoftwareCARendererRef);
346 void WKSoftwareCARendererRender(WKSoftwareCARendererRef, CGContextRef, CGRect);
347
348 typedef struct __WKCARemoteLayerClientRef *WKCARemoteLayerClientRef;
349
350 WKCARemoteLayerClientRef WKCARemoteLayerClientMakeWithServerPort(mach_port_t por t);
351 void WKCARemoteLayerClientInvalidate(WKCARemoteLayerClientRef);
352 uint32_t WKCARemoteLayerClientGetClientId(WKCARemoteLayerClientRef);
353 void WKCARemoteLayerClientSetLayer(WKCARemoteLayerClientRef, CALayer *);
354 CALayer *WKCARemoteLayerClientGetLayer(WKCARemoteLayerClientRef);
355
356 @class CARenderer;
357
358 void WKCARendererAddChangeNotificationObserver(CARenderer *, void (*callback)(vo id*), void* context);
359 void WKCARendererRemoveChangeNotificationObserver(CARenderer *, void (*callback) (void*), void* context);
360
361 typedef struct __WKWindowBounceAnimationContext *WKWindowBounceAnimationContextR ef;
362
363 WKWindowBounceAnimationContextRef WKWindowBounceAnimationContextCreate(NSWindow *window);
364 void WKWindowBounceAnimationContextDestroy(WKWindowBounceAnimationContextRef con text);
365 void WKWindowBounceAnimationSetAnimationProgress(WKWindowBounceAnimationContextR ef context, double animationProgress);
366
367 #if defined(__x86_64__)
368 #import <mach/mig.h>
369 CFRunLoopSourceRef WKCreateMIGServerSource(mig_subsystem_t subsystem, mach_port_ t serverPort);
370 #endif // defined(__x86_64__)
371
372 NSUInteger WKGetInputPanelWindowStyle(void);
373 UInt8 WKGetNSEventKeyChar(NSEvent *);
374 #endif // MAC_OS_X_VERSION_MIN_REQUIRED >= 1060
375
376 @class CAPropertyAnimation;
377 void WKSetCAAnimationValueFunction(CAPropertyAnimation*, NSString* function);
378
379 unsigned WKInitializeMaximumHTTPConnectionCountPerHost(unsigned preferredConnect ionCount);
380 int WKGetHTTPPipeliningPriority(CFURLRequestRef);
381 void WKSetHTTPPipeliningMaximumPriority(int maximumPriority);
382 void WKSetHTTPPipeliningPriority(CFURLRequestRef, int priority);
383 void WKSetHTTPPipeliningMinimumFastLanePriority(int priority);
384
385 void WKSetCONNECTProxyForStream(CFReadStreamRef, CFStringRef proxyHost, CFNumber Ref proxyPort);
386 void WKSetCONNECTProxyAuthorizationForStream(CFReadStreamRef, CFStringRef proxyA uthorizationString);
387 CFHTTPMessageRef WKCopyCONNECTProxyResponse(CFReadStreamRef, CFURLRef responseUR L);
388
389 #if MAC_OS_X_VERSION_MIN_REQUIRED <= 1060
390 typedef enum {
391 WKEventPhaseNone = 0,
392 WKEventPhaseBegan = 1,
393 WKEventPhaseChanged = 2,
394 WKEventPhaseEnded = 3,
395 } WKEventPhase;
396
397 int WKGetNSEventMomentumPhase(NSEvent *);
398 #endif
399
400 void WKWindowSetAlpha(NSWindow *window, float alphaValue);
401 void WKWindowSetScaledFrame(NSWindow *window, NSRect scaleFrame, NSRect nonScale dFrame);
402
403 #if MAC_OS_X_VERSION_MIN_REQUIRED >= 1060
404 void WKSyncSurfaceToView(NSView *view);
405
406 void WKEnableSettingCursorWhenInBackground(void);
407
408 CFDictionaryRef WKNSURLRequestCreateSerializableRepresentation(NSURLRequest *req uest, CFTypeRef tokenNull);
409 NSURLRequest *WKNSURLRequestFromSerializableRepresentation(CFDictionaryRef repre sentation, CFTypeRef tokenNull);
410
411 CFDictionaryRef WKNSURLResponseCreateSerializableRepresentation(NSURLResponse *r esponse, CFTypeRef tokenNull);
412 NSURLResponse *WKNSURLResponseFromSerializableRepresentation(CFDictionaryRef rep resentation, CFTypeRef tokenNull);
413
414 #ifndef __LP64__
415 ScriptCode WKGetScriptCodeFromCurrentKeyboardInputSource(void);
416 #endif
417
418 #endif
419
420 #if MAC_OS_X_VERSION_MIN_REQUIRED <= 1060
421 CFIndex WKGetHyphenationLocationBeforeIndex(CFStringRef string, CFIndex index);
422 #endif
423
424 CFArrayRef WKCFURLCacheCopyAllHostNamesInPersistentStore(void);
425 void WKCFURLCacheDeleteHostNamesInPersistentStore(CFArrayRef hostArray);
426
427 CFStringRef WKGetCFURLResponseMIMEType(CFURLResponseRef);
428 CFURLRef WKGetCFURLResponseURL(CFURLResponseRef);
429 CFHTTPMessageRef WKGetCFURLResponseHTTPResponse(CFURLResponseRef);
430 CFStringRef WKCopyCFURLResponseSuggestedFilename(CFURLResponseRef);
431 void WKSetCFURLResponseMIMEType(CFURLResponseRef, CFStringRef mimeType);
432
433 CIFormat WKCIGetRGBA8Format(void);
434
435 #if MAC_OS_X_VERSION_MIN_REQUIRED >= 1070
436
437 typedef enum {
438 WKSandboxExtensionTypeReadOnly,
439 WKSandboxExtensionTypeWriteOnly,
440 WKSandboxExtensionTypeReadWrite,
441 } WKSandboxExtensionType;
442 typedef struct __WKSandboxExtension *WKSandboxExtensionRef;
443
444 WKSandboxExtensionRef WKSandboxExtensionCreate(const char* path, WKSandboxExtens ionType type);
445 void WKSandboxExtensionDestroy(WKSandboxExtensionRef sandboxExtension);
446
447 bool WKSandboxExtensionConsume(WKSandboxExtensionRef sandboxExtension);
448 bool WKSandboxExtensionInvalidate(WKSandboxExtensionRef sandboxExtension);
449
450 const char* WKSandboxExtensionGetSerializedFormat(WKSandboxExtensionRef sandboxE xtension, size_t* length);
451 WKSandboxExtensionRef WKSandboxExtensionCreateFromSerializedFormat(const char* s erializationFormat, size_t length);
452
453 OSStatus WKEnableSandboxStyleFileQuarantine(void);
454
455 int WKRecommendedScrollerStyle(void);
456
457 bool WKExecutableWasLinkedOnOrBeforeSnowLeopard(void);
458
459 NSRange WKExtractWordDefinitionTokenRangeFromContextualString(NSString *contextS tring, NSRange range, NSDictionary **options);
460 void WKShowWordDefinitionWindow(NSAttributedString *term, NSPoint screenPoint, N SDictionary *options);
461 void WKHideWordDefinitionWindow(void);
462
463 CFStringRef WKCopyDefaultSearchProviderDisplayName(void);
464
465 NSURL* WKAVAssetResolvedURL(AVAsset*);
466
467 NSCursor *WKCursor(const char *name);
468
469 #endif
470
471 #if MAC_OS_X_VERSION_MIN_REQUIRED >= 1070
472
473 #import <dispatch/dispatch.h>
474
475 dispatch_source_t WKCreateVMPressureDispatchOnMainQueue(void);
476
477 #endif
478
479 #if MAC_OS_X_VERSION_MIN_REQUIRED >= 1080
480 NSString *WKGetMacOSXVersionString(void);
481 bool WKExecutableWasLinkedOnOrBeforeLion(void);
482 #endif
483
484 #ifdef __cplusplus
485 }
486 #endif
OLDNEW
« no previous file with comments | « third_party/apple_webkit/README.chromium ('k') | third_party/apple_webkit/libWebKitSystemInterfaceLeopard.a » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698