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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 static Color focusRingColor(); | 154 static Color focusRingColor(); |
155 virtual Color platformFocusRingColor() const { return Color(0, 0, 0); } | 155 virtual Color platformFocusRingColor() const { return Color(0, 0, 0); } |
156 static void setCustomFocusRingColor(const Color&); | 156 static void setCustomFocusRingColor(const Color&); |
157 static Color tapHighlightColor(); | 157 static Color tapHighlightColor(); |
158 virtual Color platformTapHighlightColor() const { return RenderTheme::defaul
tTapHighlightColor; } | 158 virtual Color platformTapHighlightColor() const { return RenderTheme::defaul
tTapHighlightColor; } |
159 virtual void platformColorsDidChange(); | 159 virtual void platformColorsDidChange(); |
160 | 160 |
161 virtual double caretBlinkInterval() const { return 0.5; } | 161 virtual double caretBlinkInterval() const { return 0.5; } |
162 | 162 |
163 // System fonts and colors for CSS. | 163 // System fonts and colors for CSS. |
164 virtual void systemFont(int cssValueId, FontDescription&) const = 0; | 164 virtual void systemFont(CSSValueID, FontDescription&) const = 0; |
165 virtual Color systemColor(int cssValueId) const; | 165 virtual Color systemColor(CSSValueID) const; |
166 | 166 |
167 virtual int minimumMenuListSize(RenderStyle*) const { return 0; } | 167 virtual int minimumMenuListSize(RenderStyle*) const { return 0; } |
168 | 168 |
169 virtual void adjustSliderThumbSize(RenderStyle*, Element*) const; | 169 virtual void adjustSliderThumbSize(RenderStyle*, Element*) const; |
170 | 170 |
171 virtual int popupInternalPaddingLeft(RenderStyle*) const { return 0; } | 171 virtual int popupInternalPaddingLeft(RenderStyle*) const { return 0; } |
172 virtual int popupInternalPaddingRight(RenderStyle*) const { return 0; } | 172 virtual int popupInternalPaddingRight(RenderStyle*) const { return 0; } |
173 virtual int popupInternalPaddingTop(RenderStyle*) const { return 0; } | 173 virtual int popupInternalPaddingTop(RenderStyle*) const { return 0; } |
174 virtual int popupInternalPaddingBottom(RenderStyle*) const { return 0; } | 174 virtual int popupInternalPaddingBottom(RenderStyle*) const { return 0; } |
175 virtual bool popupOptionSupportsTextIndent() const { return false; } | 175 virtual bool popupOptionSupportsTextIndent() const { return false; } |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
353 static const RGBA32 defaultTapHighlightColor = 0x66000000; | 353 static const RGBA32 defaultTapHighlightColor = 0x66000000; |
354 | 354 |
355 #if USE(NEW_THEME) | 355 #if USE(NEW_THEME) |
356 Theme* m_theme; // The platform-specific theme. | 356 Theme* m_theme; // The platform-specific theme. |
357 #endif | 357 #endif |
358 }; | 358 }; |
359 | 359 |
360 } // namespace WebCore | 360 } // namespace WebCore |
361 | 361 |
362 #endif // RenderTheme_h | 362 #endif // RenderTheme_h |
OLD | NEW |