| 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 12 matching lines...) Expand all Loading... |
| 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 #include "wtf/Allocator.h" |
| 33 #include "wtf/text/AtomicString.h" |
| 33 | 34 |
| 34 namespace blink { | 35 namespace blink { |
| 35 | 36 |
| 36 class CORE_EXPORT LayoutThemeFontProvider { | 37 class CORE_EXPORT LayoutThemeFontProvider { |
| 37 STATIC_ONLY(LayoutThemeFontProvider); | 38 STATIC_ONLY(LayoutThemeFontProvider); |
| 38 | 39 |
| 39 public: | 40 public: |
| 40 static void systemFont(CSSValueID systemFontID, | 41 static void systemFont(CSSValueID systemFontID, |
| 41 FontStyle&, | 42 FontStyle&, |
| 42 FontWeight&, | 43 FontWeight&, |
| 43 float& fontSize, | 44 float& fontSize, |
| 44 AtomicString& fontFamily); | 45 AtomicString& fontFamily); |
| 45 static void setDefaultFontSize(int); | 46 static void setDefaultFontSize(int); |
| 46 | 47 |
| 47 protected: | 48 protected: |
| 48 static const WTF::AtomicString& defaultGUIFont(); | 49 static const WTF::AtomicString& defaultGUIFont(); |
| 49 | 50 |
| 50 static float s_defaultFontSize; | 51 static float s_defaultFontSize; |
| 51 }; | 52 }; |
| 52 | 53 |
| 53 } // namespace blink | 54 } // namespace blink |
| 54 | 55 |
| 55 #endif // LayoutThemeFontProvider_h | 56 #endif // LayoutThemeFontProvider_h |
| OLD | NEW |