OLD | NEW |
(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_ |
OLD | NEW |