Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / Source / core / html / HTMLBodyElement.h
blob494aae424401d1409f03a70b5b79b0d583dcb528
1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Simon Hausmann <hausmann@kde.org>
5 * Copyright (C) 2004, 2006, 2009, 2010 Apple Inc. All rights reserved.
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version.
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Library General Public License for more details.
17 * You should have received a copy of the GNU Library General Public License
18 * along with this library; see the file COPYING.LIB. If not, write to
19 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20 * Boston, MA 02110-1301, USA.
24 #ifndef HTMLBodyElement_h
25 #define HTMLBodyElement_h
27 #include "core/CoreExport.h"
28 #include "core/dom/Document.h"
29 #include "core/html/HTMLElement.h"
31 namespace blink {
33 class Document;
35 class CORE_EXPORT HTMLBodyElement final : public HTMLElement {
36 DEFINE_WRAPPERTYPEINFO();
37 public:
38 DECLARE_NODE_FACTORY(HTMLBodyElement);
39 ~HTMLBodyElement() override;
41 DEFINE_WINDOW_ATTRIBUTE_EVENT_LISTENER(blur);
42 DEFINE_WINDOW_ATTRIBUTE_EVENT_LISTENER(error);
43 DEFINE_WINDOW_ATTRIBUTE_EVENT_LISTENER(focus);
44 DEFINE_WINDOW_ATTRIBUTE_EVENT_LISTENER(load);
45 DEFINE_WINDOW_ATTRIBUTE_EVENT_LISTENER(resize);
46 DEFINE_WINDOW_ATTRIBUTE_EVENT_LISTENER(scroll);
47 DEFINE_WINDOW_ATTRIBUTE_EVENT_LISTENER(orientationchange);
49 private:
50 explicit HTMLBodyElement(Document&);
52 void parseAttribute(const QualifiedName&, const AtomicString&) override;
53 bool isPresentationAttribute(const QualifiedName&) const override;
54 void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStylePropertySet*) override;
56 InsertionNotificationRequest insertedInto(ContainerNode*) override;
57 void didNotifySubtreeInsertionsToDocument() override;
59 bool isURLAttribute(const Attribute&) const override;
60 bool hasLegalLinkAttribute(const QualifiedName&) const override;
61 const QualifiedName& subResourceAttributeName() const override;
63 bool supportsFocus() const override;
66 } // namespace blink
68 #endif // HTMLBodyElement_h