AccessibilityProgressIndicator.h [plain text]
#ifndef AccessibilityProgressIndicator_h
#define AccessibilityProgressIndicator_h
#include "AccessibilityRenderObject.h"
namespace WebCore {
#if ENABLE(METER_ELEMENT)
class HTMLMeterElement;
class RenderMeter;
#endif
class HTMLProgressElement;
class RenderProgress;
class AccessibilityProgressIndicator final : public AccessibilityRenderObject {
public:
static Ref<AccessibilityProgressIndicator> create(RenderProgress*);
#if ENABLE(METER_ELEMENT)
static Ref<AccessibilityProgressIndicator> create(RenderMeter*);
#endif
virtual Element* element() const override;
private:
virtual AccessibilityRole roleValue() const override { return ProgressIndicatorRole; }
virtual bool isProgressIndicator() const override { return true; }
virtual float valueForRange() const override;
virtual float maxValueForRange() const override;
virtual float minValueForRange() const override;
explicit AccessibilityProgressIndicator(RenderProgress*);
HTMLProgressElement* progressElement() const;
#if ENABLE(METER_ELEMENT)
explicit AccessibilityProgressIndicator(RenderMeter*);
HTMLMeterElement* meterElement() const;
#endif
virtual bool computeAccessibilityIsIgnored() const override;
};
}
#endif // AccessibilityProgressIndicator_h