OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 11 matching lines...) Expand all Loading... |
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
24 */ | 24 */ |
25 | 25 |
26 #ifndef LayoutThemeFontProvider_h | 26 #ifndef LayoutThemeFontProvider_h |
27 #define LayoutThemeFontProvider_h | 27 #define LayoutThemeFontProvider_h |
28 | 28 |
29 #include "core/CSSValueKeywords.h" | 29 #include "core/CSSValueKeywords.h" |
30 #include "core/CoreExport.h" | 30 #include "core/CoreExport.h" |
31 #include "platform/fonts/FontTraits.h" | 31 #include "platform/fonts/FontTraits.h" |
| 32 #include "wtf/Allocator.h" |
32 | 33 |
33 namespace blink { | 34 namespace blink { |
34 | 35 |
35 class CORE_EXPORT LayoutThemeFontProvider { | 36 class CORE_EXPORT LayoutThemeFontProvider { |
| 37 STATIC_ONLY(LayoutThemeFontProvider); |
36 public: | 38 public: |
37 static void systemFont(CSSValueID systemFontID, FontStyle&, FontWeight&, flo
at& fontSize, AtomicString& fontFamily); | 39 static void systemFont(CSSValueID systemFontID, FontStyle&, FontWeight&, flo
at& fontSize, AtomicString& fontFamily); |
38 static void setDefaultFontSize(int); | 40 static void setDefaultFontSize(int); |
39 | 41 |
40 protected: | 42 protected: |
41 static const WTF::AtomicString& defaultGUIFont(); | 43 static const WTF::AtomicString& defaultGUIFont(); |
42 | 44 |
43 static float s_defaultFontSize; | 45 static float s_defaultFontSize; |
44 }; | 46 }; |
45 | 47 |
46 } // namespace blink | 48 } // namespace blink |
47 | 49 |
48 #endif // LayoutThemeFontProvider_h | 50 #endif // LayoutThemeFontProvider_h |
OLD | NEW |