#ifndef HTMLFormControlElementWithState_h
#define HTMLFormControlElementWithState_h
#include "core/html/HTMLFormControlElement.h"
namespace WebCore {
class FormControlState;
class HTMLFormControlElementWithState : public HTMLFormControlElement {
public:
virtual ~HTMLFormControlElementWithState();
virtual bool canContainRangeEndPoint() const OVERRIDE FINAL { return false; }
virtual bool shouldAutocomplete() const;
virtual bool shouldSaveAndRestoreFormControlState() const;
virtual FormControlState saveFormControlState() const;
virtual void restoreFormControlState(const FormControlState&) { }
void notifyFormStateChanged();
protected:
HTMLFormControlElementWithState(const QualifiedName& tagName, Document&, HTMLFormElement*);
virtual void finishParsingChildren() OVERRIDE;
virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE;
virtual void removedFrom(ContainerNode*) OVERRIDE;
virtual bool isFormControlElementWithState() const OVERRIDE FINAL;
};
DEFINE_TYPE_CASTS(HTMLFormControlElementWithState, FormAssociatedElement, control, control->isFormControlElementWithState(), control.isFormControlElementWithState());
}
#endif