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

Unified Diff: Source/platform/mac/WebFontCache.h

Issue 67433002: Move Mac related files to Source/platform (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Try to add exporting Created 7 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: Source/platform/mac/WebFontCache.h
diff --git a/Source/core/platform/mac/WebFontCache.h b/Source/platform/mac/WebFontCache.h
similarity index 95%
rename from Source/core/platform/mac/WebFontCache.h
rename to Source/platform/mac/WebFontCache.h
index 822c1b51b2895a0b7d733dea5fc2ce4d570198f2..1ee439a8f347ca0e0027f57bd63d849929a82c90 100644
--- a/Source/core/platform/mac/WebFontCache.h
+++ b/Source/platform/mac/WebFontCache.h
@@ -24,11 +24,12 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#include "platform/PlatformExport.h"
#import <AppKit/NSFontManager.h>
#import <wtf/Vector.h>
// This interface exists so that third party products (like Silk) can patch in to an Obj-C method to manipulate WebKit's font caching/substitution.
-@interface WebFontCache : NSObject
+PLATFORM_EXPORT @interface WebFontCache : NSObject
+ (NSFont *)fontWithFamily:(NSString *)desiredFamily traits:(NSFontTraitMask)desiredTraits weight:(int)desiredWeight size:(float)size;
+ (void)getTraits:(Vector<unsigned>&)traitsMasks inFamily:(NSString *)desiredFamily;

Powered by Google App Engine
This is Rietveld 408576698