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

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

Issue 9353004: Update apple_webkit library after WebKit r106836. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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
1 /* 1 /*
2 WebKitSystemInterface.h 2 WebKitSystemInterface.h
3 Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. 3 Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved.
4 4
5 Public header file. 5 Public header file.
6
7 Redistribution and use in source and binary forms, with or without
Robert Sesek 2012/02/07 01:36:33 Leave this as is or I think check_licenses will fa
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 */ 6 */
27 7
28 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
29 #import <Carbon/Carbon.h> 9 #import <Carbon/Carbon.h>
30 10
31 @class AVAsset; 11 @class AVAsset;
32 @class QTMovie; 12 @class QTMovie;
33 @class QTMovieView; 13 @class QTMovieView;
34 14
35 #ifdef __cplusplus 15 #ifdef __cplusplus
(...skipping 20 matching lines...) Expand all
56 WKCertificateParseResult WKAddCertificatesToKeychainFromData(const void *bytes, unsigned length); 36 WKCertificateParseResult WKAddCertificatesToKeychainFromData(const void *bytes, unsigned length);
57 37
58 NSString *WKGetPreferredExtensionForMIMEType(NSString *type); 38 NSString *WKGetPreferredExtensionForMIMEType(NSString *type);
59 NSArray *WKGetExtensionsForMIMEType(NSString *type); 39 NSArray *WKGetExtensionsForMIMEType(NSString *type);
60 NSString *WKGetMIMETypeForExtension(NSString *extension); 40 NSString *WKGetMIMETypeForExtension(NSString *extension);
61 41
62 NSDate *WKGetNSURLResponseLastModifiedDate(NSURLResponse *response); 42 NSDate *WKGetNSURLResponseLastModifiedDate(NSURLResponse *response);
63 NSTimeInterval WKGetNSURLResponseFreshnessLifetime(NSURLResponse *response); 43 NSTimeInterval WKGetNSURLResponseFreshnessLifetime(NSURLResponse *response);
64 NSString *WKCopyNSURLResponseStatusLine(NSURLResponse *response); 44 NSString *WKCopyNSURLResponseStatusLine(NSURLResponse *response);
65 45
66 #ifndef BUILDING_ON_LEOPARD 46 #if MAC_OS_X_VERSION_MIN_REQUIRED >= 1060
67 CFArrayRef WKCopyNSURLResponseCertificateChain(NSURLResponse *response); 47 CFArrayRef WKCopyNSURLResponseCertificateChain(NSURLResponse *response);
68 #endif 48 #endif
69 49
70 CFStringEncoding WKGetWebDefaultCFStringEncoding(void); 50 CFStringEncoding WKGetWebDefaultCFStringEncoding(void);
71 51
72 void WKSetMetadataURL(NSString *URLString, NSString *referrer, NSString *path); 52 void WKSetMetadataURL(NSString *URLString, NSString *referrer, NSString *path);
73 void WKSetNSURLConnectionDefersCallbacks(NSURLConnection *connection, BOOL defer s); 53 void WKSetNSURLConnectionDefersCallbacks(NSURLConnection *connection, BOOL defer s);
74 54
75 void WKShowKeyAndMain(void); 55 void WKShowKeyAndMain(void);
76 #ifndef __LP64__ 56 #ifndef __LP64__
(...skipping 29 matching lines...) Expand all
106 CFTypeRef WKCreateAXTextMarker(const void *bytes, size_t len); 86 CFTypeRef WKCreateAXTextMarker(const void *bytes, size_t len);
107 BOOL WKGetBytesFromAXTextMarker(CFTypeRef textMarker, void *bytes, size_t length ); 87 BOOL WKGetBytesFromAXTextMarker(CFTypeRef textMarker, void *bytes, size_t length );
108 CFTypeRef WKCreateAXTextMarkerRange(CFTypeRef start, CFTypeRef end); 88 CFTypeRef WKCreateAXTextMarkerRange(CFTypeRef start, CFTypeRef end);
109 CFTypeRef WKCopyAXTextMarkerRangeStart(CFTypeRef range); 89 CFTypeRef WKCopyAXTextMarkerRangeStart(CFTypeRef range);
110 CFTypeRef WKCopyAXTextMarkerRangeEnd(CFTypeRef range); 90 CFTypeRef WKCopyAXTextMarkerRangeEnd(CFTypeRef range);
111 void WKAccessibilityHandleFocusChanged(void); 91 void WKAccessibilityHandleFocusChanged(void);
112 AXUIElementRef WKCreateAXUIElementRef(id element); 92 AXUIElementRef WKCreateAXUIElementRef(id element);
113 void WKUnregisterUniqueIdForElement(id element); 93 void WKUnregisterUniqueIdForElement(id element);
114 94
115 95
116 #if !defined(BUILDING_ON_LEOPARD) 96 #if MAC_OS_X_VERSION_MIN_REQUIRED >= 1060
117 // Remote Accessibility API. 97 // Remote Accessibility API.
118 void WKAXRegisterRemoteApp(void); 98 void WKAXRegisterRemoteApp(void);
119 void WKAXInitializeElementWithPresenterPid(id, pid_t); 99 void WKAXInitializeElementWithPresenterPid(id, pid_t);
120 NSData *WKAXRemoteTokenForElement(id); 100 NSData *WKAXRemoteTokenForElement(id);
121 id WKAXRemoteElementForToken(NSData *); 101 id WKAXRemoteElementForToken(NSData *);
122 void WKAXSetWindowForRemoteElement(id remoteWindow, id remoteElement); 102 void WKAXSetWindowForRemoteElement(id remoteWindow, id remoteElement);
123 void WKAXRegisterRemoteProcess(bool registerProcess, pid_t); 103 void WKAXRegisterRemoteProcess(bool registerProcess, pid_t);
124 pid_t WKAXRemoteProcessIdentifier(id remoteElement); 104 pid_t WKAXRemoteProcessIdentifier(id remoteElement);
125 #endif 105 #endif
126 106
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 149
170 150
171 void WKSetBaseCTM(CGContextRef, CGAffineTransform); 151 void WKSetBaseCTM(CGContextRef, CGAffineTransform);
172 void WKSetPatternPhaseInUserSpace(CGContextRef, CGPoint); 152 void WKSetPatternPhaseInUserSpace(CGContextRef, CGPoint);
173 CGAffineTransform WKGetUserToBaseCTM(CGContextRef); 153 CGAffineTransform WKGetUserToBaseCTM(CGContextRef);
174 154
175 void WKGetGlyphsForCharacters(CGFontRef, const UniChar[], CGGlyph[], size_t); 155 void WKGetGlyphsForCharacters(CGFontRef, const UniChar[], CGGlyph[], size_t);
176 bool WKGetVerticalGlyphsForCharacters(CTFontRef, const UniChar[], CGGlyph[], siz e_t); 156 bool WKGetVerticalGlyphsForCharacters(CTFontRef, const UniChar[], CGGlyph[], siz e_t);
177 157
178 CTLineRef WKCreateCTLineWithUniCharProvider(const UniChar* (*provide)(CFIndex st ringIndex, CFIndex* charCount, CFDictionaryRef* attributes, void*), void (*dispo se)(const UniChar* chars, void*), void*); 158 CTLineRef WKCreateCTLineWithUniCharProvider(const UniChar* (*provide)(CFIndex st ringIndex, CFIndex* charCount, CFDictionaryRef* attributes, void*), void (*dispo se)(const UniChar* chars, void*), void*);
179 #if !defined(BUILDING_ON_LEOPARD) && !defined(BUILDING_ON_SNOW_LEOPARD) 159 #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); 160 CTTypesetterRef WKCreateCTTypesetterWithUniCharProviderAndOptions(const UniChar* (*provide)(CFIndex stringIndex, CFIndex* charCount, CFDictionaryRef* attributes , void*), void (*dispose)(const UniChar* chars, void*), void*, CFDictionaryRef o ptions);
181 161
182 CGContextRef WKIOSurfaceContextCreate(IOSurfaceRef, unsigned width, unsigned hei ght, CGColorSpaceRef); 162 CGContextRef WKIOSurfaceContextCreate(IOSurfaceRef, unsigned width, unsigned hei ght, CGColorSpaceRef);
183 CGImageRef WKIOSurfaceContextCreateImage(CGContextRef context); 163 CGImageRef WKIOSurfaceContextCreateImage(CGContextRef context);
184 #endif 164 #endif
185 165
186 typedef enum { 166 typedef enum {
187 WKPatternTilingNoDistortion, 167 WKPatternTilingNoDistortion,
188 WKPatternTilingConstantSpacingMinimalDistortion, 168 WKPatternTilingConstantSpacingMinimalDistortion,
189 WKPatternTilingConstantSpacing 169 WKPatternTilingConstantSpacing
190 } WKPatternTiling; 170 } WKPatternTiling;
191 171
192 CGPatternRef WKCGPatternCreateWithImageAndTransform(CGImageRef image, CGAffineTr ansform transform, int tiling); 172 CGPatternRef WKCGPatternCreateWithImageAndTransform(CGImageRef image, CGAffineTr ansform transform, int tiling);
173 void WKCGContextResetClip(CGContextRef);
193 174
194 #ifndef __LP64__ 175 #ifndef __LP64__
195 NSEvent *WKCreateNSEventWithCarbonEvent(EventRef eventRef); 176 NSEvent *WKCreateNSEventWithCarbonEvent(EventRef eventRef);
196 NSEvent *WKCreateNSEventWithCarbonMouseMoveEvent(EventRef inEvent, NSWindow *win dow); 177 NSEvent *WKCreateNSEventWithCarbonMouseMoveEvent(EventRef inEvent, NSWindow *win dow);
197 NSEvent *WKCreateNSEventWithCarbonClickEvent(EventRef inEvent, WindowRef windowR ef); 178 NSEvent *WKCreateNSEventWithCarbonClickEvent(EventRef inEvent, WindowRef windowR ef);
198 #endif 179 #endif
199 180
200 CGContextRef WKNSWindowOverrideCGContext(NSWindow *, CGContextRef); 181 CGContextRef WKNSWindowOverrideCGContext(NSWindow *, CGContextRef);
201 void WKNSWindowRestoreCGContext(NSWindow *, CGContextRef); 182 void WKNSWindowRestoreCGContext(NSWindow *, CGContextRef);
202 183
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 int WKQTMovieDataRate(QTMovie* movie); 219 int WKQTMovieDataRate(QTMovie* movie);
239 float WKQTMovieMaxTimeLoaded(QTMovie* movie); 220 float WKQTMovieMaxTimeLoaded(QTMovie* movie);
240 float WKQTMovieMaxTimeSeekable(QTMovie* movie); 221 float WKQTMovieMaxTimeSeekable(QTMovie* movie);
241 NSString *WKQTMovieMaxTimeLoadedChangeNotification(void); 222 NSString *WKQTMovieMaxTimeLoadedChangeNotification(void);
242 void WKQTMovieViewSetDrawSynchronously(QTMovieView* view, BOOL sync); 223 void WKQTMovieViewSetDrawSynchronously(QTMovieView* view, BOOL sync);
243 void WKQTMovieDisableComponent(uint32_t[5]); 224 void WKQTMovieDisableComponent(uint32_t[5]);
244 NSURL *WKQTMovieResolvedURL(QTMovie* movie); 225 NSURL *WKQTMovieResolvedURL(QTMovie* movie);
245 226
246 CFStringRef WKCopyFoundationCacheDirectory(void); 227 CFStringRef WKCopyFoundationCacheDirectory(void);
247 228
248 #if defined(BUILDING_ON_SNOW_LEOPARD) || defined(BUILDING_ON_LEOPARD) 229 #if MAC_OS_X_VERSION_MIN_REQUIRED <= 1060
249 typedef struct __CFURLStorageSession* CFURLStorageSessionRef; 230 typedef struct __CFURLStorageSession* CFURLStorageSessionRef;
250 #else 231 #else
251 typedef const struct __CFURLStorageSession* CFURLStorageSessionRef; 232 typedef const struct __CFURLStorageSession* CFURLStorageSessionRef;
252 #endif 233 #endif
253 CFURLStorageSessionRef WKCreatePrivateStorageSession(CFStringRef); 234 CFURLStorageSessionRef WKCreatePrivateStorageSession(CFStringRef);
254 NSURLRequest *WKCopyRequestWithStorageSession(CFURLStorageSessionRef, NSURLReque st*); 235 NSURLRequest *WKCopyRequestWithStorageSession(CFURLStorageSessionRef, NSURLReque st*);
255 NSCachedURLResponse *WKCachedResponseForRequest(CFURLStorageSessionRef, NSURLReq uest*); 236 NSCachedURLResponse *WKCachedResponseForRequest(CFURLStorageSessionRef, NSURLReq uest*);
256 void WKSetRequestStorageSession(CFURLStorageSessionRef, CFMutableURLRequestRef); 237 void WKSetRequestStorageSession(CFURLStorageSessionRef, CFMutableURLRequestRef);
257 238
258 typedef struct OpaqueCFHTTPCookieStorage* CFHTTPCookieStorageRef; 239 typedef struct OpaqueCFHTTPCookieStorage* CFHTTPCookieStorageRef;
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 WKMediaUIControlVolumeUpButton, 305 WKMediaUIControlVolumeUpButton,
325 WKMediaUIControlVolumeDownButton 306 WKMediaUIControlVolumeDownButton
326 } WKMediaUIControlType; 307 } WKMediaUIControlType;
327 308
328 NSControl *WKCreateMediaUIControl(int controlType); 309 NSControl *WKCreateMediaUIControl(int controlType);
329 310
330 NSArray *WKQTGetSitesInMediaDownloadCache(); 311 NSArray *WKQTGetSitesInMediaDownloadCache();
331 void WKQTClearMediaDownloadCacheForSite(NSString *site); 312 void WKQTClearMediaDownloadCacheForSite(NSString *site);
332 void WKQTClearMediaDownloadCache(); 313 void WKQTClearMediaDownloadCache();
333 314
334 #ifndef BUILDING_ON_LEOPARD 315 #if MAC_OS_X_VERSION_MIN_REQUIRED >= 1060
335 mach_port_t WKInitializeRenderServer(void); 316 mach_port_t WKInitializeRenderServer(void);
336 317
337 @class CALayer; 318 @class CALayer;
338 319
339 CALayer *WKMakeRenderLayer(uint32_t contextID); 320 CALayer *WKMakeRenderLayer(uint32_t contextID);
340 321
341 typedef struct __WKSoftwareCARendererRef *WKSoftwareCARendererRef; 322 typedef struct __WKSoftwareCARendererRef *WKSoftwareCARendererRef;
342 323
343 WKSoftwareCARendererRef WKSoftwareCARendererCreate(uint32_t contextID); 324 WKSoftwareCARendererRef WKSoftwareCARendererCreate(uint32_t contextID);
344 void WKSoftwareCARendererDestroy(WKSoftwareCARendererRef); 325 void WKSoftwareCARendererDestroy(WKSoftwareCARendererRef);
(...skipping 18 matching lines...) Expand all
363 void WKWindowBounceAnimationContextDestroy(WKWindowBounceAnimationContextRef con text); 344 void WKWindowBounceAnimationContextDestroy(WKWindowBounceAnimationContextRef con text);
364 void WKWindowBounceAnimationSetAnimationProgress(WKWindowBounceAnimationContextR ef context, double animationProgress); 345 void WKWindowBounceAnimationSetAnimationProgress(WKWindowBounceAnimationContextR ef context, double animationProgress);
365 346
366 #if defined(__x86_64__) 347 #if defined(__x86_64__)
367 #import <mach/mig.h> 348 #import <mach/mig.h>
368 CFRunLoopSourceRef WKCreateMIGServerSource(mig_subsystem_t subsystem, mach_port_ t serverPort); 349 CFRunLoopSourceRef WKCreateMIGServerSource(mig_subsystem_t subsystem, mach_port_ t serverPort);
369 #endif // defined(__x86_64__) 350 #endif // defined(__x86_64__)
370 351
371 NSUInteger WKGetInputPanelWindowStyle(void); 352 NSUInteger WKGetInputPanelWindowStyle(void);
372 UInt8 WKGetNSEventKeyChar(NSEvent *); 353 UInt8 WKGetNSEventKeyChar(NSEvent *);
373 #endif // !defined(BUILDING_ON_LEOPARD) 354 #endif // MAC_OS_X_VERSION_MIN_REQUIRED >= 1060
374 355
375 @class CAPropertyAnimation; 356 @class CAPropertyAnimation;
376 void WKSetCAAnimationValueFunction(CAPropertyAnimation*, NSString* function); 357 void WKSetCAAnimationValueFunction(CAPropertyAnimation*, NSString* function);
377 358
378 unsigned WKInitializeMaximumHTTPConnectionCountPerHost(unsigned preferredConnect ionCount); 359 unsigned WKInitializeMaximumHTTPConnectionCountPerHost(unsigned preferredConnect ionCount);
379 int WKGetHTTPPipeliningPriority(CFURLRequestRef); 360 int WKGetHTTPPipeliningPriority(CFURLRequestRef);
380 void WKSetHTTPPipeliningMaximumPriority(int maximumPriority); 361 void WKSetHTTPPipeliningMaximumPriority(int maximumPriority);
381 void WKSetHTTPPipeliningPriority(CFURLRequestRef, int priority); 362 void WKSetHTTPPipeliningPriority(CFURLRequestRef, int priority);
382 void WKSetHTTPPipeliningMinimumFastLanePriority(int priority); 363 void WKSetHTTPPipeliningMinimumFastLanePriority(int priority);
383 364
384 void WKSetCONNECTProxyForStream(CFReadStreamRef, CFStringRef proxyHost, CFNumber Ref proxyPort); 365 void WKSetCONNECTProxyForStream(CFReadStreamRef, CFStringRef proxyHost, CFNumber Ref proxyPort);
385 void WKSetCONNECTProxyAuthorizationForStream(CFReadStreamRef, CFStringRef proxyA uthorizationString); 366 void WKSetCONNECTProxyAuthorizationForStream(CFReadStreamRef, CFStringRef proxyA uthorizationString);
386 CFHTTPMessageRef WKCopyCONNECTProxyResponse(CFReadStreamRef, CFURLRef responseUR L); 367 CFHTTPMessageRef WKCopyCONNECTProxyResponse(CFReadStreamRef, CFURLRef responseUR L);
387 368
388 #if defined(BUILDING_ON_LEOPARD) || defined(BUILDING_ON_SNOW_LEOPARD) 369 #if MAC_OS_X_VERSION_MIN_REQUIRED <= 1060
389 typedef enum { 370 typedef enum {
390 WKEventPhaseNone = 0, 371 WKEventPhaseNone = 0,
391 WKEventPhaseBegan = 1, 372 WKEventPhaseBegan = 1,
392 WKEventPhaseChanged = 2, 373 WKEventPhaseChanged = 2,
393 WKEventPhaseEnded = 3, 374 WKEventPhaseEnded = 3,
394 } WKEventPhase; 375 } WKEventPhase;
395 376
396 int WKGetNSEventMomentumPhase(NSEvent *); 377 int WKGetNSEventMomentumPhase(NSEvent *);
397 #endif 378 #endif
398 379
399 void WKWindowSetAlpha(NSWindow *window, float alphaValue); 380 void WKWindowSetAlpha(NSWindow *window, float alphaValue);
400 void WKWindowSetScaledFrame(NSWindow *window, NSRect scaleFrame, NSRect nonScale dFrame); 381 void WKWindowSetScaledFrame(NSWindow *window, NSRect scaleFrame, NSRect nonScale dFrame);
401 382
402 #ifndef BUILDING_ON_LEOPARD 383 #if MAC_OS_X_VERSION_MIN_REQUIRED >= 1060
403 void WKSyncSurfaceToView(NSView *view); 384 void WKSyncSurfaceToView(NSView *view);
404 385
405 void WKEnableSettingCursorWhenInBackground(void); 386 void WKEnableSettingCursorWhenInBackground(void);
406 387
407 CFDictionaryRef WKNSURLRequestCreateSerializableRepresentation(NSURLRequest *req uest, CFTypeRef tokenNull); 388 CFDictionaryRef WKNSURLRequestCreateSerializableRepresentation(NSURLRequest *req uest, CFTypeRef tokenNull);
408 NSURLRequest *WKNSURLRequestFromSerializableRepresentation(CFDictionaryRef repre sentation, CFTypeRef tokenNull); 389 NSURLRequest *WKNSURLRequestFromSerializableRepresentation(CFDictionaryRef repre sentation, CFTypeRef tokenNull);
409 390
410 CFDictionaryRef WKNSURLResponseCreateSerializableRepresentation(NSURLResponse *r esponse, CFTypeRef tokenNull); 391 CFDictionaryRef WKNSURLResponseCreateSerializableRepresentation(NSURLResponse *r esponse, CFTypeRef tokenNull);
411 NSURLResponse *WKNSURLResponseFromSerializableRepresentation(CFDictionaryRef rep resentation, CFTypeRef tokenNull); 392 NSURLResponse *WKNSURLResponseFromSerializableRepresentation(CFDictionaryRef rep resentation, CFTypeRef tokenNull);
412 393
413 #ifndef __LP64__ 394 #ifndef __LP64__
414 ScriptCode WKGetScriptCodeFromCurrentKeyboardInputSource(void); 395 ScriptCode WKGetScriptCodeFromCurrentKeyboardInputSource(void);
415 #endif 396 #endif
416 397
417 #endif 398 #endif
418 399
419 #if defined(BUILDING_ON_LEOPARD) || defined(BUILDING_ON_SNOW_LEOPARD) 400 #if MAC_OS_X_VERSION_MIN_REQUIRED <= 1060
420 CFIndex WKGetHyphenationLocationBeforeIndex(CFStringRef string, CFIndex index); 401 CFIndex WKGetHyphenationLocationBeforeIndex(CFStringRef string, CFIndex index);
421 #endif 402 #endif
422 403
423 CFArrayRef WKCFURLCacheCopyAllHostNamesInPersistentStore(void); 404 CFArrayRef WKCFURLCacheCopyAllHostNamesInPersistentStore(void);
424 void WKCFURLCacheDeleteHostNamesInPersistentStore(CFArrayRef hostArray); 405 void WKCFURLCacheDeleteHostNamesInPersistentStore(CFArrayRef hostArray);
425 406
426 CFStringRef WKGetCFURLResponseMIMEType(CFURLResponseRef); 407 CFStringRef WKGetCFURLResponseMIMEType(CFURLResponseRef);
427 CFURLRef WKGetCFURLResponseURL(CFURLResponseRef); 408 CFURLRef WKGetCFURLResponseURL(CFURLResponseRef);
428 CFHTTPMessageRef WKGetCFURLResponseHTTPResponse(CFURLResponseRef); 409 CFHTTPMessageRef WKGetCFURLResponseHTTPResponse(CFURLResponseRef);
429 CFStringRef WKCopyCFURLResponseSuggestedFilename(CFURLResponseRef); 410 CFStringRef WKCopyCFURLResponseSuggestedFilename(CFURLResponseRef);
430 void WKSetCFURLResponseMIMEType(CFURLResponseRef, CFStringRef mimeType); 411 void WKSetCFURLResponseMIMEType(CFURLResponseRef, CFStringRef mimeType);
431 412
432 CIFormat WKCIGetRGBA8Format(void); 413 CIFormat WKCIGetRGBA8Format(void);
433 414
434 #if !defined(BUILDING_ON_LEOPARD) && !defined(BUILDING_ON_SNOW_LEOPARD) 415 #if MAC_OS_X_VERSION_MIN_REQUIRED >= 1070
435 416
436 typedef enum { 417 typedef enum {
437 WKSandboxExtensionTypeReadOnly, 418 WKSandboxExtensionTypeReadOnly,
438 WKSandboxExtensionTypeWriteOnly, 419 WKSandboxExtensionTypeWriteOnly,
439 WKSandboxExtensionTypeReadWrite, 420 WKSandboxExtensionTypeReadWrite,
440 } WKSandboxExtensionType; 421 } WKSandboxExtensionType;
441 typedef struct __WKSandboxExtension *WKSandboxExtensionRef; 422 typedef struct __WKSandboxExtension *WKSandboxExtensionRef;
442 423
443 WKSandboxExtensionRef WKSandboxExtensionCreate(const char* path, WKSandboxExtens ionType type); 424 WKSandboxExtensionRef WKSandboxExtensionCreate(const char* path, WKSandboxExtens ionType type);
444 void WKSandboxExtensionDestroy(WKSandboxExtensionRef sandboxExtension); 425 void WKSandboxExtensionDestroy(WKSandboxExtensionRef sandboxExtension);
445 426
446 bool WKSandboxExtensionConsume(WKSandboxExtensionRef sandboxExtension); 427 bool WKSandboxExtensionConsume(WKSandboxExtensionRef sandboxExtension);
447 bool WKSandboxExtensionInvalidate(WKSandboxExtensionRef sandboxExtension); 428 bool WKSandboxExtensionInvalidate(WKSandboxExtensionRef sandboxExtension);
448 429
449 const char* WKSandboxExtensionGetSerializedFormat(WKSandboxExtensionRef sandboxE xtension, size_t* length); 430 const char* WKSandboxExtensionGetSerializedFormat(WKSandboxExtensionRef sandboxE xtension, size_t* length);
450 WKSandboxExtensionRef WKSandboxExtensionCreateFromSerializedFormat(const char* s erializationFormat, size_t length); 431 WKSandboxExtensionRef WKSandboxExtensionCreateFromSerializedFormat(const char* s erializationFormat, size_t length);
451 432
433 OSStatus WKEnableSandboxStyleFileQuarantine(void);
434
452 int WKRecommendedScrollerStyle(void); 435 int WKRecommendedScrollerStyle(void);
453 436
454 bool WKExecutableWasLinkedOnOrBeforeSnowLeopard(void); 437 bool WKExecutableWasLinkedOnOrBeforeSnowLeopard(void);
455 438
456 NSRange WKExtractWordDefinitionTokenRangeFromContextualString(NSString *contextS tring, NSRange range, NSDictionary **options); 439 NSRange WKExtractWordDefinitionTokenRangeFromContextualString(NSString *contextS tring, NSRange range, NSDictionary **options);
457 void WKShowWordDefinitionWindow(NSAttributedString *term, NSPoint screenPoint, N SDictionary *options); 440 void WKShowWordDefinitionWindow(NSAttributedString *term, NSPoint screenPoint, N SDictionary *options);
458 void WKHideWordDefinitionWindow(void); 441 void WKHideWordDefinitionWindow(void);
459 442
460 CFStringRef WKCopyDefaultSearchProviderDisplayName(void); 443 CFStringRef WKCopyDefaultSearchProviderDisplayName(void);
461 444
462 NSURL* WKAVAssetResolvedURL(AVAsset*); 445 NSURL* WKAVAssetResolvedURL(AVAsset*);
463 446
464 NSCursor *WKCursor(const char *name); 447 NSCursor *WKCursor(const char *name);
465 448
466 #endif 449 #endif
467 450
468 #if !defined(BUILDING_ON_LEOPARD) && !defined(BUILDING_ON_SNOW_LEOPARD) 451 #if MAC_OS_X_VERSION_MIN_REQUIRED >= 1070
469 452
470 #import <dispatch/dispatch.h> 453 #import <dispatch/dispatch.h>
471 454
472 dispatch_source_t WKCreateVMPressureDispatchOnMainQueue(void); 455 dispatch_source_t WKCreateVMPressureDispatchOnMainQueue(void);
473 456
474 #endif 457 #endif
475 458
459 #if MAC_OS_X_VERSION_MIN_REQUIRED >= 1080
460 NSString *WKGetMacOSXVersionString(void);
461 bool WKExecutableWasLinkedOnOrBeforeLion(void);
462 #endif
463
476 #ifdef __cplusplus 464 #ifdef __cplusplus
477 } 465 }
478 #endif 466 #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