2 * Copyright 2006 Apple Computer, Inc. All rights reserved.
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
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.
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.
27 #import "WebCoreSystemInterface.h"
29 BOOL (*wkCGContextGetShouldSmoothFonts)(CGContextRef);
30 void (*wkClearGlyphVector)(void* glyphs);
31 OSStatus (*wkConvertCharToGlyphs)(void* styleGroup, const UniChar*, unsigned numCharacters, void* glyphs);
32 void (*wkDrawBezeledTextFieldCell)(NSRect, BOOL enabled);
33 void (*wkDrawBezeledTextArea)(NSRect, BOOL enabled);
34 void (*wkDrawFocusRing)(CGContextRef, CGRect clipRect, CGColorRef, int radius);
35 BOOL (*wkFontSmoothingModeIsLCD)(int mode);
36 OSStatus (*wkGetATSStyleGroup)(ATSUStyle, void** styleGroup);
37 CGFontRef (*wkGetCGFontFromNSFont)(NSFont*);
38 ATSGlyphRef (*wkGetDefaultGlyphForChar)(NSFont*, UniChar);
39 NSFont* (*wkGetFontInLanguageForRange)(NSFont*, NSString*, NSRange);
40 NSFont* (*wkGetFontInLanguageForCharacter)(NSFont*, UniChar);
41 void (*wkGetFontMetrics)(NSFont*, int* ascent, int* descent, int* lineGap, unsigned* unitsPerEm);
42 BOOL (*wkGetGlyphTransformedAdvances)(NSFont*, CGAffineTransform*, ATSGlyphRef*, CGSize* advance);
43 ATSLayoutRecord* (*wkGetGlyphVectorFirstRecord)(void* glyphVector);
44 int (*wkGetGlyphVectorNumGlyphs)(void* glyphVector);
45 size_t (*wkGetGlyphVectorRecordSize)(void* glyphVector);
46 NSString* (*wkGetMIMETypeForExtension)(NSString*);
47 ATSUFontID (*wkGetNSFontATSUFontId)(NSFont*);
48 OSStatus (*wkInitializeGlyphVector)(int count, void* glyphs);
49 NSString* (*wkPathFromFont)(NSFont*);
50 void (*wkPopupMenu)(NSMenu*, NSPoint location, float width, NSView*, int selectedItem, NSFont*);
51 void (*wkReleaseStyleGroup)(void* group);
52 BOOL (*wkSecureEventInput)(void);
53 void (*wkSetCGFontRenderingMode)(CGContextRef, NSFont*);
54 void (*wkSetDragImage)(NSImage*, NSPoint offset);
55 void (*wkSetPatternPhaseInUserSpace)(CGContextRef, CGPoint point);
56 void (*wkSetSecureEventInput)(BOOL);
57 void (*wkSetUpFontCache)(size_t);
58 void (*wkSignalCFReadStreamEnd)(CFReadStreamRef stream);
59 void (*wkSignalCFReadStreamHasBytes)(CFReadStreamRef stream);
60 void (*wkSignalCFReadStreamError)(CFReadStreamRef stream, CFStreamError *error);
61 CFReadStreamRef (*wkCreateCustomCFReadStream)(void *(*formCreate)(CFReadStreamRef, void *),
62 void (*formFinalize)(CFReadStreamRef, void *),
63 Boolean (*formOpen)(CFReadStreamRef, CFStreamError *, Boolean *, void *),
64 CFIndex (*formRead)(CFReadStreamRef, UInt8 *, CFIndex, CFStreamError *, Boolean *, void *),
65 Boolean (*formCanRead)(CFReadStreamRef, void *),
66 void (*formClose)(CFReadStreamRef, void *),
67 void (*formSchedule)(CFReadStreamRef, CFRunLoopRef, CFStringRef, void *),
68 void (*formUnschedule)(CFReadStreamRef, CFRunLoopRef, CFStringRef, void *),
70 void (*wkSetNSURLConnectionDefersCallbacks)(NSURLConnection *, BOOL);
71 id (*wkCreateNSURLConnectionDelegateProxy)(void);