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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 // controls that need to do this. | 86 // controls that need to do this. |
87 virtual int baselinePosition(const RenderObject*) const; | 87 virtual int baselinePosition(const RenderObject*) const; |
88 | 88 |
89 // A method for asking if a control is a container or not. Leaf controls ha
ve to have some special behavior (like | 89 // A method for asking if a control is a container or not. Leaf controls ha
ve to have some special behavior (like |
90 // the baseline position API above). | 90 // the baseline position API above). |
91 bool isControlContainer(ControlPart) const; | 91 bool isControlContainer(ControlPart) const; |
92 | 92 |
93 // Whether or not the control has been styled enough by the author to disabl
e the native appearance. | 93 // Whether or not the control has been styled enough by the author to disabl
e the native appearance. |
94 virtual bool isControlStyled(const RenderStyle*, const CachedUAStyle*) const
; | 94 virtual bool isControlStyled(const RenderStyle*, const CachedUAStyle*) const
; |
95 | 95 |
96 // Some controls may spill out of their containers (e.g., the check on an OS
X checkbox). When these controls repaint, | 96 // Some controls may spill out of their containers (e.g., the check on an OS
X checkbox). When these controls issues paint invalidations, |
97 // the theme needs to communicate this inflated rect to the engine so that i
t can invalidate the whole control. | 97 // the theme needs to communicate this inflated rect to the engine so that i
t can invalidate the whole control. |
98 virtual void adjustRepaintRect(const RenderObject*, IntRect&); | 98 virtual void adjustPaintInvalidationRect(const RenderObject*, IntRect&); |
99 | 99 |
100 // This method is called whenever a relevant state changes on a particular t
hemed object, e.g., the mouse becomes pressed | 100 // This method is called whenever a relevant state changes on a particular t
hemed object, e.g., the mouse becomes pressed |
101 // or a control becomes disabled. | 101 // or a control becomes disabled. |
102 virtual bool stateChanged(RenderObject*, ControlState) const; | 102 virtual bool stateChanged(RenderObject*, ControlState) const; |
103 | 103 |
104 bool shouldDrawDefaultFocusRing(RenderObject*) const; | 104 bool shouldDrawDefaultFocusRing(RenderObject*) const; |
105 | 105 |
106 // A method asking if the theme's controls actually care about redrawing whe
n hovered. | 106 // A method asking if the theme's controls actually care about redrawing whe
n hovered. |
107 virtual bool supportsHover(const RenderStyle*) const { return false; } | 107 virtual bool supportsHover(const RenderStyle*) const { return false; } |
108 | 108 |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
303 static const RGBA32 defaultCompositionBackgroundColor = 0xFFFFDD55; | 303 static const RGBA32 defaultCompositionBackgroundColor = 0xFFFFDD55; |
304 | 304 |
305 #if USE(NEW_THEME) | 305 #if USE(NEW_THEME) |
306 Theme* m_platformTheme; // The platform-specific theme. | 306 Theme* m_platformTheme; // The platform-specific theme. |
307 #endif | 307 #endif |
308 }; | 308 }; |
309 | 309 |
310 } // namespace blink | 310 } // namespace blink |
311 | 311 |
312 #endif // RenderTheme_h | 312 #endif // RenderTheme_h |
OLD | NEW |