HTMLButtonElement.h [plain text]
#ifndef HTMLButtonElement_h
#define HTMLButtonElement_h
#include "HTMLFormControlElement.h"
namespace WebCore {
class HTMLButtonElement final : public HTMLFormControlElement {
public:
static Ref<HTMLButtonElement> create(const QualifiedName&, Document&, HTMLFormElement*);
void setType(const AtomicString&);
const AtomicString& value() const;
virtual bool willRespondToMouseClickEvents() override;
private:
HTMLButtonElement(const QualifiedName& tagName, Document&, HTMLFormElement*);
enum Type { SUBMIT, RESET, BUTTON };
virtual const AtomicString& formControlType() const override;
virtual RenderPtr<RenderElement> createElementRenderer(Ref<RenderStyle>&&, const RenderTreePosition&) override;
virtual bool alwaysCreateUserAgentShadowRoot() const override { return false; }
virtual void parseAttribute(const QualifiedName&, const AtomicString&) override;
virtual bool isPresentationAttribute(const QualifiedName&) const override;
virtual void defaultEventHandler(Event*) override;
virtual bool appendFormData(FormDataList&, bool) override;
virtual bool isEnumeratable() const override { return true; }
virtual bool supportLabels() const override { return true; }
virtual bool isSuccessfulSubmitButton() const override;
virtual bool isActivatedSubmit() const override;
virtual void setActivatedSubmit(bool flag) override;
virtual void accessKeyAction(bool sendMouseEvents) override;
virtual bool isURLAttribute(const Attribute&) const override;
virtual bool canStartSelection() const override { return false; }
virtual bool isOptionalFormControl() const override { return true; }
virtual bool computeWillValidate() const override;
Type m_type;
bool m_isActivatedSubmit;
};
}
#endif