| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 void setContentEditable(const String&, ExceptionState&); | 43 void setContentEditable(const String&, ExceptionState&); |
| 44 | 44 |
| 45 bool spellcheck() const; | 45 bool spellcheck() const; |
| 46 void setSpellcheck(bool); | 46 void setSpellcheck(bool); |
| 47 | 47 |
| 48 const AtomicString& dir(); | 48 const AtomicString& dir(); |
| 49 void setDir(const AtomicString&); | 49 void setDir(const AtomicString&); |
| 50 | 50 |
| 51 void click(); | 51 void click(); |
| 52 | 52 |
| 53 virtual void accessKeyAction(bool sendMouseEvents) override; | |
| 54 | |
| 55 virtual bool isLabelable() const { return false; } | |
| 56 // http://www.whatwg.org/specs/web-apps/current-work/multipage/elements.html
#interactive-content | |
| 57 virtual bool isInteractiveContent() const; | |
| 58 | |
| 59 static const AtomicString& eventParameterName(); | |
| 60 | |
| 61 virtual v8::Handle<v8::Object> wrap(v8::Handle<v8::Object> creationContext,
v8::Isolate*) override; | 53 virtual v8::Handle<v8::Object> wrap(v8::Handle<v8::Object> creationContext,
v8::Isolate*) override; |
| 62 | 54 |
| 63 protected: | 55 protected: |
| 64 HTMLElement(const QualifiedName& tagName, Document&, ConstructionType); | 56 HTMLElement(const QualifiedName& tagName, Document&, ConstructionType); |
| 65 | 57 |
| 66 private: | 58 private: |
| 67 bool isHTMLElement() const = delete; // This will catch anyone doing an unne
cessary check. | 59 bool isHTMLElement() const = delete; // This will catch anyone doing an unne
cessary check. |
| 68 bool isStyledElement() const = delete; // This will catch anyone doing an un
necessary check. | 60 bool isStyledElement() const = delete; // This will catch anyone doing an un
necessary check. |
| 69 }; | 61 }; |
| 70 | 62 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 template<typename T> inline bool is##thisType(const PassRefPtr<T>& node) { r
eturn is##thisType(node.get()); } \ | 98 template<typename T> inline bool is##thisType(const PassRefPtr<T>& node) { r
eturn is##thisType(node.get()); } \ |
| 107 template<typename T> inline bool is##thisType(const RefPtr<T>& node) { retur
n is##thisType(node.get()); } \ | 99 template<typename T> inline bool is##thisType(const RefPtr<T>& node) { retur
n is##thisType(node.get()); } \ |
| 108 template <> inline bool isElementOfType<const thisType>(const HTMLElement& e
lement) { return is##thisType(element); } \ | 100 template <> inline bool isElementOfType<const thisType>(const HTMLElement& e
lement) { return is##thisType(element); } \ |
| 109 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) | 101 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) |
| 110 | 102 |
| 111 } // namespace blink | 103 } // namespace blink |
| 112 | 104 |
| 113 #include "core/HTMLElementTypeHelpers.h" | 105 #include "core/HTMLElementTypeHelpers.h" |
| 114 | 106 |
| 115 #endif // HTMLElement_h | 107 #endif // HTMLElement_h |
| OLD | NEW |