OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CONTENT_COMMON_CHILD_PROCESS_SANDBOX_SUPPORT_IMPL_LINUX_H_ | 5 #ifndef CONTENT_COMMON_CHILD_PROCESS_SANDBOX_SUPPORT_IMPL_LINUX_H_ |
6 #define CONTENT_COMMON_CHILD_PROCESS_SANDBOX_SUPPORT_IMPL_LINUX_H_ | 6 #define CONTENT_COMMON_CHILD_PROCESS_SANDBOX_SUPPORT_IMPL_LINUX_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "content/public/common/child_process_sandbox_support_linux.h" | 9 #include "content/public/common/child_process_sandbox_support_linux.h" |
10 | 10 |
11 namespace WebKit { | 11 namespace WebKit { |
| 12 struct WebFontFamily; |
12 struct WebFontRenderStyle; | 13 struct WebFontRenderStyle; |
13 } | 14 } |
14 | 15 |
15 namespace content { | 16 namespace content { |
16 | 17 |
17 // Return a font family which provides glyphs for the Unicode code points | 18 // Return a font family which provides glyphs for the Unicode code points |
18 // specified by |utf16| | 19 // specified by |utf16| |
19 // utf16: a native-endian UTF16 string | 20 // utf16: a native-endian UTF16 string |
20 // num_utf16: the number of 16-bit words in |utf16| | 21 // num_utf16: the number of 16-bit words in |utf16| |
21 // preferred_locale: preferred locale identifier for the |utf16| | 22 // preferred_locale: preferred locale identifier for the |utf16| |
22 // | 23 // |
23 // Returns: the font family or an empty string if the request could not be | 24 // Returns: a font family instance. |
24 // satisfied. | 25 // The instance has an empty font name if the request could not be satisfied. |
25 std::string GetFontFamilyForCharacters(const uint16_t* utf16, | 26 void GetFontFamilyForCharacters(const uint16_t* utf16, |
26 size_t num_utf16, | 27 size_t num_utf16, |
27 const char* preferred_locale); | 28 const char* preferred_locale, |
| 29 WebKit::WebFontFamily* family); |
28 | 30 |
29 void GetRenderStyleForStrike(const char* family, int sizeAndStyle, | 31 void GetRenderStyleForStrike(const char* family, int sizeAndStyle, |
30 WebKit::WebFontRenderStyle* out); | 32 WebKit::WebFontRenderStyle* out); |
31 | 33 |
32 }; // namespace content | 34 }; // namespace content |
33 | 35 |
34 #endif // CONTENT_COMMON_CHILD_PROCESS_SANDBOX_SUPPORT_IMPL_LINUX_H_ | 36 #endif // CONTENT_COMMON_CHILD_PROCESS_SANDBOX_SUPPORT_IMPL_LINUX_H_ |
OLD | NEW |