#ifndef RenderSlider_h
#define RenderSlider_h
#include "core/rendering/RenderFlexibleBox.h"
namespace WebCore {
class HTMLInputElement;
class MouseEvent;
class SliderThumbElement;
class RenderSlider FINAL : public RenderFlexibleBox {
public:
static const int defaultTrackLength;
explicit RenderSlider(HTMLInputElement*);
virtual ~RenderSlider();
bool inDragMode() const;
private:
virtual const char* renderName() const OVERRIDE { return "RenderSlider"; }
virtual bool isSlider() const OVERRIDE { return true; }
virtual int baselinePosition(FontBaseline, bool firstLine, LineDirectionMode, LinePositionMode = PositionOnContainingLine) const OVERRIDE;
virtual void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, LayoutUnit& maxLogicalWidth) const OVERRIDE;
virtual void computePreferredLogicalWidths() OVERRIDE;
virtual void layout() OVERRIDE;
SliderThumbElement* sliderThumbElement() const;
};
DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSlider, isSlider());
}
#endif