HTMLMeterElement.h [plain text]
#ifndef HTMLMeterElement_h
#define HTMLMeterElement_h
#if ENABLE(METER_TAG)
#include "LabelableElement.h"
namespace WebCore {
class MeterValueElement;
class HTMLMeterElement : public LabelableElement {
public:
static PassRefPtr<HTMLMeterElement> create(const QualifiedName&, Document*);
enum GaugeRegion {
GaugeRegionOptimum,
GaugeRegionSuboptimal,
GaugeRegionEvenLessGood
};
double min() const;
void setMin(double, ExceptionCode&);
double max() const;
void setMax(double, ExceptionCode&);
double value() const;
void setValue(double, ExceptionCode&);
double low() const;
void setLow(double, ExceptionCode&);
double high() const;
void setHigh(double, ExceptionCode&);
double optimum() const;
void setOptimum(double, ExceptionCode&);
double valueRatio() const;
GaugeRegion gaugeRegion() const;
bool canContainRangeEndPoint() const { return false; }
private:
HTMLMeterElement(const QualifiedName&, Document*);
virtual ~HTMLMeterElement();
virtual bool supportLabels() const OVERRIDE { return true; }
virtual bool supportsFocus() const;
virtual bool recalcWillValidate() const { return false; }
virtual RenderObject* createRenderer(RenderArena*, RenderStyle*);
virtual bool childShouldCreateRenderer(const NodeRenderingContext&) const OVERRIDE;
virtual void parseAttribute(Attribute*) OVERRIDE;
void didElementStateChange();
void createShadowSubtree();
RefPtr<MeterValueElement> m_value;
};
}
#endif
#endif