| OLD | NEW |
| 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) 2001 Peter Kelly (pmk@post.com) | 4 * (C) 2001 Peter Kelly (pmk@post.com) |
| 5 * (C) 2001 Dirk Mueller (mueller@kde.org) | 5 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 6 * Copyright (C) 2003-2011, 2013, 2014 Apple Inc. All rights reserved. | 6 * Copyright (C) 2003-2011, 2013, 2014 Apple Inc. All rights reserved. |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 | 81 |
| 82 NumberOfElementFlags = 2, // Required size of bitfield used to store the fla
gs. | 82 NumberOfElementFlags = 2, // Required size of bitfield used to store the fla
gs. |
| 83 }; | 83 }; |
| 84 | 84 |
| 85 class Element : public ContainerNode { | 85 class Element : public ContainerNode { |
| 86 DEFINE_WRAPPERTYPEINFO(); | 86 DEFINE_WRAPPERTYPEINFO(); |
| 87 public: | 87 public: |
| 88 static PassRefPtrWillBeRawPtr<Element> create(const QualifiedName&, Document
*); | 88 static PassRefPtrWillBeRawPtr<Element> create(const QualifiedName&, Document
*); |
| 89 virtual ~Element(); | 89 virtual ~Element(); |
| 90 | 90 |
| 91 DEFINE_ATTRIBUTE_EVENT_LISTENER(beforecopy); | |
| 92 DEFINE_ATTRIBUTE_EVENT_LISTENER(beforecut); | |
| 93 DEFINE_ATTRIBUTE_EVENT_LISTENER(beforepaste); | |
| 94 DEFINE_ATTRIBUTE_EVENT_LISTENER(copy); | |
| 95 DEFINE_ATTRIBUTE_EVENT_LISTENER(cut); | |
| 96 DEFINE_ATTRIBUTE_EVENT_LISTENER(paste); | |
| 97 DEFINE_ATTRIBUTE_EVENT_LISTENER(search); | |
| 98 DEFINE_ATTRIBUTE_EVENT_LISTENER(selectstart); | |
| 99 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchcancel); | |
| 100 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchend); | |
| 101 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchmove); | |
| 102 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchstart); | |
| 103 DEFINE_ATTRIBUTE_EVENT_LISTENER(wheel); | |
| 104 | |
| 105 bool hasAttribute(const QualifiedName&) const; | 91 bool hasAttribute(const QualifiedName&) const; |
| 106 const AtomicString& getAttribute(const QualifiedName&) const; | 92 const AtomicString& getAttribute(const QualifiedName&) const; |
| 107 | 93 |
| 108 // Passing nullAtom as the second parameter removes the attribute when calli
ng either of these set methods. | 94 // Passing nullAtom as the second parameter removes the attribute when calli
ng either of these set methods. |
| 109 void setAttribute(const QualifiedName&, const AtomicString& value); | 95 void setAttribute(const QualifiedName&, const AtomicString& value); |
| 110 void setSynchronizedLazyAttribute(const QualifiedName&, const AtomicString&
value); | 96 void setSynchronizedLazyAttribute(const QualifiedName&, const AtomicString&
value); |
| 111 | 97 |
| 112 void removeAttribute(const QualifiedName&); | 98 void removeAttribute(const QualifiedName&); |
| 113 | 99 |
| 114 // Typed getters and setters for language bindings. | 100 // Typed getters and setters for language bindings. |
| (...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 706 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) | 692 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) |
| 707 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 693 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
| 708 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document&
document) \ | 694 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document&
document) \ |
| 709 { \ | 695 { \ |
| 710 return adoptRefWillBeNoop(new T(tagName, document)); \ | 696 return adoptRefWillBeNoop(new T(tagName, document)); \ |
| 711 } | 697 } |
| 712 | 698 |
| 713 } // namespace | 699 } // namespace |
| 714 | 700 |
| 715 #endif // Element_h | 701 #endif // Element_h |
| OLD | NEW |