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 21 matching lines...) Expand all Loading... |
32 class LayoutObject; | 32 class LayoutObject; |
33 | 33 |
34 struct PaintInfo; | 34 struct PaintInfo; |
35 | 35 |
36 class ThemePainter { | 36 class ThemePainter { |
37 DISALLOW_NEW(); | 37 DISALLOW_NEW(); |
38 | 38 |
39 public: | 39 public: |
40 explicit ThemePainter(); | 40 explicit ThemePainter(); |
41 | 41 |
42 // This method is called to paint the widget as a background of the LayoutObje
ct. A widget's foreground, e.g., the | 42 // This method is called to paint the widget as a background of the |
43 // text of a button, is always rendered by the engine itself. The boolean ret
urn value indicates | 43 // LayoutObject. A widget's foreground, e.g., the text of a button, is always |
44 // whether the CSS border/background should also be painted. | 44 // rendered by the engine itself. The boolean return value indicates whether |
| 45 // the CSS border/background should also be painted. |
45 bool paint(const LayoutObject&, const PaintInfo&, const IntRect&); | 46 bool paint(const LayoutObject&, const PaintInfo&, const IntRect&); |
46 bool paintBorderOnly(const LayoutObject&, const PaintInfo&, const IntRect&); | 47 bool paintBorderOnly(const LayoutObject&, const PaintInfo&, const IntRect&); |
47 bool paintDecorations(const LayoutObject&, const PaintInfo&, const IntRect&); | 48 bool paintDecorations(const LayoutObject&, const PaintInfo&, const IntRect&); |
48 | 49 |
49 virtual bool paintCapsLockIndicator(const LayoutObject&, | 50 virtual bool paintCapsLockIndicator(const LayoutObject&, |
50 const PaintInfo&, | 51 const PaintInfo&, |
51 const IntRect&) { | 52 const IntRect&) { |
52 return 0; | 53 return 0; |
53 } | 54 } |
54 void paintSliderTicks(const LayoutObject&, const PaintInfo&, const IntRect&); | 55 void paintSliderTicks(const LayoutObject&, const PaintInfo&, const IntRect&); |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 const PaintInfo&, | 128 const PaintInfo&, |
128 const IntRect&); | 129 const IntRect&); |
129 bool paintRadioUsingFallbackTheme(const LayoutObject&, | 130 bool paintRadioUsingFallbackTheme(const LayoutObject&, |
130 const PaintInfo&, | 131 const PaintInfo&, |
131 const IntRect&); | 132 const IntRect&); |
132 }; | 133 }; |
133 | 134 |
134 } // namespace blink | 135 } // namespace blink |
135 | 136 |
136 #endif // ThemePainter_h | 137 #endif // ThemePainter_h |
OLD | NEW |