| 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 * Copyright (C) 2004, 2005, 2006, 2007, 2009 Apple Inc. All rights reserved. | 4 * Copyright (C) 2004, 2005, 2006, 2007, 2009 Apple Inc. All rights reserved. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 TranslateAttributeYes, | 36 TranslateAttributeYes, |
| 37 TranslateAttributeNo, | 37 TranslateAttributeNo, |
| 38 TranslateAttributeInherit | 38 TranslateAttributeInherit |
| 39 }; | 39 }; |
| 40 | 40 |
| 41 class HTMLElement : public Element { | 41 class HTMLElement : public Element { |
| 42 public: | 42 public: |
| 43 static PassRefPtr<HTMLElement> create(const QualifiedName& tagName, Document
&); | 43 static PassRefPtr<HTMLElement> create(const QualifiedName& tagName, Document
&); |
| 44 | 44 |
| 45 virtual String title() const OVERRIDE FINAL; | 45 virtual String title() const OVERRIDE FINAL; |
| 46 | |
| 47 virtual short tabIndex() const OVERRIDE; | 46 virtual short tabIndex() const OVERRIDE; |
| 48 void setTabIndex(int); | |
| 49 | 47 |
| 50 void setInnerText(const String&, ExceptionState&); | 48 void setInnerText(const String&, ExceptionState&); |
| 51 void setOuterText(const String&, ExceptionState&); | 49 void setOuterText(const String&, ExceptionState&); |
| 52 | 50 |
| 53 virtual bool hasCustomFocusLogic() const; | 51 virtual bool hasCustomFocusLogic() const; |
| 54 virtual bool supportsFocus() const OVERRIDE; | |
| 55 | 52 |
| 56 String contentEditable() const; | 53 String contentEditable() const; |
| 57 void setContentEditable(const String&, ExceptionState&); | 54 void setContentEditable(const String&, ExceptionState&); |
| 58 | 55 |
| 59 virtual bool draggable() const; | 56 virtual bool draggable() const; |
| 60 void setDraggable(bool); | 57 void setDraggable(bool); |
| 61 | 58 |
| 62 bool spellcheck() const; | 59 bool spellcheck() const; |
| 63 void setSpellcheck(bool); | 60 void setSpellcheck(bool); |
| 64 | 61 |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 PassRefPtr<DocumentFragment> textToFragment(const String&, ExceptionState&); | 116 PassRefPtr<DocumentFragment> textToFragment(const String&, ExceptionState&); |
| 120 | 117 |
| 121 void dirAttributeChanged(const AtomicString&); | 118 void dirAttributeChanged(const AtomicString&); |
| 122 void adjustDirectionalityIfNeededAfterChildAttributeChanged(Element* child); | 119 void adjustDirectionalityIfNeededAfterChildAttributeChanged(Element* child); |
| 123 void adjustDirectionalityIfNeededAfterChildrenChanged(Node* beforeChange, in
t childCountDelta); | 120 void adjustDirectionalityIfNeededAfterChildrenChanged(Node* beforeChange, in
t childCountDelta); |
| 124 TextDirection directionality(Node** strongDirectionalityTextNode= 0) const; | 121 TextDirection directionality(Node** strongDirectionalityTextNode= 0) const; |
| 125 | 122 |
| 126 TranslateAttributeMode translateAttributeMode() const; | 123 TranslateAttributeMode translateAttributeMode() const; |
| 127 | 124 |
| 128 void handleKeypressEvent(KeyboardEvent*); | 125 void handleKeypressEvent(KeyboardEvent*); |
| 129 bool supportsSpatialNavigationFocus() const; | |
| 130 }; | 126 }; |
| 131 | 127 |
| 132 DEFINE_ELEMENT_TYPE_CASTS(HTMLElement, isHTMLElement()); | 128 DEFINE_ELEMENT_TYPE_CASTS(HTMLElement, isHTMLElement()); |
| 133 | 129 |
| 134 template <> inline bool isElementOfType<const HTMLElement>(const Node& node) { r
eturn node.isHTMLElement(); } | 130 template <> inline bool isElementOfType<const HTMLElement>(const Node& node) { r
eturn node.isHTMLElement(); } |
| 135 template <typename T> bool isElementOfType(const HTMLElement&); | 131 template <typename T> bool isElementOfType(const HTMLElement&); |
| 136 template <> inline bool isElementOfType<const HTMLElement>(const HTMLElement&) {
return true; } | 132 template <> inline bool isElementOfType<const HTMLElement>(const HTMLElement&) {
return true; } |
| 137 | 133 |
| 138 inline HTMLElement::HTMLElement(const QualifiedName& tagName, Document& document
, ConstructionType type = CreateHTMLElement) | 134 inline HTMLElement::HTMLElement(const QualifiedName& tagName, Document& document
, ConstructionType type = CreateHTMLElement) |
| 139 : Element(tagName, &document, type) | 135 : Element(tagName, &document, type) |
| (...skipping 14 matching lines...) Expand all Loading... |
| 154 template<typename T> inline bool is##thisType(const PassRefPtr<T>& node) { r
eturn is##thisType(node.get()); } \ | 150 template<typename T> inline bool is##thisType(const PassRefPtr<T>& node) { r
eturn is##thisType(node.get()); } \ |
| 155 template<typename T> inline bool is##thisType(const RefPtr<T>& node) { retur
n is##thisType(node.get()); } \ | 151 template<typename T> inline bool is##thisType(const RefPtr<T>& node) { retur
n is##thisType(node.get()); } \ |
| 156 template <> inline bool isElementOfType<const thisType>(const HTMLElement& e
lement) { return is##thisType(element); } \ | 152 template <> inline bool isElementOfType<const thisType>(const HTMLElement& e
lement) { return is##thisType(element); } \ |
| 157 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) | 153 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) |
| 158 | 154 |
| 159 } // namespace WebCore | 155 } // namespace WebCore |
| 160 | 156 |
| 161 #include "HTMLElementTypeHelpers.h" | 157 #include "HTMLElementTypeHelpers.h" |
| 162 | 158 |
| 163 #endif // HTMLElement_h | 159 #endif // HTMLElement_h |
| OLD | NEW |