OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef APP_GFX_CHROME_FONT_H_ | 5 #ifndef APP_GFX_CHROME_FONT_H_ |
6 #define APP_GFX_CHROME_FONT_H_ | 6 #define APP_GFX_CHROME_FONT_H_ |
7 | 7 |
8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
9 | 9 |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #if defined(OS_WIN) | 12 #if defined(OS_WIN) |
13 typedef struct HFONT__* HFONT; | 13 typedef struct HFONT__* HFONT; |
14 #elif defined(OS_LINUX) | 14 #elif defined(OS_LINUX) |
15 #include "skia/include/SkRefCnt.h" | 15 #include "third_party/skia/include/core/SkRefCnt.h" |
16 class SkPaint; | 16 class SkPaint; |
17 class SkTypeface; | 17 class SkTypeface; |
18 #endif | 18 #endif |
19 | 19 |
20 #if defined(OS_WIN) | 20 #if defined(OS_WIN) |
21 typedef struct HFONT__* NativeFont; | 21 typedef struct HFONT__* NativeFont; |
22 #elif defined(OS_MACOSX) | 22 #elif defined(OS_MACOSX) |
23 #ifdef __OBJC__ | 23 #ifdef __OBJC__ |
24 @class NSFont; | 24 @class NSFont; |
25 #else | 25 #else |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 | 228 |
229 // Cached metrics, generated at construction | 229 // Cached metrics, generated at construction |
230 int height_; | 230 int height_; |
231 int ascent_; | 231 int ascent_; |
232 int avg_width_; | 232 int avg_width_; |
233 #endif | 233 #endif |
234 | 234 |
235 }; | 235 }; |
236 | 236 |
237 #endif // APP_GFX_CHROME_FONT_H_ | 237 #endif // APP_GFX_CHROME_FONT_H_ |
OLD | NEW |