AccessibilityProgressIndicator.h [plain text]
#pragma once
#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*);
String gaugeRegionValueDescription() const;
#endif
Element* element() const override;
private:
AccessibilityRole roleValue() const override { return ProgressIndicatorRole; }
bool isProgressIndicator() const override { return true; }
String valueDescription() const override;
float valueForRange() const override;
float maxValueForRange() const override;
float minValueForRange() const override;
explicit AccessibilityProgressIndicator(RenderProgress*);
HTMLProgressElement* progressElement() const;
#if ENABLE(METER_ELEMENT)
explicit AccessibilityProgressIndicator(RenderMeter*);
HTMLMeterElement* meterElement() const;
#endif
bool computeAccessibilityIsIgnored() const override;
};
}
SPECIALIZE_TYPE_TRAITS_ACCESSIBILITY(AccessibilityProgressIndicator, isProgressIndicator())