diff options
Diffstat (limited to 'WebCore/platform/chromium/ChromiumBridge.h')
-rw-r--r-- | WebCore/platform/chromium/ChromiumBridge.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/WebCore/platform/chromium/ChromiumBridge.h b/WebCore/platform/chromium/ChromiumBridge.h index f1dc95b..3e9406d 100644 --- a/WebCore/platform/chromium/ChromiumBridge.h +++ b/WebCore/platform/chromium/ChromiumBridge.h @@ -44,6 +44,16 @@ typedef struct NPObject NPObject; typedef struct _NPP NPP_t; typedef NPP_t* NPP; +#if OS(DARWIN) +typedef struct CGFont* CGFontRef; +typedef uintptr_t ATSFontContainerRef; +#ifdef __OBJC__ +@class NSFont; +#else +class NSFont; +#endif +#endif // OS(DARWIN) + #if OS(WINDOWS) typedef struct HFONT__* HFONT; #endif @@ -127,6 +137,9 @@ namespace WebCore { static void getRenderStyleForStrike(const char* family, int sizeAndStyle, FontRenderStyle* result); static String getFontFamilyForCharacters(const UChar*, size_t numCharacters); #endif +#if OS(DARWIN) + static bool loadFont(NSFont* srcFont, ATSFontContainerRef* out); +#endif // Forms -------------------------------------------------------------- static void notifyFormStateChanged(const Document*); |