OLD | NEW |
---|---|
1 /* | 1 /* |
2 * This file is part of the theme implementation for form controls in WebCore. | 2 * This file is part of the theme implementation for form controls in WebCore. |
3 * | 3 * |
4 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Computer, Inc. | 4 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Computer, Inc. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
139 Color focusRingColor() const; | 139 Color focusRingColor() const; |
140 virtual Color platformFocusRingColor() const { return Color(0, 0, 0); } | 140 virtual Color platformFocusRingColor() const { return Color(0, 0, 0); } |
141 void setCustomFocusRingColor(const Color&); | 141 void setCustomFocusRingColor(const Color&); |
142 static Color tapHighlightColor(); | 142 static Color tapHighlightColor(); |
143 virtual Color platformTapHighlightColor() const { return RenderTheme::defaul tTapHighlightColor; } | 143 virtual Color platformTapHighlightColor() const { return RenderTheme::defaul tTapHighlightColor; } |
144 virtual void platformColorsDidChange(); | 144 virtual void platformColorsDidChange(); |
145 | 145 |
146 virtual double caretBlinkInterval() const { return 0.5; } | 146 virtual double caretBlinkInterval() const { return 0.5; } |
147 | 147 |
148 // System fonts and colors for CSS. | 148 // System fonts and colors for CSS. |
149 virtual void systemFont(CSSValueID, FontDescription&) const = 0; | 149 virtual void systemFont(CSSValueID systemFontID, FontStyle&, FontWeight&, fl oat& fontSize, AtomicString& fontFamily) const = 0; |
dglazkov
2014/03/20 05:24:44
I am curious why you cracked it open like that. Wh
alancutter (OOO until 2018)
2014/03/20 05:34:13
Splitting the components out ensures the font styl
| |
150 void systemFont(CSSValueID systemFontID, FontDescription&); | |
150 virtual Color systemColor(CSSValueID) const; | 151 virtual Color systemColor(CSSValueID) const; |
151 | 152 |
152 virtual int minimumMenuListSize(RenderStyle*) const { return 0; } | 153 virtual int minimumMenuListSize(RenderStyle*) const { return 0; } |
153 | 154 |
154 virtual void adjustSliderThumbSize(RenderStyle*, Element*) const; | 155 virtual void adjustSliderThumbSize(RenderStyle*, Element*) const; |
155 | 156 |
156 virtual int popupInternalPaddingLeft(RenderStyle*) const { return 0; } | 157 virtual int popupInternalPaddingLeft(RenderStyle*) const { return 0; } |
157 virtual int popupInternalPaddingRight(RenderStyle*) const { return 0; } | 158 virtual int popupInternalPaddingRight(RenderStyle*) const { return 0; } |
158 virtual int popupInternalPaddingTop(RenderStyle*) const { return 0; } | 159 virtual int popupInternalPaddingTop(RenderStyle*) const { return 0; } |
159 virtual int popupInternalPaddingBottom(RenderStyle*) const { return 0; } | 160 virtual int popupInternalPaddingBottom(RenderStyle*) const { return 0; } |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
312 static const RGBA32 defaultTapHighlightColor = 0x66000000; | 313 static const RGBA32 defaultTapHighlightColor = 0x66000000; |
313 | 314 |
314 #if USE(NEW_THEME) | 315 #if USE(NEW_THEME) |
315 Theme* m_platformTheme; // The platform-specific theme. | 316 Theme* m_platformTheme; // The platform-specific theme. |
316 #endif | 317 #endif |
317 }; | 318 }; |
318 | 319 |
319 } // namespace WebCore | 320 } // namespace WebCore |
320 | 321 |
321 #endif // RenderTheme_h | 322 #endif // RenderTheme_h |
OLD | NEW |