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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLElement.h

Issue 2088453002: Implement the inert attribute (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix up some tests Created 4 years, 6 months 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
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 * 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 30 matching lines...) Expand all
41 41
42 class CORE_EXPORT HTMLElement : public Element { 42 class CORE_EXPORT HTMLElement : public Element {
43 DEFINE_WRAPPERTYPEINFO(); 43 DEFINE_WRAPPERTYPEINFO();
44 public: 44 public:
45 DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(HTMLElement); 45 DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(HTMLElement);
46 46
47 bool hasTagName(const HTMLQualifiedName& name) const { return hasLocalName(n ame.localName()); } 47 bool hasTagName(const HTMLQualifiedName& name) const { return hasLocalName(n ame.localName()); }
48 48
49 String title() const final; 49 String title() const final;
50 short tabIndex() const override; 50 short tabIndex() const override;
51 bool inert() const;
52 void setInert(const bool enabled, ExceptionState&);
esprehn 2016/06/27 22:27:16 no const on input primitive types
aboxhall 2016/06/29 00:13:13 n/a
51 53
52 void setInnerText(const String&, ExceptionState&); 54 void setInnerText(const String&, ExceptionState&);
53 void setOuterText(const String&, ExceptionState&); 55 void setOuterText(const String&, ExceptionState&);
54 56
55 virtual bool hasCustomFocusLogic() const; 57 virtual bool hasCustomFocusLogic() const;
56 58
57 String contentEditable() const; 59 String contentEditable() const;
58 void setContentEditable(const String&, ExceptionState&); 60 void setContentEditable(const String&, ExceptionState&);
59 61
60 virtual bool draggable() const; 62 virtual bool draggable() const;
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 template<typename T> inline bool is##thisType(const PassRefPtr<T>& node) { r eturn is##thisType(node.get()); } \ 183 template<typename T> inline bool is##thisType(const PassRefPtr<T>& node) { r eturn is##thisType(node.get()); } \
182 template<typename T> inline bool is##thisType(const RefPtr<T>& node) { retur n is##thisType(node.get()); } \ 184 template<typename T> inline bool is##thisType(const RefPtr<T>& node) { retur n is##thisType(node.get()); } \
183 template <> inline bool isElementOfType<const thisType>(const HTMLElement& e lement) { return is##thisType(element); } \ 185 template <> inline bool isElementOfType<const thisType>(const HTMLElement& e lement) { return is##thisType(element); } \
184 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) 186 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType)
185 187
186 } // namespace blink 188 } // namespace blink
187 189
188 #include "core/HTMLElementTypeHelpers.h" 190 #include "core/HTMLElementTypeHelpers.h"
189 191
190 #endif // HTMLElement_h 192 #endif // HTMLElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698