AccessibilityMenuListOption.h [plain text]
#ifndef AccessibilityMenuListOption_h
#define AccessibilityMenuListOption_h
#include "AccessibilityMockObject.h"
namespace WebCore {
class AccessibilityMenuListPopup;
class HTMLElement;
class AccessibilityMenuListOption : public AccessibilityMockObject {
public:
static PassRefPtr<AccessibilityMenuListOption> create() { return adoptRef(new AccessibilityMenuListOption); }
void setElement(HTMLElement*);
private:
AccessibilityMenuListOption();
virtual bool isMenuListOption() const override { return true; }
virtual AccessibilityRole roleValue() const override { return MenuListOptionRole; }
virtual bool canHaveChildren() const override { return false; }
virtual Element* actionElement() const override;
virtual bool isEnabled() const override;
virtual bool isVisible() const override;
virtual bool isOffScreen() const override;
virtual bool isSelected() const override;
virtual String nameForMSAA() const override;
virtual void setSelected(bool) override;
virtual bool canSetSelectedAttribute() const override;
virtual LayoutRect elementRect() const override;
virtual String stringValue() const override;
virtual bool computeAccessibilityIsIgnored() const override;
RefPtr<HTMLElement> m_element;
};
ACCESSIBILITY_OBJECT_TYPE_CASTS(AccessibilityMenuListOption, isMenuListOption())
}
#endif // AccessibilityMenuListOption_h