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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 protected: | 49 protected: |
50 LayoutTheme(); | 50 LayoutTheme(); |
51 | 51 |
52 public: | 52 public: |
53 virtual ~LayoutTheme() { } | 53 virtual ~LayoutTheme() { } |
54 | 54 |
55 // This function is to be implemented in your platform-specific theme implem
entation to hand back the | 55 // This function is to be implemented in your platform-specific theme implem
entation to hand back the |
56 // appropriate platform theme. | 56 // appropriate platform theme. |
57 static LayoutTheme& theme(); | 57 static LayoutTheme& theme(); |
58 | 58 |
59 static void setSizeIfAuto(LayoutStyle&, const IntSize&); | 59 static void setSizeIfAuto(ComputedStyle&, const IntSize&); |
60 | 60 |
61 // This method is called whenever style has been computed for an element and
the appearance | 61 // This method is called whenever style has been computed for an element and
the appearance |
62 // property has been set to a value other than "none". The theme should map
in all of the appropriate | 62 // property has been set to a value other than "none". The theme should map
in all of the appropriate |
63 // metrics and defaults given the contents of the style. This includes soph
isticated operations like | 63 // metrics and defaults given the contents of the style. This includes soph
isticated operations like |
64 // selection of control size based off the font, the disabling of appearance
when certain other properties like | 64 // selection of control size based off the font, the disabling of appearance
when certain other properties like |
65 // "border" are set, or if the appearance is not supported by the theme. | 65 // "border" are set, or if the appearance is not supported by the theme. |
66 void adjustStyle(LayoutStyle&, Element*, const AuthorStyleInfo&); | 66 void adjustStyle(ComputedStyle&, Element*, const AuthorStyleInfo&); |
67 | 67 |
68 // This method is called to paint the widget as a background of the LayoutOb
ject. A widget's foreground, e.g., the | 68 // This method is called to paint the widget as a background of the LayoutOb
ject. A widget's foreground, e.g., the |
69 // text of a button, is always rendered by the engine itself. The boolean r
eturn value indicates | 69 // text of a button, is always rendered by the engine itself. The boolean r
eturn value indicates |
70 // whether the CSS border/background should also be painted. | 70 // whether the CSS border/background should also be painted. |
71 bool paint(LayoutObject*, const PaintInfo&, const IntRect&); | 71 bool paint(LayoutObject*, const PaintInfo&, const IntRect&); |
72 bool paintBorderOnly(LayoutObject*, const PaintInfo&, const IntRect&); | 72 bool paintBorderOnly(LayoutObject*, const PaintInfo&, const IntRect&); |
73 bool paintDecorations(LayoutObject*, const PaintInfo&, const IntRect&); | 73 bool paintDecorations(LayoutObject*, const PaintInfo&, const IntRect&); |
74 | 74 |
75 // The remaining methods should be implemented by the platform-specific port
ion of the theme, e.g., | 75 // The remaining methods should be implemented by the platform-specific port
ion of the theme, e.g., |
76 // LayoutThemeMac.cpp for Mac OS X. | 76 // LayoutThemeMac.cpp for Mac OS X. |
77 | 77 |
78 // These methods return the theme's extra style sheets rules, to let each pl
atform | 78 // These methods return the theme's extra style sheets rules, to let each pl
atform |
79 // adjust the default CSS rules in html.css, quirks.css or mediaControls.css
. | 79 // adjust the default CSS rules in html.css, quirks.css or mediaControls.css
. |
80 virtual String extraDefaultStyleSheet(); | 80 virtual String extraDefaultStyleSheet(); |
81 virtual String extraQuirksStyleSheet() { return String(); } | 81 virtual String extraQuirksStyleSheet() { return String(); } |
82 virtual String extraMediaControlsStyleSheet() { return String(); } | 82 virtual String extraMediaControlsStyleSheet() { return String(); } |
83 virtual String extraFullScreenStyleSheet() { return String(); } | 83 virtual String extraFullScreenStyleSheet() { return String(); } |
84 | 84 |
85 // A method to obtain the baseline position for a "leaf" control. This will
only be used if a baseline | 85 // A method to obtain the baseline position for a "leaf" control. This will
only be used if a baseline |
86 // position cannot be determined by examining child content. Checkboxes and
radio buttons are examples of | 86 // position cannot be determined by examining child content. Checkboxes and
radio buttons are examples of |
87 // controls that need to do this. | 87 // controls that need to do this. |
88 virtual int baselinePosition(const LayoutObject*) const; | 88 virtual int baselinePosition(const LayoutObject*) const; |
89 | 89 |
90 // A method for asking if a control is a container or not. Leaf controls ha
ve to have some special behavior (like | 90 // A method for asking if a control is a container or not. Leaf controls ha
ve to have some special behavior (like |
91 // the baseline position API above). | 91 // the baseline position API above). |
92 bool isControlContainer(ControlPart) const; | 92 bool isControlContainer(ControlPart) const; |
93 | 93 |
94 // Whether or not the control has been styled enough by the author to disabl
e the native appearance. | 94 // Whether or not the control has been styled enough by the author to disabl
e the native appearance. |
95 virtual bool isControlStyled(const LayoutStyle&, const AuthorStyleInfo&) con
st; | 95 virtual bool isControlStyled(const ComputedStyle&, const AuthorStyleInfo&) c
onst; |
96 | 96 |
97 // Some controls may spill out of their containers (e.g., the check on an OS
X checkbox). When these controls issues paint invalidations, | 97 // Some controls may spill out of their containers (e.g., the check on an OS
X checkbox). When these controls issues paint invalidations, |
98 // the theme needs to communicate this inflated rect to the engine so that i
t can invalidate the whole control. | 98 // the theme needs to communicate this inflated rect to the engine so that i
t can invalidate the whole control. |
99 virtual void adjustPaintInvalidationRect(const LayoutObject*, IntRect&); | 99 virtual void adjustPaintInvalidationRect(const LayoutObject*, IntRect&); |
100 | 100 |
101 // This method is called whenever a relevant state changes on a particular t
hemed object, e.g., the mouse becomes pressed | 101 // This method is called whenever a relevant state changes on a particular t
hemed object, e.g., the mouse becomes pressed |
102 // or a control becomes disabled. | 102 // or a control becomes disabled. |
103 virtual bool stateChanged(LayoutObject*, ControlState) const; | 103 virtual bool stateChanged(LayoutObject*, ControlState) const; |
104 | 104 |
105 bool shouldDrawDefaultFocusRing(LayoutObject*) const; | 105 bool shouldDrawDefaultFocusRing(LayoutObject*) const; |
106 | 106 |
107 // A method asking if the theme's controls actually care about redrawing whe
n hovered. | 107 // A method asking if the theme's controls actually care about redrawing whe
n hovered. |
108 virtual bool supportsHover(const LayoutStyle&) const { return false; } | 108 virtual bool supportsHover(const ComputedStyle&) const { return false; } |
109 | 109 |
110 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI) | 110 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI) |
111 // A method asking if the platform is able to show a calendar picker for a g
iven input type. | 111 // A method asking if the platform is able to show a calendar picker for a g
iven input type. |
112 virtual bool supportsCalendarPicker(const AtomicString&) const; | 112 virtual bool supportsCalendarPicker(const AtomicString&) const; |
113 #endif | 113 #endif |
114 | 114 |
115 // Text selection colors. | 115 // Text selection colors. |
116 Color activeSelectionBackgroundColor() const; | 116 Color activeSelectionBackgroundColor() const; |
117 Color inactiveSelectionBackgroundColor() const; | 117 Color inactiveSelectionBackgroundColor() const; |
118 Color activeSelectionForegroundColor() const; | 118 Color activeSelectionForegroundColor() const; |
(...skipping 17 matching lines...) Expand all Loading... |
136 virtual Color platformDefaultCompositionBackgroundColor() const { return def
aultCompositionBackgroundColor; } | 136 virtual Color platformDefaultCompositionBackgroundColor() const { return def
aultCompositionBackgroundColor; } |
137 virtual void platformColorsDidChange(); | 137 virtual void platformColorsDidChange(); |
138 | 138 |
139 virtual double caretBlinkInterval() const { return 0.5; } | 139 virtual double caretBlinkInterval() const { return 0.5; } |
140 | 140 |
141 // System fonts and colors for CSS. | 141 // System fonts and colors for CSS. |
142 virtual void systemFont(CSSValueID systemFontID, FontStyle&, FontWeight&, fl
oat& fontSize, AtomicString& fontFamily) const = 0; | 142 virtual void systemFont(CSSValueID systemFontID, FontStyle&, FontWeight&, fl
oat& fontSize, AtomicString& fontFamily) const = 0; |
143 void systemFont(CSSValueID systemFontID, FontDescription&); | 143 void systemFont(CSSValueID systemFontID, FontDescription&); |
144 virtual Color systemColor(CSSValueID) const; | 144 virtual Color systemColor(CSSValueID) const; |
145 | 145 |
146 virtual int minimumMenuListSize(const LayoutStyle&) const { return 0; } | 146 virtual int minimumMenuListSize(const ComputedStyle&) const { return 0; } |
147 | 147 |
148 virtual void adjustSliderThumbSize(LayoutStyle&, Element*) const; | 148 virtual void adjustSliderThumbSize(ComputedStyle&, Element*) const; |
149 | 149 |
150 virtual int popupInternalPaddingLeft(const LayoutStyle&) const { return 0; } | 150 virtual int popupInternalPaddingLeft(const ComputedStyle&) const { return 0;
} |
151 virtual int popupInternalPaddingRight(const LayoutStyle&) const { return 0;
} | 151 virtual int popupInternalPaddingRight(const ComputedStyle&) const { return 0
; } |
152 virtual int popupInternalPaddingTop(const LayoutStyle&) const { return 0; } | 152 virtual int popupInternalPaddingTop(const ComputedStyle&) const { return 0;
} |
153 virtual int popupInternalPaddingBottom(const LayoutStyle&) const { return 0;
} | 153 virtual int popupInternalPaddingBottom(const ComputedStyle&) const { return
0; } |
154 virtual bool popupOptionSupportsTextIndent() const { return false; } | 154 virtual bool popupOptionSupportsTextIndent() const { return false; } |
155 | 155 |
156 virtual ScrollbarControlSize scrollbarControlSizeForPart(ControlPart) { retu
rn RegularScrollbar; } | 156 virtual ScrollbarControlSize scrollbarControlSizeForPart(ControlPart) { retu
rn RegularScrollbar; } |
157 | 157 |
158 // Method for painting the caps lock indicator | 158 // Method for painting the caps lock indicator |
159 virtual bool paintCapsLockIndicator(LayoutObject*, const PaintInfo&, const I
ntRect&) { return 0; }; | 159 virtual bool paintCapsLockIndicator(LayoutObject*, const PaintInfo&, const I
ntRect&) { return 0; }; |
160 | 160 |
161 // Returns the repeat interval of the animation for the progress bar. | 161 // Returns the repeat interval of the animation for the progress bar. |
162 virtual double animationRepeatIntervalForProgressBar() const; | 162 virtual double animationRepeatIntervalForProgressBar() const; |
163 // Returns the duration of the animation for the progress bar. | 163 // Returns the duration of the animation for the progress bar. |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 virtual Color platformInactiveSelectionBackgroundColor() const; | 201 virtual Color platformInactiveSelectionBackgroundColor() const; |
202 virtual Color platformActiveSelectionForegroundColor() const; | 202 virtual Color platformActiveSelectionForegroundColor() const; |
203 virtual Color platformInactiveSelectionForegroundColor() const; | 203 virtual Color platformInactiveSelectionForegroundColor() const; |
204 | 204 |
205 virtual Color platformActiveListBoxSelectionBackgroundColor() const; | 205 virtual Color platformActiveListBoxSelectionBackgroundColor() const; |
206 virtual Color platformInactiveListBoxSelectionBackgroundColor() const; | 206 virtual Color platformInactiveListBoxSelectionBackgroundColor() const; |
207 virtual Color platformActiveListBoxSelectionForegroundColor() const; | 207 virtual Color platformActiveListBoxSelectionForegroundColor() const; |
208 virtual Color platformInactiveListBoxSelectionForegroundColor() const; | 208 virtual Color platformInactiveListBoxSelectionForegroundColor() const; |
209 | 209 |
210 // A method asking if the theme is able to draw the focus ring. | 210 // A method asking if the theme is able to draw the focus ring. |
211 virtual bool supportsFocusRing(const LayoutStyle&) const; | 211 virtual bool supportsFocusRing(const ComputedStyle&) const; |
212 | 212 |
213 #if !USE(NEW_THEME) | 213 #if !USE(NEW_THEME) |
214 // Methods for each appearance value. | 214 // Methods for each appearance value. |
215 virtual void adjustCheckboxStyle(LayoutStyle&, Element*) const; | 215 virtual void adjustCheckboxStyle(ComputedStyle&, Element*) const; |
216 virtual bool paintCheckbox(LayoutObject*, const PaintInfo&, const IntRect&)
{ return true; } | 216 virtual bool paintCheckbox(LayoutObject*, const PaintInfo&, const IntRect&)
{ return true; } |
217 virtual void setCheckboxSize(LayoutStyle&) const { } | 217 virtual void setCheckboxSize(ComputedStyle&) const { } |
218 | 218 |
219 virtual void adjustRadioStyle(LayoutStyle&, Element*) const; | 219 virtual void adjustRadioStyle(ComputedStyle&, Element*) const; |
220 virtual bool paintRadio(LayoutObject*, const PaintInfo&, const IntRect&) { r
eturn true; } | 220 virtual bool paintRadio(LayoutObject*, const PaintInfo&, const IntRect&) { r
eturn true; } |
221 virtual void setRadioSize(LayoutStyle&) const { } | 221 virtual void setRadioSize(ComputedStyle&) const { } |
222 | 222 |
223 virtual void adjustButtonStyle(LayoutStyle&, Element*) const; | 223 virtual void adjustButtonStyle(ComputedStyle&, Element*) const; |
224 virtual bool paintButton(LayoutObject*, const PaintInfo&, const IntRect&) {
return true; } | 224 virtual bool paintButton(LayoutObject*, const PaintInfo&, const IntRect&) {
return true; } |
225 | 225 |
226 virtual void adjustInnerSpinButtonStyle(LayoutStyle&, Element*) const; | 226 virtual void adjustInnerSpinButtonStyle(ComputedStyle&, Element*) const; |
227 virtual bool paintInnerSpinButton(LayoutObject*, const PaintInfo&, const Int
Rect&) { return true; } | 227 virtual bool paintInnerSpinButton(LayoutObject*, const PaintInfo&, const Int
Rect&) { return true; } |
228 #endif | 228 #endif |
229 | 229 |
230 virtual bool paintTextField(LayoutObject*, const PaintInfo&, const IntRect&)
{ return true; } | 230 virtual bool paintTextField(LayoutObject*, const PaintInfo&, const IntRect&)
{ return true; } |
231 | 231 |
232 virtual bool paintTextArea(LayoutObject*, const PaintInfo&, const IntRect&)
{ return true; } | 232 virtual bool paintTextArea(LayoutObject*, const PaintInfo&, const IntRect&)
{ return true; } |
233 | 233 |
234 virtual void adjustMenuListStyle(LayoutStyle&, Element*) const; | 234 virtual void adjustMenuListStyle(ComputedStyle&, Element*) const; |
235 virtual bool paintMenuList(LayoutObject*, const PaintInfo&, const IntRect&)
{ return true; } | 235 virtual bool paintMenuList(LayoutObject*, const PaintInfo&, const IntRect&)
{ return true; } |
236 | 236 |
237 virtual void adjustMenuListButtonStyle(LayoutStyle&, Element*) const; | 237 virtual void adjustMenuListButtonStyle(ComputedStyle&, Element*) const; |
238 virtual bool paintMenuListButton(LayoutObject*, const PaintInfo&, const IntR
ect&) { return true; } | 238 virtual bool paintMenuListButton(LayoutObject*, const PaintInfo&, const IntR
ect&) { return true; } |
239 | 239 |
240 virtual bool paintMeter(LayoutObject*, const PaintInfo&, const IntRect&); | 240 virtual bool paintMeter(LayoutObject*, const PaintInfo&, const IntRect&); |
241 | 241 |
242 virtual bool paintProgressBar(LayoutObject*, const PaintInfo&, const IntRect
&) { return true; } | 242 virtual bool paintProgressBar(LayoutObject*, const PaintInfo&, const IntRect
&) { return true; } |
243 | 243 |
244 virtual bool paintSliderTrack(LayoutObject*, const PaintInfo&, const IntRect
&) { return true; } | 244 virtual bool paintSliderTrack(LayoutObject*, const PaintInfo&, const IntRect
&) { return true; } |
245 | 245 |
246 virtual void adjustSliderThumbStyle(LayoutStyle&, Element*) const; | 246 virtual void adjustSliderThumbStyle(ComputedStyle&, Element*) const; |
247 virtual bool paintSliderThumb(LayoutObject*, const PaintInfo&, const IntRect
&) { return true; } | 247 virtual bool paintSliderThumb(LayoutObject*, const PaintInfo&, const IntRect
&) { return true; } |
248 | 248 |
249 virtual void adjustSearchFieldStyle(LayoutStyle&, Element*) const; | 249 virtual void adjustSearchFieldStyle(ComputedStyle&, Element*) const; |
250 virtual bool paintSearchField(LayoutObject*, const PaintInfo&, const IntRect
&) { return true; } | 250 virtual bool paintSearchField(LayoutObject*, const PaintInfo&, const IntRect
&) { return true; } |
251 | 251 |
252 virtual void adjustSearchFieldCancelButtonStyle(LayoutStyle&, Element*) cons
t; | 252 virtual void adjustSearchFieldCancelButtonStyle(ComputedStyle&, Element*) co
nst; |
253 virtual bool paintSearchFieldCancelButton(LayoutObject*, const PaintInfo&, c
onst IntRect&) { return true; } | 253 virtual bool paintSearchFieldCancelButton(LayoutObject*, const PaintInfo&, c
onst IntRect&) { return true; } |
254 | 254 |
255 virtual void adjustSearchFieldDecorationStyle(LayoutStyle&, Element*) const; | 255 virtual void adjustSearchFieldDecorationStyle(ComputedStyle&, Element*) cons
t; |
256 virtual bool paintSearchFieldDecoration(LayoutObject*, const PaintInfo&, con
st IntRect&) { return true; } | 256 virtual bool paintSearchFieldDecoration(LayoutObject*, const PaintInfo&, con
st IntRect&) { return true; } |
257 | 257 |
258 virtual void adjustSearchFieldResultsDecorationStyle(LayoutStyle&, Element*)
const; | 258 virtual void adjustSearchFieldResultsDecorationStyle(ComputedStyle&, Element
*) const; |
259 virtual bool paintSearchFieldResultsDecoration(LayoutObject*, const PaintInf
o&, const IntRect&) { return true; } | 259 virtual bool paintSearchFieldResultsDecoration(LayoutObject*, const PaintInf
o&, const IntRect&) { return true; } |
260 | 260 |
261 virtual bool paintMediaFullscreenButton(LayoutObject*, const PaintInfo&, con
st IntRect&) { return true; } | 261 virtual bool paintMediaFullscreenButton(LayoutObject*, const PaintInfo&, con
st IntRect&) { return true; } |
262 virtual bool paintMediaPlayButton(LayoutObject*, const PaintInfo&, const Int
Rect&) { return true; } | 262 virtual bool paintMediaPlayButton(LayoutObject*, const PaintInfo&, const Int
Rect&) { return true; } |
263 virtual bool paintMediaOverlayPlayButton(LayoutObject*, const PaintInfo&, co
nst IntRect&) { return true; } | 263 virtual bool paintMediaOverlayPlayButton(LayoutObject*, const PaintInfo&, co
nst IntRect&) { return true; } |
264 virtual bool paintMediaMuteButton(LayoutObject*, const PaintInfo&, const Int
Rect&) { return true; } | 264 virtual bool paintMediaMuteButton(LayoutObject*, const PaintInfo&, const Int
Rect&) { return true; } |
265 virtual bool paintMediaSliderTrack(LayoutObject*, const PaintInfo&, const In
tRect&) { return true; } | 265 virtual bool paintMediaSliderTrack(LayoutObject*, const PaintInfo&, const In
tRect&) { return true; } |
266 virtual bool paintMediaSliderThumb(LayoutObject*, const PaintInfo&, const In
tRect&) { return true; } | 266 virtual bool paintMediaSliderThumb(LayoutObject*, const PaintInfo&, const In
tRect&) { return true; } |
267 virtual bool paintMediaVolumeSliderContainer(LayoutObject*, const PaintInfo&
, const IntRect&) { return true; } | 267 virtual bool paintMediaVolumeSliderContainer(LayoutObject*, const PaintInfo&
, const IntRect&) { return true; } |
268 virtual bool paintMediaVolumeSliderTrack(LayoutObject*, const PaintInfo&, co
nst IntRect&) { return true; } | 268 virtual bool paintMediaVolumeSliderTrack(LayoutObject*, const PaintInfo&, co
nst IntRect&) { return true; } |
269 virtual bool paintMediaVolumeSliderThumb(LayoutObject*, const PaintInfo&, co
nst IntRect&) { return true; } | 269 virtual bool paintMediaVolumeSliderThumb(LayoutObject*, const PaintInfo&, co
nst IntRect&) { return true; } |
270 virtual bool paintMediaToggleClosedCaptionsButton(LayoutObject*, const Paint
Info&, const IntRect&) { return true; } | 270 virtual bool paintMediaToggleClosedCaptionsButton(LayoutObject*, const Paint
Info&, const IntRect&) { return true; } |
271 virtual bool paintMediaCastButton(LayoutObject*, const PaintInfo&, const Int
Rect&) { return true; }; | 271 virtual bool paintMediaCastButton(LayoutObject*, const PaintInfo&, const Int
Rect&) { return true; }; |
272 virtual bool paintMediaControlsBackground(LayoutObject*, const PaintInfo&, c
onst IntRect&) { return true; } | 272 virtual bool paintMediaControlsBackground(LayoutObject*, const PaintInfo&, c
onst IntRect&) { return true; } |
273 virtual bool paintMediaCurrentTime(LayoutObject*, const PaintInfo&, const In
tRect&) { return true; } | 273 virtual bool paintMediaCurrentTime(LayoutObject*, const PaintInfo&, const In
tRect&) { return true; } |
274 virtual bool paintMediaTimeRemaining(LayoutObject*, const PaintInfo&, const
IntRect&) { return true; } | 274 virtual bool paintMediaTimeRemaining(LayoutObject*, const PaintInfo&, const
IntRect&) { return true; } |
275 virtual bool paintMediaFullScreenVolumeSliderTrack(LayoutObject*, const Pain
tInfo&, const IntRect&) { return true; } | 275 virtual bool paintMediaFullScreenVolumeSliderTrack(LayoutObject*, const Pain
tInfo&, const IntRect&) { return true; } |
276 virtual bool paintMediaFullScreenVolumeSliderThumb(LayoutObject*, const Pain
tInfo&, const IntRect&) { return true; } | 276 virtual bool paintMediaFullScreenVolumeSliderThumb(LayoutObject*, const Pain
tInfo&, const IntRect&) { return true; } |
277 | 277 |
278 virtual bool shouldUseFallbackTheme(const LayoutStyle&) const; | 278 virtual bool shouldUseFallbackTheme(const ComputedStyle&) const; |
279 void adjustStyleUsingFallbackTheme(LayoutStyle&, Element*); | 279 void adjustStyleUsingFallbackTheme(ComputedStyle&, Element*); |
280 bool paintUsingFallbackTheme(LayoutObject*, const PaintInfo&, const IntRect&
); | 280 bool paintUsingFallbackTheme(LayoutObject*, const PaintInfo&, const IntRect&
); |
281 void adjustCheckboxStyleUsingFallbackTheme(LayoutStyle&, Element*) const; | 281 void adjustCheckboxStyleUsingFallbackTheme(ComputedStyle&, Element*) const; |
282 bool paintCheckboxUsingFallbackTheme(LayoutObject*, const PaintInfo&, const
IntRect&); | 282 bool paintCheckboxUsingFallbackTheme(LayoutObject*, const PaintInfo&, const
IntRect&); |
283 void adjustRadioStyleUsingFallbackTheme(LayoutStyle&, Element*) const; | 283 void adjustRadioStyleUsingFallbackTheme(ComputedStyle&, Element*) const; |
284 bool paintRadioUsingFallbackTheme(LayoutObject*, const PaintInfo&, const Int
Rect&); | 284 bool paintRadioUsingFallbackTheme(LayoutObject*, const PaintInfo&, const Int
Rect&); |
285 | 285 |
286 public: | 286 public: |
287 // Methods for state querying | 287 // Methods for state querying |
288 ControlStates controlStatesForRenderer(const LayoutObject*) const; | 288 ControlStates controlStatesForRenderer(const LayoutObject*) const; |
289 bool isActive(const LayoutObject*) const; | 289 bool isActive(const LayoutObject*) const; |
290 bool isChecked(const LayoutObject*) const; | 290 bool isChecked(const LayoutObject*) const; |
291 bool isIndeterminate(const LayoutObject*) const; | 291 bool isIndeterminate(const LayoutObject*) const; |
292 bool isEnabled(const LayoutObject*) const; | 292 bool isEnabled(const LayoutObject*) const; |
293 bool isFocused(const LayoutObject*) const; | 293 bool isFocused(const LayoutObject*) const; |
(...skipping 14 matching lines...) Expand all Loading... |
308 static const RGBA32 defaultCompositionBackgroundColor = 0xFFFFDD55; | 308 static const RGBA32 defaultCompositionBackgroundColor = 0xFFFFDD55; |
309 | 309 |
310 #if USE(NEW_THEME) | 310 #if USE(NEW_THEME) |
311 Theme* m_platformTheme; // The platform-specific theme. | 311 Theme* m_platformTheme; // The platform-specific theme. |
312 #endif | 312 #endif |
313 }; | 313 }; |
314 | 314 |
315 } // namespace blink | 315 } // namespace blink |
316 | 316 |
317 #endif // LayoutTheme_h | 317 #endif // LayoutTheme_h |
OLD | NEW |