summaryrefslogtreecommitdiffstats
path: root/base/mac/foundation_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'base/mac/foundation_util.h')
-rw-r--r--base/mac/foundation_util.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/base/mac/foundation_util.h b/base/mac/foundation_util.h
index 447f7bf..46ea3c3 100644
--- a/base/mac/foundation_util.h
+++ b/base/mac/foundation_util.h
@@ -16,10 +16,14 @@
#if defined(__OBJC__)
#import <Foundation/Foundation.h>
+@class NSFont;
+@class UIFont;
#else // __OBJC__
#include <CoreFoundation/CoreFoundation.h>
class NSBundle;
+class NSFont;
class NSString;
+class UIFont;
#endif // __OBJC__
#if defined(OS_IOS)
@@ -225,6 +229,12 @@ CF_TO_NS_CAST_DECL(CFWriteStream, NSOutputStream);
CF_TO_NS_MUTABLE_CAST_DECL(String);
CF_TO_NS_CAST_DECL(CFURL, NSURL);
+#if defined(OS_IOS)
+CF_TO_NS_CAST_DECL(CTFont, UIFont);
+#else
+CF_TO_NS_CAST_DECL(CTFont, NSFont);
+#endif
+
#undef CF_TO_NS_CAST_DECL
#undef CF_TO_NS_MUTABLE_CAST_DECL
#undef OBJC_CPP_CLASS_DECL