#ifndef HTMLBodyElement_h
#define HTMLBodyElement_h
#include "core/html/HTMLElement.h"
namespace WebCore {
class Document;
class HTMLBodyElement FINAL : public HTMLElement {
public:
static PassRefPtr<HTMLBodyElement> create(Document&);
virtual ~HTMLBodyElement();
DEFINE_WINDOW_ATTRIBUTE_EVENT_LISTENER(blur);
DEFINE_WINDOW_ATTRIBUTE_EVENT_LISTENER(error);
DEFINE_WINDOW_ATTRIBUTE_EVENT_LISTENER(focus);
DEFINE_WINDOW_ATTRIBUTE_EVENT_LISTENER(load);
DEFINE_WINDOW_ATTRIBUTE_EVENT_LISTENER(resize);
DEFINE_WINDOW_ATTRIBUTE_EVENT_LISTENER(scroll);
DEFINE_WINDOW_ATTRIBUTE_EVENT_LISTENER(orientationchange);
private:
explicit HTMLBodyElement(Document&);
virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERRIDE;
virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStylePropertySet*) OVERRIDE;
virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE;
virtual void didNotifySubtreeInsertionsToDocument() OVERRIDE;
virtual bool isURLAttribute(const Attribute&) const OVERRIDE;
virtual bool hasLegalLinkAttribute(const QualifiedName&) const OVERRIDE;
virtual const QualifiedName& subResourceAttributeName() const OVERRIDE;
virtual bool supportsFocus() const OVERRIDE;
virtual int scrollLeft() OVERRIDE;
virtual void setScrollLeft(int) OVERRIDE;
virtual int scrollTop() OVERRIDE;
virtual void setScrollTop(int) OVERRIDE;
virtual int scrollHeight() OVERRIDE;
virtual int scrollWidth() OVERRIDE;
};
}
#endif