| 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-2007, 2009, 2014 Apple Inc. All rights reserved. | 4 * Copyright (C) 2004-2007, 2009, 2014 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 14 matching lines...) Expand all Loading... |
| 25 | 25 |
| 26 #include "core/CoreExport.h" | 26 #include "core/CoreExport.h" |
| 27 #include "core/dom/Element.h" | 27 #include "core/dom/Element.h" |
| 28 | 28 |
| 29 namespace blink { | 29 namespace blink { |
| 30 | 30 |
| 31 class DocumentFragment; | 31 class DocumentFragment; |
| 32 class ExceptionState; | 32 class ExceptionState; |
| 33 class FormAssociated; | 33 class FormAssociated; |
| 34 class HTMLFormElement; | 34 class HTMLFormElement; |
| 35 class HTMLMenuElement; | |
| 36 class KeyboardEvent; | 35 class KeyboardEvent; |
| 37 | 36 |
| 38 enum TranslateAttributeMode { | 37 enum TranslateAttributeMode { |
| 39 kTranslateAttributeYes, | 38 kTranslateAttributeYes, |
| 40 kTranslateAttributeNo, | 39 kTranslateAttributeNo, |
| 41 kTranslateAttributeInherit | 40 kTranslateAttributeInherit |
| 42 }; | 41 }; |
| 43 | 42 |
| 44 class CORE_EXPORT HTMLElement : public Element { | 43 class CORE_EXPORT HTMLElement : public Element { |
| 45 DEFINE_WRAPPERTYPEINFO(); | 44 DEFINE_WRAPPERTYPEINFO(); |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 void DefaultEventHandler(Event*) override; | 99 void DefaultEventHandler(Event*) override; |
| 101 | 100 |
| 102 static const AtomicString& EventNameForAttributeName( | 101 static const AtomicString& EventNameForAttributeName( |
| 103 const QualifiedName& attr_name); | 102 const QualifiedName& attr_name); |
| 104 | 103 |
| 105 bool MatchesReadOnlyPseudoClass() const override; | 104 bool MatchesReadOnlyPseudoClass() const override; |
| 106 bool MatchesReadWritePseudoClass() const override; | 105 bool MatchesReadWritePseudoClass() const override; |
| 107 | 106 |
| 108 static const AtomicString& EventParameterName(); | 107 static const AtomicString& EventParameterName(); |
| 109 | 108 |
| 110 HTMLMenuElement* AssignedContextMenu() const; | |
| 111 HTMLMenuElement* contextMenu() const; | |
| 112 void setContextMenu(HTMLMenuElement*); | |
| 113 | |
| 114 virtual String AltText() const { return String(); } | 109 virtual String AltText() const { return String(); } |
| 115 | 110 |
| 116 int offsetLeftForBinding(); | 111 int offsetLeftForBinding(); |
| 117 int offsetTopForBinding(); | 112 int offsetTopForBinding(); |
| 118 int offsetWidthForBinding(); | 113 int offsetWidthForBinding(); |
| 119 int offsetHeightForBinding(); | 114 int offsetHeightForBinding(); |
| 120 | 115 |
| 121 Element* unclosedOffsetParent(); | 116 Element* unclosedOffsetParent(); |
| 122 | 117 |
| 123 virtual FormAssociated* ToFormAssociatedOrNull() { return nullptr; }; | 118 virtual FormAssociated* ToFormAssociatedOrNull() { return nullptr; }; |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 inline bool IsElementOfType<const thisType>(const HTMLElement& element) { \ | 233 inline bool IsElementOfType<const thisType>(const HTMLElement& element) { \ |
| 239 return Is##thisType(element); \ | 234 return Is##thisType(element); \ |
| 240 } \ | 235 } \ |
| 241 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) | 236 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) |
| 242 | 237 |
| 243 } // namespace blink | 238 } // namespace blink |
| 244 | 239 |
| 245 #include "core/HTMLElementTypeHelpers.h" | 240 #include "core/HTMLElementTypeHelpers.h" |
| 246 | 241 |
| 247 #endif // HTMLElement_h | 242 #endif // HTMLElement_h |
| OLD | NEW |