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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 | 108 |
109 // This method is called whenever a relevant state changes on a particular t
hemed object, e.g., the mouse becomes pressed | 109 // This method is called whenever a relevant state changes on a particular t
hemed object, e.g., the mouse becomes pressed |
110 // or a control becomes disabled. | 110 // or a control becomes disabled. |
111 virtual bool stateChanged(RenderObject*, ControlState) const; | 111 virtual bool stateChanged(RenderObject*, ControlState) const; |
112 | 112 |
113 bool shouldDrawDefaultFocusRing(RenderObject*) const; | 113 bool shouldDrawDefaultFocusRing(RenderObject*) const; |
114 | 114 |
115 // A method asking if the theme's controls actually care about redrawing whe
n hovered. | 115 // A method asking if the theme's controls actually care about redrawing whe
n hovered. |
116 virtual bool supportsHover(const RenderStyle*) const { return false; } | 116 virtual bool supportsHover(const RenderStyle*) const { return false; } |
117 | 117 |
118 // A method asking if the platform is able to show datalist suggestions for
a given input type. | |
119 virtual bool supportsDataListUI(const AtomicString&) const; | |
120 | |
121 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI) | 118 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI) |
122 // A method asking if the platform is able to show a calendar picker for a g
iven input type. | 119 // A method asking if the platform is able to show a calendar picker for a g
iven input type. |
123 virtual bool supportsCalendarPicker(const AtomicString&) const; | 120 virtual bool supportsCalendarPicker(const AtomicString&) const; |
124 #endif | 121 #endif |
125 | 122 |
126 // Text selection colors. | 123 // Text selection colors. |
127 Color activeSelectionBackgroundColor() const; | 124 Color activeSelectionBackgroundColor() const; |
128 Color inactiveSelectionBackgroundColor() const; | 125 Color inactiveSelectionBackgroundColor() const; |
129 Color activeSelectionForegroundColor() const; | 126 Color activeSelectionForegroundColor() const; |
130 Color inactiveSelectionForegroundColor() const; | 127 Color inactiveSelectionForegroundColor() const; |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 static const RGBA32 defaultTapHighlightColor = 0x66000000; | 312 static const RGBA32 defaultTapHighlightColor = 0x66000000; |
316 | 313 |
317 #if USE(NEW_THEME) | 314 #if USE(NEW_THEME) |
318 Theme* m_platformTheme; // The platform-specific theme. | 315 Theme* m_platformTheme; // The platform-specific theme. |
319 #endif | 316 #endif |
320 }; | 317 }; |
321 | 318 |
322 } // namespace WebCore | 319 } // namespace WebCore |
323 | 320 |
324 #endif // RenderTheme_h | 321 #endif // RenderTheme_h |
OLD | NEW |