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

Unified Diff: content/common/font_descriptor_mac.mm

Issue 6289009: [Mac] Implement the system dictionary popup by implementing NSTextInput methods. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Clang Created 9 years, 8 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
« no previous file with comments | « content/common/font_descriptor_mac.h ('k') | content/common/font_descriptor_mac_unittest.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/font_descriptor_mac.mm
diff --git a/content/common/font_descriptor_mac.mm b/content/common/font_descriptor_mac.mm
index 90c7986c311853b215f86343a93a60c5793d3c77..c8e3112be091e61c3032f18b837b36b64866d830 100644
--- a/content/common/font_descriptor_mac.mm
+++ b/content/common/font_descriptor_mac.mm
@@ -13,7 +13,12 @@ FontDescriptor::FontDescriptor(NSFont* font) {
font_point_size = [font pointSize];
}
-NSFont* FontDescriptor::nsFont() const {
+FontDescriptor::FontDescriptor(string16 name, float size) {
+ font_name = name;
+ font_point_size = size;
+}
+
+NSFont* FontDescriptor::ToNSFont() const {
NSString* font_name_ns = base::SysUTF16ToNSString(font_name);
NSFont* font = [NSFont fontWithName:font_name_ns size:font_point_size];
return font;
« no previous file with comments | « content/common/font_descriptor_mac.h ('k') | content/common/font_descriptor_mac_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698