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

Side by Side Diff: chrome/common/font_descriptor_mac.h

Issue 2804001: Mac: More pluming for OOP font loading (Closed)
Patch Set: Fix review comments Created 10 years, 6 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_COMMON_FONT_DESCRIPTOR_MAC_H_
6 #define CHROME_COMMON_FONT_DESCRIPTOR_MAC_H_
7
8 #include "base/string16.h"
9
10 #ifdef __OBJC__
11 @class NSFont;
12 #else
13 class NSFont;
14 #endif
15
16 // Container to allow serializing an NSFont over IPC.
17 struct FontDescriptor {
18 explicit FontDescriptor(NSFont* font);
19
20 FontDescriptor() : font_point_size(0) {}
21
22 // Return an autoreleased NSFont corresponding to the font description.
23 NSFont* nsFont() const;
24
25 // Name of the font.
26 string16 font_name;
27
28 // Size in points.
29 float font_point_size;
30 };
31
32 #endif // CHROME_COMMON_FONT_DESCRIPTOR_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698