• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright 2006, 2007, 2008 Apple Computer, Inc. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 *    notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright
10 *    notice, this list of conditions and the following disclaimer in the
11 *    documentation and/or other materials provided with the distribution.
12 *
13 * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
14 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
16 * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE COMPUTER, INC. OR
17 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
18 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
19 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
20 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */
25
26#import "config.h"
27#import "WebCoreSystemInterface.h"
28#import <Foundation/Foundation.h>
29
30void (*wkAdvanceDefaultButtonPulseAnimation)(NSButtonCell *);
31BOOL (*wkCGContextGetShouldSmoothFonts)(CGContextRef);
32NSString* (*wkCreateURLPasteboardFlavorTypeName)(void);
33NSString* (*wkCreateURLNPasteboardFlavorTypeName)(void);
34void (*wkDrawBezeledTextFieldCell)(NSRect, BOOL enabled);
35void (*wkDrawTextFieldCellFocusRing)(NSTextFieldCell*, NSRect);
36void (*wkDrawCapsLockIndicator)(CGContextRef, CGRect);
37void (*wkDrawBezeledTextArea)(NSRect, BOOL enabled);
38void (*wkDrawFocusRing)(CGContextRef, CGColorRef, int radius);
39NSFont* (*wkGetFontInLanguageForRange)(NSFont*, NSString*, NSRange);
40NSFont* (*wkGetFontInLanguageForCharacter)(NSFont*, UniChar);
41BOOL (*wkGetGlyphTransformedAdvances)(CGFontRef, NSFont*, CGAffineTransform*, ATSGlyphRef*, CGSize* advance);
42void (*wkDrawMediaSliderTrack)(int themeStyle, CGContextRef context, CGRect rect, float timeLoaded, float currentTime,
43    float duration, unsigned state);
44BOOL (*wkHitTestMediaUIPart)(int part, int themeStyle, CGRect bounds, CGPoint point);
45void (*wkDrawMediaUIPart)(int part, int themeStyle, CGContextRef context, CGRect rect, unsigned state);
46void (*wkMeasureMediaUIPart)(int part, int themeStyle, CGRect *bounds, CGSize *naturalSize);
47BOOL (*wkMediaControllerThemeAvailable)(int themeStyle);
48NSString* (*wkGetPreferredExtensionForMIMEType)(NSString*);
49NSArray* (*wkGetExtensionsForMIMEType)(NSString*);
50NSString* (*wkGetMIMETypeForExtension)(NSString*);
51NSTimeInterval (*wkGetNSURLResponseCalculatedExpiration)(NSURLResponse *response);
52NSDate *(*wkGetNSURLResponseLastModifiedDate)(NSURLResponse *response);
53BOOL (*wkGetNSURLResponseMustRevalidate)(NSURLResponse *response);
54void (*wkGetWheelEventDeltas)(NSEvent*, float* deltaX, float* deltaY, BOOL* continuous);
55void (*wkPopupMenu)(NSMenu*, NSPoint location, float width, NSView*, int selectedItem, NSFont*);
56unsigned (*wkQTIncludeOnlyModernMediaFileTypes)(void);
57int (*wkQTMovieDataRate)(QTMovie*);
58float (*wkQTMovieMaxTimeLoaded)(QTMovie*);
59NSString *(*wkQTMovieMaxTimeLoadedChangeNotification)(void);
60float (*wkQTMovieMaxTimeSeekable)(QTMovie*);
61int (*wkQTMovieGetType)(QTMovie* movie);
62BOOL (*wkQTMovieHasClosedCaptions)(QTMovie* movie);
63void (*wkQTMovieSetShowClosedCaptions)(QTMovie* movie, BOOL showClosedCaptions);
64void (*wkQTMovieViewSetDrawSynchronously)(QTMovieView*, BOOL);
65void (*wkSetCGFontRenderingMode)(CGContextRef, NSFont*);
66void (*wkSetDragImage)(NSImage*, NSPoint offset);
67void (*wkSetPatternBaseCTM)(CGContextRef, CGAffineTransform);
68void (*wkSetPatternPhaseInUserSpace)(CGContextRef, CGPoint point);
69CGAffineTransform (*wkGetUserToBaseCTM)(CGContextRef);
70void (*wkSetUpFontCache)();
71void (*wkSignalCFReadStreamEnd)(CFReadStreamRef stream);
72void (*wkSignalCFReadStreamHasBytes)(CFReadStreamRef stream);
73void (*wkSignalCFReadStreamError)(CFReadStreamRef stream, CFStreamError *error);
74CFReadStreamRef (*wkCreateCustomCFReadStream)(void *(*formCreate)(CFReadStreamRef, void *),
75    void (*formFinalize)(CFReadStreamRef, void *),
76    Boolean (*formOpen)(CFReadStreamRef, CFStreamError *, Boolean *, void *),
77    CFIndex (*formRead)(CFReadStreamRef, UInt8 *, CFIndex, CFStreamError *, Boolean *, void *),
78    Boolean (*formCanRead)(CFReadStreamRef, void *),
79    void (*formClose)(CFReadStreamRef, void *),
80    void (*formSchedule)(CFReadStreamRef, CFRunLoopRef, CFStringRef, void *),
81    void (*formUnschedule)(CFReadStreamRef, CFRunLoopRef, CFStringRef, void *),
82    void *context);
83void (*wkSetNSURLConnectionDefersCallbacks)(NSURLConnection *, BOOL);
84void (*wkSetNSURLRequestShouldContentSniff)(NSMutableURLRequest *, BOOL);
85id (*wkCreateNSURLConnectionDelegateProxy)(void);
86unsigned (*wkInitializeMaximumHTTPConnectionCountPerHost)(unsigned preferredConnectionCount);
87void (*wkSetCONNECTProxyForStream)(CFReadStreamRef, CFStringRef proxyHost, CFNumberRef proxyPort);
88void (*wkSetCONNECTProxyAuthorizationForStream)(CFReadStreamRef, CFStringRef proxyAuthorizationString);
89CFHTTPMessageRef (*wkCopyCONNECTProxyResponse)(CFReadStreamRef, CFURLRef responseURL);
90BOOL (*wkIsLatchingWheelEvent)(NSEvent *);
91
92#ifndef BUILDING_ON_TIGER
93void (*wkGetGlyphsForCharacters)(CGFontRef, const UniChar[], CGGlyph[], size_t);
94#else
95void (*wkClearGlyphVector)(void* glyphs);
96OSStatus (*wkConvertCharToGlyphs)(void* styleGroup, const UniChar*, unsigned numCharacters, void* glyphs);
97CFStringRef (*wkCopyFullFontName)(CGFontRef font);
98OSStatus (*wkGetATSStyleGroup)(ATSUStyle, void** styleGroup);
99CGFontRef (*wkGetCGFontFromNSFont)(NSFont*);
100void (*wkGetFontMetrics)(CGFontRef, int* ascent, int* descent, int* lineGap, unsigned* unitsPerEm);
101ATSLayoutRecord* (*wkGetGlyphVectorFirstRecord)(void* glyphVector);
102void* wkGetGlyphsForCharacters;
103int (*wkGetGlyphVectorNumGlyphs)(void* glyphVector);
104size_t (*wkGetGlyphVectorRecordSize)(void* glyphVector);
105OSStatus (*wkInitializeGlyphVector)(int count, void* glyphs);
106void (*wkReleaseStyleGroup)(void* group);
107ATSUFontID (*wkGetNSFontATSUFontId)(NSFont*);
108BOOL (*wkSupportsMultipartXMixedReplace)(NSMutableURLRequest *);
109#endif
110
111#if !defined(BUILDING_ON_TIGER) && !defined(BUILDING_ON_LEOPARD) && !defined(BUILDING_ON_SNOW_LEOPARD)
112NSMutableArray *(*wkNoteOpenPanelFiles)(NSArray *);
113#else
114void* wkNoteOpenPanelFiles;
115#endif
116