OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 UI_GFX_FONT_FALLBACK_WIN_H_ | 5 #ifndef UI_GFX_FONT_FALLBACK_WIN_H_ |
6 #define UI_GFX_FONT_FALLBACK_WIN_H_ | 6 #define UI_GFX_FONT_FALLBACK_WIN_H_ |
7 | 7 |
| 8 #include <stddef.h> |
| 9 |
8 #include <string> | 10 #include <string> |
9 #include <vector> | 11 #include <vector> |
10 | 12 |
| 13 #include "base/macros.h" |
11 #include "ui/gfx/font.h" | 14 #include "ui/gfx/font.h" |
12 #include "ui/gfx/font_fallback.h" | 15 #include "ui/gfx/font_fallback.h" |
13 | 16 |
14 namespace gfx { | 17 namespace gfx { |
15 | 18 |
16 // Internals of font_fallback_win.cc exposed for testing. | 19 // Internals of font_fallback_win.cc exposed for testing. |
17 namespace internal { | 20 namespace internal { |
18 | 21 |
19 // Parses comma separated SystemLink |entry|, per the format described here: | 22 // Parses comma separated SystemLink |entry|, per the format described here: |
20 // http://msdn.microsoft.com/en-us/goglobal/bb688134.aspx | 23 // http://msdn.microsoft.com/en-us/goglobal/bb688134.aspx |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 // initial |font|. Returns the resulting font via out param |result|. Returns | 85 // initial |font|. Returns the resulting font via out param |result|. Returns |
83 // |true| if a fallback font was found. | 86 // |true| if a fallback font was found. |
84 bool GetUniscribeFallbackFont(const Font& font, | 87 bool GetUniscribeFallbackFont(const Font& font, |
85 const wchar_t* text, | 88 const wchar_t* text, |
86 int text_length, | 89 int text_length, |
87 Font* result); | 90 Font* result); |
88 | 91 |
89 } // namespace gfx | 92 } // namespace gfx |
90 | 93 |
91 #endif // UI_GFX_FONT_FALLBACK_WIN_H_ | 94 #endif // UI_GFX_FONT_FALLBACK_WIN_H_ |
OLD | NEW |