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