2 * Copyright (C) 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
5 #ifndef RENDER_THEME_IPHONE_H
6 #define RENDER_THEME_IPHONE_H
9 #include "RenderTheme.h"
14 class GraphicsContext
;
16 class RenderThemeIPhone
: public RenderTheme
{
19 virtual int popupInternalPaddingRight(RenderStyle
*) const;
23 virtual int baselinePosition(const RenderObject
* o
) const;
25 virtual bool isControlStyled(const RenderStyle
* style
, const BorderData
& border
, const FillLayer
& background
, const Color
& backgroundColor
) const;
27 // Methods for each appearance value.
28 virtual void adjustCheckboxStyle(CSSStyleSelector
*, RenderStyle
*, Element
*) const;
29 virtual bool paintCheckboxDecorations(RenderObject
*, const RenderObject::PaintInfo
&, const IntRect
&);
31 virtual void adjustRadioStyle(CSSStyleSelector
*, RenderStyle
*, Element
*) const;
32 virtual bool paintRadioDecorations(RenderObject
*, const RenderObject::PaintInfo
&, const IntRect
&);
34 virtual bool paintButtonDecorations(RenderObject
* o
, const RenderObject::PaintInfo
& i
, const IntRect
& r
);
35 virtual bool paintPushButtonDecorations(RenderObject
* o
, const RenderObject::PaintInfo
& i
, const IntRect
& r
);
36 virtual void setButtonSize(RenderStyle
*) const;
38 virtual bool paintTextFieldDecorations(RenderObject
*, const RenderObject::PaintInfo
&, const IntRect
&);
40 virtual bool paintTextAreaDecorations(RenderObject
*, const RenderObject::PaintInfo
&, const IntRect
&);
42 virtual void adjustMenuListButtonStyle(CSSStyleSelector
*, RenderStyle
*, Element
*) const;
43 virtual bool paintMenuListButtonDecorations(RenderObject
*, const RenderObject::PaintInfo
&, const IntRect
&);
56 Color
* shadowColor() const;
57 IPhoneGradientRef
gradientWithName(IPhoneGradientName aGradientName
) const;
58 FloatRect
addRoundedBorderClip(const FloatRect
& aRect
, const BorderData
&, GraphicsContext
* aContext
);
64 #endif // RENDER_THEME_IPHONE_H