| 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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 | 147 |
| 148 // Highlighting colors for TextMatches. | 148 // Highlighting colors for TextMatches. |
| 149 virtual Color platformActiveTextSearchHighlightColor() const; | 149 virtual Color platformActiveTextSearchHighlightColor() const; |
| 150 virtual Color platformInactiveTextSearchHighlightColor() const; | 150 virtual Color platformInactiveTextSearchHighlightColor() const; |
| 151 | 151 |
| 152 virtual Color disabledTextColor(const Color& textColor, const Color& backgro
undColor) const; | 152 virtual Color disabledTextColor(const Color& textColor, const Color& backgro
undColor) const; |
| 153 | 153 |
| 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 #if ENABLE(TOUCH_EVENTS) |
| 157 static Color tapHighlightColor(); | 158 static Color tapHighlightColor(); |
| 158 virtual Color platformTapHighlightColor() const { return RenderTheme::defaul
tTapHighlightColor; } | 159 virtual Color platformTapHighlightColor() const { return RenderTheme::defaul
tTapHighlightColor; } |
| 160 #endif |
| 159 virtual void platformColorsDidChange(); | 161 virtual void platformColorsDidChange(); |
| 160 | 162 |
| 161 virtual double caretBlinkInterval() const { return 0.5; } | 163 virtual double caretBlinkInterval() const { return 0.5; } |
| 162 | 164 |
| 163 // System fonts and colors for CSS. | 165 // System fonts and colors for CSS. |
| 164 virtual void systemFont(int cssValueId, FontDescription&) const = 0; | 166 virtual void systemFont(int cssValueId, FontDescription&) const = 0; |
| 165 virtual Color systemColor(int cssValueId) const; | 167 virtual Color systemColor(int cssValueId) const; |
| 166 | 168 |
| 167 virtual int minimumMenuListSize(RenderStyle*) const { return 0; } | 169 virtual int minimumMenuListSize(RenderStyle*) const { return 0; } |
| 168 | 170 |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 mutable Color m_activeSelectionBackgroundColor; | 344 mutable Color m_activeSelectionBackgroundColor; |
| 343 mutable Color m_inactiveSelectionBackgroundColor; | 345 mutable Color m_inactiveSelectionBackgroundColor; |
| 344 mutable Color m_activeSelectionForegroundColor; | 346 mutable Color m_activeSelectionForegroundColor; |
| 345 mutable Color m_inactiveSelectionForegroundColor; | 347 mutable Color m_inactiveSelectionForegroundColor; |
| 346 | 348 |
| 347 mutable Color m_activeListBoxSelectionBackgroundColor; | 349 mutable Color m_activeListBoxSelectionBackgroundColor; |
| 348 mutable Color m_inactiveListBoxSelectionBackgroundColor; | 350 mutable Color m_inactiveListBoxSelectionBackgroundColor; |
| 349 mutable Color m_activeListBoxSelectionForegroundColor; | 351 mutable Color m_activeListBoxSelectionForegroundColor; |
| 350 mutable Color m_inactiveListBoxSelectionForegroundColor; | 352 mutable Color m_inactiveListBoxSelectionForegroundColor; |
| 351 | 353 |
| 354 #if ENABLE(TOUCH_EVENTS) |
| 352 // This color is expected to be drawn on a semi-transparent overlay, | 355 // This color is expected to be drawn on a semi-transparent overlay, |
| 353 // making it more transparent than its alpha value indicates. | 356 // making it more transparent than its alpha value indicates. |
| 354 static const RGBA32 defaultTapHighlightColor = 0x66000000; | 357 static const RGBA32 defaultTapHighlightColor = 0x66000000; |
| 358 #endif |
| 355 | 359 |
| 356 #if USE(NEW_THEME) | 360 #if USE(NEW_THEME) |
| 357 Theme* m_theme; // The platform-specific theme. | 361 Theme* m_theme; // The platform-specific theme. |
| 358 #endif | 362 #endif |
| 359 }; | 363 }; |
| 360 | 364 |
| 361 } // namespace WebCore | 365 } // namespace WebCore |
| 362 | 366 |
| 363 #endif // RenderTheme_h | 367 #endif // RenderTheme_h |
| OLD | NEW |