15c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)/* 25c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 35c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * (C) 1999 Antti Koivisto (koivisto@kde.org) 45c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * (C) 2000 Simon Hausmann <hausmann@kde.org> 55c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * Copyright (C) 2004, 2006, 2009, 2010 Apple Inc. All rights reserved. 65c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * 75c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * This library is free software; you can redistribute it and/or 85c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * modify it under the terms of the GNU Library General Public 95c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * License as published by the Free Software Foundation; either 105c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * version 2 of the License, or (at your option) any later version. 115c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * 125c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * This library is distributed in the hope that it will be useful, 135c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * but WITHOUT ANY WARRANTY; without even the implied warranty of 145c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 155c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * Library General Public License for more details. 165c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * 175c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * You should have received a copy of the GNU Library General Public License 185c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * along with this library; see the file COPYING.LIB. If not, write to 195c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 205c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * Boston, MA 02110-1301, USA. 215c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * 225c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) */ 235c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) 245c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)#ifndef HTMLBodyElement_h 255c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)#define HTMLBodyElement_h 265c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) 275d92fedcae5e801a8b224de090094f2d9df0b54aTorne (Richard Coles)#include "core/dom/Document.h" 2853e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles)#include "core/html/HTMLElement.h" 295c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) 30c1847b1379d12d0e05df27436bf19a9b1bf12deaTorne (Richard Coles)namespace blink { 315c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) 325c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)class Document; 335c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) 3453e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles)class HTMLBodyElement FINAL : public HTMLElement { 357242dc3dbeb210b5e876a3c42d1ec1a667fc621aPrimiano Tucci DEFINE_WRAPPERTYPEINFO(); 365c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)public: 375d92fedcae5e801a8b224de090094f2d9df0b54aTorne (Richard Coles) DECLARE_NODE_FACTORY(HTMLBodyElement); 385c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) virtual ~HTMLBodyElement(); 395c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) 405c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) DEFINE_WINDOW_ATTRIBUTE_EVENT_LISTENER(blur); 415c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) DEFINE_WINDOW_ATTRIBUTE_EVENT_LISTENER(error); 425c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) DEFINE_WINDOW_ATTRIBUTE_EVENT_LISTENER(focus); 435c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) DEFINE_WINDOW_ATTRIBUTE_EVENT_LISTENER(load); 4409380295ba73501a205346becac22c6978e4671dTorne (Richard Coles) DEFINE_WINDOW_ATTRIBUTE_EVENT_LISTENER(resize); 45bfe3590b1806e3ff18f46ee3af5d4b83078f305aTorne (Richard Coles) DEFINE_WINDOW_ATTRIBUTE_EVENT_LISTENER(scroll); 465c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) DEFINE_WINDOW_ATTRIBUTE_EVENT_LISTENER(orientationchange); 475c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) 485c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)private: 4951b2906e11752df6c18351cf520e30522d3b53a1Torne (Richard Coles) explicit HTMLBodyElement(Document&); 505c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) 51926b001d589ce2f10facb93dd4b87578ea35a855Torne (Richard Coles) virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERRIDE; 525c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; 53926b001d589ce2f10facb93dd4b87578ea35a855Torne (Richard Coles) virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStylePropertySet*) OVERRIDE; 545c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) 555c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; 5607a852d8c1953036774d8f3b65d18dcfea3bb4a2Ben Murdoch virtual void didNotifySubtreeInsertionsToDocument() OVERRIDE; 5702772c6a72f1ee0b226341a4f4439970c29fc861Ben Murdoch 585c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) virtual bool isURLAttribute(const Attribute&) const OVERRIDE; 5943e7502580f146aa5b3db8267ba6dbb5c733a489Torne (Richard Coles) virtual bool hasLegalLinkAttribute(const QualifiedName&) const OVERRIDE; 6043e7502580f146aa5b3db8267ba6dbb5c733a489Torne (Richard Coles) virtual const QualifiedName& subResourceAttributeName() const OVERRIDE; 6102772c6a72f1ee0b226341a4f4439970c29fc861Ben Murdoch 6209380295ba73501a205346becac22c6978e4671dTorne (Richard Coles) virtual bool supportsFocus() const OVERRIDE; 6302772c6a72f1ee0b226341a4f4439970c29fc861Ben Murdoch 647242dc3dbeb210b5e876a3c42d1ec1a667fc621aPrimiano Tucci virtual double scrollLeft() OVERRIDE; 657242dc3dbeb210b5e876a3c42d1ec1a667fc621aPrimiano Tucci virtual void setScrollLeft(double) OVERRIDE; 6602772c6a72f1ee0b226341a4f4439970c29fc861Ben Murdoch 677242dc3dbeb210b5e876a3c42d1ec1a667fc621aPrimiano Tucci virtual double scrollTop() OVERRIDE; 687242dc3dbeb210b5e876a3c42d1ec1a667fc621aPrimiano Tucci virtual void setScrollTop(double) OVERRIDE; 6902772c6a72f1ee0b226341a4f4439970c29fc861Ben Murdoch 7076c265b59aa821ccbf8c75ab2bb0d036e97d2956Torne (Richard Coles) virtual int scrollHeight() OVERRIDE; 7176c265b59aa821ccbf8c75ab2bb0d036e97d2956Torne (Richard Coles) virtual int scrollWidth() OVERRIDE; 725c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)}; 735c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) 747242dc3dbeb210b5e876a3c42d1ec1a667fc621aPrimiano Tucci} // namespace blink 755c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) 767242dc3dbeb210b5e876a3c42d1ec1a667fc621aPrimiano Tucci#endif // HTMLBodyElement_h 77