| 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 | 134 |
| 135 // Highlighting colors for TextMatches. | 135 // Highlighting colors for TextMatches. |
| 136 virtual Color platformActiveTextSearchHighlightColor() const; | 136 virtual Color platformActiveTextSearchHighlightColor() const; |
| 137 virtual Color platformInactiveTextSearchHighlightColor() const; | 137 virtual Color platformInactiveTextSearchHighlightColor() const; |
| 138 | 138 |
| 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 Color platformDefaultCompositionBackgroundColor() const { return def
aultCompositionBackgroundColor; } |
| 144 virtual void platformColorsDidChange(); | 145 virtual void platformColorsDidChange(); |
| 145 | 146 |
| 146 virtual double caretBlinkInterval() const { return 0.5; } | 147 virtual double caretBlinkInterval() const { return 0.5; } |
| 147 | 148 |
| 148 // System fonts and colors for CSS. | 149 // System fonts and colors for CSS. |
| 149 virtual void systemFont(CSSValueID, FontDescription&) const = 0; | 150 virtual void systemFont(CSSValueID, FontDescription&) const = 0; |
| 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 |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 bool isReadOnlyControl(const RenderObject*) const; | 300 bool isReadOnlyControl(const RenderObject*) const; |
| 300 | 301 |
| 301 private: | 302 private: |
| 302 Color m_customFocusRingColor; | 303 Color m_customFocusRingColor; |
| 303 bool m_hasCustomFocusRingColor; | 304 bool m_hasCustomFocusRingColor; |
| 304 | 305 |
| 305 // This color is expected to be drawn on a semi-transparent overlay, | 306 // This color is expected to be drawn on a semi-transparent overlay, |
| 306 // making it more transparent than its alpha value indicates. | 307 // making it more transparent than its alpha value indicates. |
| 307 static const RGBA32 defaultTapHighlightColor = 0x66000000; | 308 static const RGBA32 defaultTapHighlightColor = 0x66000000; |
| 308 | 309 |
| 310 static const RGBA32 defaultCompositionBackgroundColor = 0xFFFFDD55; |
| 311 |
| 309 #if USE(NEW_THEME) | 312 #if USE(NEW_THEME) |
| 310 Theme* m_platformTheme; // The platform-specific theme. | 313 Theme* m_platformTheme; // The platform-specific theme. |
| 311 #endif | 314 #endif |
| 312 }; | 315 }; |
| 313 | 316 |
| 314 } // namespace WebCore | 317 } // namespace WebCore |
| 315 | 318 |
| 316 #endif // RenderTheme_h | 319 #endif // RenderTheme_h |
| OLD | NEW |