| 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 virtual Color platformDefaultCompositionBackgroundColor() const { return def
aultCompositionBackgroundColor; } | 135 virtual Color platformDefaultCompositionBackgroundColor() const { return def
aultCompositionBackgroundColor; } |
| 136 virtual void platformColorsDidChange(); | 136 virtual void platformColorsDidChange(); |
| 137 | 137 |
| 138 virtual double caretBlinkInterval() const { return 0.5; } | 138 virtual double caretBlinkInterval() const { return 0.5; } |
| 139 | 139 |
| 140 // System fonts and colors for CSS. | 140 // System fonts and colors for CSS. |
| 141 virtual void systemFont(CSSValueID systemFontID, FontStyle&, FontWeight&, fl
oat& fontSize, AtomicString& fontFamily) const = 0; | 141 virtual void systemFont(CSSValueID systemFontID, FontStyle&, FontWeight&, fl
oat& fontSize, AtomicString& fontFamily) const = 0; |
| 142 void systemFont(CSSValueID systemFontID, FontDescription&); | 142 void systemFont(CSSValueID systemFontID, FontDescription&); |
| 143 virtual Color systemColor(CSSValueID) const; | 143 virtual Color systemColor(CSSValueID) const; |
| 144 | 144 |
| 145 virtual int minimumMenuListSize(RenderStyle*) const { return 0; } | 145 virtual int minimumMenuListSize(const RenderStyle*) const { return 0; } |
| 146 | 146 |
| 147 virtual void adjustSliderThumbSize(RenderStyle*, Element*) const; | 147 virtual void adjustSliderThumbSize(RenderStyle*, Element*) const; |
| 148 | 148 |
| 149 virtual int popupInternalPaddingLeft(RenderStyle*) const { return 0; } | 149 virtual int popupInternalPaddingLeft(const RenderStyle*) const { return 0; } |
| 150 virtual int popupInternalPaddingRight(RenderStyle*) const { return 0; } | 150 virtual int popupInternalPaddingRight(const RenderStyle*) const { return 0;
} |
| 151 virtual int popupInternalPaddingTop(RenderStyle*) const { return 0; } | 151 virtual int popupInternalPaddingTop(const RenderStyle*) const { return 0; } |
| 152 virtual int popupInternalPaddingBottom(RenderStyle*) const { return 0; } | 152 virtual int popupInternalPaddingBottom(const RenderStyle*) const { return 0;
} |
| 153 virtual bool popupOptionSupportsTextIndent() const { return false; } | 153 virtual bool popupOptionSupportsTextIndent() const { return false; } |
| 154 | 154 |
| 155 virtual ScrollbarControlSize scrollbarControlSizeForPart(ControlPart) { retu
rn RegularScrollbar; } | 155 virtual ScrollbarControlSize scrollbarControlSizeForPart(ControlPart) { retu
rn RegularScrollbar; } |
| 156 | 156 |
| 157 // Method for painting the caps lock indicator | 157 // Method for painting the caps lock indicator |
| 158 virtual bool paintCapsLockIndicator(RenderObject*, const PaintInfo&, const I
ntRect&) { return 0; }; | 158 virtual bool paintCapsLockIndicator(RenderObject*, const PaintInfo&, const I
ntRect&) { return 0; }; |
| 159 | 159 |
| 160 // Returns the repeat interval of the animation for the progress bar. | 160 // Returns the repeat interval of the animation for the progress bar. |
| 161 virtual double animationRepeatIntervalForProgressBar(RenderProgress*) const; | 161 virtual double animationRepeatIntervalForProgressBar(RenderProgress*) const; |
| 162 // Returns the duration of the animation for the progress bar. | 162 // Returns the duration of the animation for the progress bar. |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 virtual bool paintMediaVolumeSliderTrack(RenderObject*, const PaintInfo&, co
nst IntRect&) { return true; } | 267 virtual bool paintMediaVolumeSliderTrack(RenderObject*, const PaintInfo&, co
nst IntRect&) { return true; } |
| 268 virtual bool paintMediaVolumeSliderThumb(RenderObject*, const PaintInfo&, co
nst IntRect&) { return true; } | 268 virtual bool paintMediaVolumeSliderThumb(RenderObject*, const PaintInfo&, co
nst IntRect&) { return true; } |
| 269 virtual bool paintMediaToggleClosedCaptionsButton(RenderObject*, const Paint
Info&, const IntRect&) { return true; } | 269 virtual bool paintMediaToggleClosedCaptionsButton(RenderObject*, const Paint
Info&, const IntRect&) { return true; } |
| 270 virtual bool paintMediaCastButton(RenderObject*, const PaintInfo&, const Int
Rect&) { return true; }; | 270 virtual bool paintMediaCastButton(RenderObject*, const PaintInfo&, const Int
Rect&) { return true; }; |
| 271 virtual bool paintMediaControlsBackground(RenderObject*, const PaintInfo&, c
onst IntRect&) { return true; } | 271 virtual bool paintMediaControlsBackground(RenderObject*, const PaintInfo&, c
onst IntRect&) { return true; } |
| 272 virtual bool paintMediaCurrentTime(RenderObject*, const PaintInfo&, const In
tRect&) { return true; } | 272 virtual bool paintMediaCurrentTime(RenderObject*, const PaintInfo&, const In
tRect&) { return true; } |
| 273 virtual bool paintMediaTimeRemaining(RenderObject*, const PaintInfo&, const
IntRect&) { return true; } | 273 virtual bool paintMediaTimeRemaining(RenderObject*, const PaintInfo&, const
IntRect&) { return true; } |
| 274 virtual bool paintMediaFullScreenVolumeSliderTrack(RenderObject*, const Pain
tInfo&, const IntRect&) { return true; } | 274 virtual bool paintMediaFullScreenVolumeSliderTrack(RenderObject*, const Pain
tInfo&, const IntRect&) { return true; } |
| 275 virtual bool paintMediaFullScreenVolumeSliderThumb(RenderObject*, const Pain
tInfo&, const IntRect&) { return true; } | 275 virtual bool paintMediaFullScreenVolumeSliderThumb(RenderObject*, const Pain
tInfo&, const IntRect&) { return true; } |
| 276 | 276 |
| 277 virtual bool shouldUseFallbackTheme(RenderStyle*) const; | 277 virtual bool shouldUseFallbackTheme(const RenderStyle*) const; |
| 278 void adjustStyleUsingFallbackTheme(RenderStyle*, Element*); | 278 void adjustStyleUsingFallbackTheme(RenderStyle*, Element*); |
| 279 bool paintUsingFallbackTheme(RenderObject*, const PaintInfo&, const IntRect&
); | 279 bool paintUsingFallbackTheme(RenderObject*, const PaintInfo&, const IntRect&
); |
| 280 void adjustCheckboxStyleUsingFallbackTheme(RenderStyle*, Element*) const; | 280 void adjustCheckboxStyleUsingFallbackTheme(RenderStyle*, Element*) const; |
| 281 bool paintCheckboxUsingFallbackTheme(RenderObject*, const PaintInfo&, const
IntRect&); | 281 bool paintCheckboxUsingFallbackTheme(RenderObject*, const PaintInfo&, const
IntRect&); |
| 282 void adjustRadioStyleUsingFallbackTheme(RenderStyle*, Element*) const; | 282 void adjustRadioStyleUsingFallbackTheme(RenderStyle*, Element*) const; |
| 283 bool paintRadioUsingFallbackTheme(RenderObject*, const PaintInfo&, const Int
Rect&); | 283 bool paintRadioUsingFallbackTheme(RenderObject*, const PaintInfo&, const Int
Rect&); |
| 284 | 284 |
| 285 public: | 285 public: |
| 286 // Methods for state querying | 286 // Methods for state querying |
| 287 ControlStates controlStatesForRenderer(const RenderObject*) const; | 287 ControlStates controlStatesForRenderer(const RenderObject*) const; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 307 static const RGBA32 defaultCompositionBackgroundColor = 0xFFFFDD55; | 307 static const RGBA32 defaultCompositionBackgroundColor = 0xFFFFDD55; |
| 308 | 308 |
| 309 #if USE(NEW_THEME) | 309 #if USE(NEW_THEME) |
| 310 Theme* m_platformTheme; // The platform-specific theme. | 310 Theme* m_platformTheme; // The platform-specific theme. |
| 311 #endif | 311 #endif |
| 312 }; | 312 }; |
| 313 | 313 |
| 314 } // namespace blink | 314 } // namespace blink |
| 315 | 315 |
| 316 #endif // LayoutTheme_h | 316 #endif // LayoutTheme_h |
| OLD | NEW |