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

Unified Diff: Source/platform/fonts/mac/FontFamilyMatcherMac.h

Issue 1276003003: Reland 2: mac: Use a placeholder string for the family name of the system font. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebaseline Yosemite tests that use bold fonts. Created 5 years, 4 months 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/fonts/mac/FontFamilyMatcherMac.h
diff --git a/Source/platform/fonts/mac/FontFamilyMatcherMac.h b/Source/platform/fonts/mac/FontFamilyMatcherMac.h
index 1a41029c6db1511be4dca9553754febee4bb95fc..be7a951062ff6a2444f7d201d9bd85e5e05376f1 100644
--- a/Source/platform/fonts/mac/FontFamilyMatcherMac.h
+++ b/Source/platform/fonts/mac/FontFamilyMatcherMac.h
@@ -27,13 +27,17 @@
#ifndef FontFamilyMatcherMac_h
#define FontFamilyMatcherMac_h
+#include "platform/PlatformExport.h"
+#include "platform/fonts/FontTraits.h"
#include <AppKit/NSFontManager.h>
namespace blink {
-NSFont* MatchNSFontFamily(NSString* desiredFamily, NSFontTraitMask desiredTraits,
- int desiredWeight, float size);
+PLATFORM_EXPORT NSFont* MatchNSFontFamily(NSString* desiredFamily, NSFontTraitMask desiredTraits,
+ FontWeight desiredWeight, float size);
+// Converts a blink::FontWeight to an AppKit font weight.
+int ToAppKitFontWeight(FontWeight);
tkent 2015/08/11 01:34:36 To -> to
erikchen 2015/08/11 05:21:13 Done.
}
#endif // FontFamilyMatcherMac_h

Powered by Google App Engine
This is Rietveld 408576698