Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Side by Side Diff: Source/core/html/HTMLBodyElement.h

Issue 66643004: Remove QualifiedName argument from most HTMLElement::create functions (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Hack for XML prefix Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Simon Hausmann <hausmann@kde.org> 4 * (C) 2000 Simon Hausmann <hausmann@kde.org>
5 * Copyright (C) 2004, 2006, 2009, 2010 Apple Inc. All rights reserved. 5 * Copyright (C) 2004, 2006, 2009, 2010 Apple Inc. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 15 matching lines...) Expand all
26 26
27 #include "core/html/HTMLElement.h" 27 #include "core/html/HTMLElement.h"
28 28
29 namespace WebCore { 29 namespace WebCore {
30 30
31 class Document; 31 class Document;
32 32
33 class HTMLBodyElement FINAL : public HTMLElement { 33 class HTMLBodyElement FINAL : public HTMLElement {
34 public: 34 public:
35 static PassRefPtr<HTMLBodyElement> create(Document&); 35 static PassRefPtr<HTMLBodyElement> create(Document&);
36 static PassRefPtr<HTMLBodyElement> create(const QualifiedName&, Document&);
37 virtual ~HTMLBodyElement(); 36 virtual ~HTMLBodyElement();
38 37
39 DEFINE_WINDOW_ATTRIBUTE_EVENT_LISTENER(blur); 38 DEFINE_WINDOW_ATTRIBUTE_EVENT_LISTENER(blur);
40 DEFINE_WINDOW_ATTRIBUTE_EVENT_LISTENER(error); 39 DEFINE_WINDOW_ATTRIBUTE_EVENT_LISTENER(error);
41 DEFINE_WINDOW_ATTRIBUTE_EVENT_LISTENER(focus); 40 DEFINE_WINDOW_ATTRIBUTE_EVENT_LISTENER(focus);
42 DEFINE_WINDOW_ATTRIBUTE_EVENT_LISTENER(load); 41 DEFINE_WINDOW_ATTRIBUTE_EVENT_LISTENER(load);
43 DEFINE_WINDOW_ATTRIBUTE_EVENT_LISTENER(scroll); 42 DEFINE_WINDOW_ATTRIBUTE_EVENT_LISTENER(scroll);
44 43
45 #if ENABLE(ORIENTATION_EVENTS) 44 #if ENABLE(ORIENTATION_EVENTS)
46 DEFINE_WINDOW_ATTRIBUTE_EVENT_LISTENER(orientationchange); 45 DEFINE_WINDOW_ATTRIBUTE_EVENT_LISTENER(orientationchange);
47 #endif 46 #endif
48 47
49 private: 48 private:
50 HTMLBodyElement(const QualifiedName&, Document&); 49 explicit HTMLBodyElement(Document&);
51 50
52 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE; 51 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE;
53 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; 52 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
54 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons t AtomicString&, MutableStylePropertySet*) OVERRIDE; 53 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons t AtomicString&, MutableStylePropertySet*) OVERRIDE;
55 54
56 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; 55 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE;
57 56
58 virtual bool isURLAttribute(const Attribute&) const OVERRIDE; 57 virtual bool isURLAttribute(const Attribute&) const OVERRIDE;
59 58
60 virtual bool supportsFocus() const; 59 virtual bool supportsFocus() const;
61 60
62 virtual int scrollLeft(); 61 virtual int scrollLeft();
63 virtual void setScrollLeft(int scrollLeft); 62 virtual void setScrollLeft(int scrollLeft);
64 63
65 virtual int scrollTop(); 64 virtual int scrollTop();
66 virtual void setScrollTop(int scrollTop); 65 virtual void setScrollTop(int scrollTop);
67 66
68 virtual int scrollHeight(); 67 virtual int scrollHeight();
69 virtual int scrollWidth(); 68 virtual int scrollWidth();
70 69
71 virtual void addSubresourceAttributeURLs(ListHashSet<KURL>&) const; 70 virtual void addSubresourceAttributeURLs(ListHashSet<KURL>&) const;
72 }; 71 };
73 72
74 DEFINE_NODE_TYPE_CASTS(HTMLBodyElement, hasTagName(HTMLNames::bodyTag)); 73 DEFINE_NODE_TYPE_CASTS(HTMLBodyElement, hasTagName(HTMLNames::bodyTag));
75 74
76 } //namespace 75 } //namespace
77 76
78 #endif 77 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698