OLD | NEW |
---|---|
1 // Copyright 2014 Google Inc. All rights reserved. | 1 // Copyright 2014 Google Inc. 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 WebFontRendering_h | 5 #ifndef WebFontRendering_h |
6 #define WebFontRendering_h | 6 #define WebFontRendering_h |
7 | 7 |
8 #include "public/platform/WebCommon.h" | 8 #include "public/platform/WebCommon.h" |
9 #include "third_party/skia/include/core/SkRefCnt.h" | |
bungeman-chromium
2017/01/10 18:31:14
Unfortunately, this can't really be forward declar
| |
9 | 10 |
10 class SkFontMgr; | 11 class SkFontMgr; |
11 class SkTypeface; | 12 class SkTypeface; |
12 | 13 |
13 namespace blink { | 14 namespace blink { |
14 | 15 |
15 class WebFontRendering { | 16 class WebFontRendering { |
16 public: | 17 public: |
17 BLINK_EXPORT static void setSkiaFontManager(SkFontMgr*); | 18 BLINK_EXPORT static void setSkiaFontManager(sk_sp<SkFontMgr>); |
18 BLINK_EXPORT static void setDeviceScaleFactor(float); | 19 BLINK_EXPORT static void setDeviceScaleFactor(float); |
19 BLINK_EXPORT static void addSideloadedFontForTesting(SkTypeface*); | 20 BLINK_EXPORT static void addSideloadedFontForTesting(SkTypeface*); |
20 BLINK_EXPORT static void setMenuFontMetrics(const wchar_t* familyName, | 21 BLINK_EXPORT static void setMenuFontMetrics(const wchar_t* familyName, |
21 int32_t fontHeight); | 22 int32_t fontHeight); |
22 BLINK_EXPORT static void setSmallCaptionFontMetrics(const wchar_t* familyName, | 23 BLINK_EXPORT static void setSmallCaptionFontMetrics(const wchar_t* familyName, |
23 int32_t fontHeight); | 24 int32_t fontHeight); |
24 BLINK_EXPORT static void setStatusFontMetrics(const wchar_t* familyName, | 25 BLINK_EXPORT static void setStatusFontMetrics(const wchar_t* familyName, |
25 int32_t fontHeight); | 26 int32_t fontHeight); |
26 BLINK_EXPORT static void setAntialiasedTextEnabled(bool); | 27 BLINK_EXPORT static void setAntialiasedTextEnabled(bool); |
27 BLINK_EXPORT static void setLCDTextEnabled(bool); | 28 BLINK_EXPORT static void setLCDTextEnabled(bool); |
28 BLINK_EXPORT static void setUseSkiaFontFallback(bool); | 29 BLINK_EXPORT static void setUseSkiaFontFallback(bool); |
29 }; | 30 }; |
30 | 31 |
31 } // namespace blink | 32 } // namespace blink |
32 | 33 |
33 #endif | 34 #endif |
OLD | NEW |