OLD | NEW |
1 /* | 1 /* |
2 * This file is part of the WebKit project. | 2 * This file is part of the WebKit project. |
3 * | 3 * |
4 * Copyright (C) 2006 Apple Computer, Inc. | 4 * Copyright (C) 2006 Apple Computer, Inc. |
5 * Copyright (C) 2006 Michael Emmel mike.emmel@gmail.com | 5 * Copyright (C) 2006 Michael Emmel mike.emmel@gmail.com |
6 * Copyright (C) 2007 Holger Hans Peter Freyther | 6 * Copyright (C) 2007 Holger Hans Peter Freyther |
7 * Copyright (C) 2007 Alp Toker <alp@atoker.com> | 7 * Copyright (C) 2007 Alp Toker <alp@atoker.com> |
8 * Copyright (C) 2008, 2009 Google, Inc. | 8 * Copyright (C) 2008, 2009 Google, Inc. |
9 * All rights reserved. | 9 * All rights reserved. |
10 * Copyright (C) 2009 Kenneth Rohde Christiansen | 10 * Copyright (C) 2009 Kenneth Rohde Christiansen |
(...skipping 17 matching lines...) Expand all Loading... |
28 | 28 |
29 #ifndef ThemePainterDefault_h | 29 #ifndef ThemePainterDefault_h |
30 #define ThemePainterDefault_h | 30 #define ThemePainterDefault_h |
31 | 31 |
32 #include "core/paint/ThemePainter.h" | 32 #include "core/paint/ThemePainter.h" |
33 #include "public/platform/WebThemeEngine.h" | 33 #include "public/platform/WebThemeEngine.h" |
34 | 34 |
35 namespace blink { | 35 namespace blink { |
36 | 36 |
37 class LayoutBox; | 37 class LayoutBox; |
| 38 class LayoutThemeDefault; |
38 | 39 |
39 class ThemePainterDefault final : public ThemePainter { | 40 class ThemePainterDefault final : public ThemePainter { |
40 public: | 41 public: |
41 ThemePainterDefault(); | 42 explicit ThemePainterDefault(LayoutThemeDefault&); |
42 | 43 |
43 private: | 44 private: |
44 bool paintCheckbox(const LayoutObject&, | 45 bool paintCheckbox(const LayoutObject&, |
45 const PaintInfo&, | 46 const PaintInfo&, |
46 const IntRect&) override; | 47 const IntRect&) override; |
47 bool paintRadio(const LayoutObject&, | 48 bool paintRadio(const LayoutObject&, |
48 const PaintInfo&, | 49 const PaintInfo&, |
49 const IntRect&) override; | 50 const IntRect&) override; |
50 bool paintButton(const LayoutObject&, | 51 bool paintButton(const LayoutObject&, |
51 const PaintInfo&, | 52 const PaintInfo&, |
(...skipping 25 matching lines...) Expand all Loading... |
77 bool paintSearchField(const LayoutObject&, | 78 bool paintSearchField(const LayoutObject&, |
78 const PaintInfo&, | 79 const PaintInfo&, |
79 const IntRect&) override; | 80 const IntRect&) override; |
80 bool paintSearchFieldCancelButton(const LayoutObject&, | 81 bool paintSearchFieldCancelButton(const LayoutObject&, |
81 const PaintInfo&, | 82 const PaintInfo&, |
82 const IntRect&) override; | 83 const IntRect&) override; |
83 | 84 |
84 void setupMenuListArrow(const LayoutBox&, | 85 void setupMenuListArrow(const LayoutBox&, |
85 const IntRect&, | 86 const IntRect&, |
86 WebThemeEngine::ExtraParams&); | 87 WebThemeEngine::ExtraParams&); |
| 88 |
| 89 // ThemePaintDefault is a part object of m_theme. |
| 90 LayoutThemeDefault& m_theme; |
87 }; | 91 }; |
88 | 92 |
89 } // namespace blink | 93 } // namespace blink |
90 | 94 |
91 #endif // ThemePainerDefault_h | 95 #endif // ThemePainerDefault_h |
OLD | NEW |