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

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

Issue 2121313003: [Editing][DOM][CodeHealth] Make Node::isContentEditable and Node::isRichEditable global functions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 String title() const final; 49 String title() const final;
50 short tabIndex() const override; 50 short tabIndex() const override;
51 51
52 void setInnerText(const String&, ExceptionState&); 52 void setInnerText(const String&, ExceptionState&);
53 void setOuterText(const String&, ExceptionState&); 53 void setOuterText(const String&, ExceptionState&);
54 54
55 virtual bool hasCustomFocusLogic() const; 55 virtual bool hasCustomFocusLogic() const;
56 56
57 String contentEditable() const; 57 String contentEditable() const;
58 void setContentEditable(const String&, ExceptionState&); 58 void setContentEditable(const String&, ExceptionState&);
59 bool isContentEditable() const;
59 60
60 virtual bool draggable() const; 61 virtual bool draggable() const;
61 void setDraggable(bool); 62 void setDraggable(bool);
62 63
63 bool spellcheck() const; 64 bool spellcheck() const;
64 void setSpellcheck(bool); 65 void setSpellcheck(bool);
65 66
66 bool translate() const; 67 bool translate() const;
67 void setTranslate(bool); 68 void setTranslate(bool);
68 69
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 template<typename T> inline bool is##thisType(const PassRefPtr<T>& node) { r eturn is##thisType(node.get()); } \ 189 template<typename T> inline bool is##thisType(const PassRefPtr<T>& node) { r eturn is##thisType(node.get()); } \
189 template<typename T> inline bool is##thisType(const RefPtr<T>& node) { retur n is##thisType(node.get()); } \ 190 template<typename T> inline bool is##thisType(const RefPtr<T>& node) { retur n is##thisType(node.get()); } \
190 template <> inline bool isElementOfType<const thisType>(const HTMLElement& e lement) { return is##thisType(element); } \ 191 template <> inline bool isElementOfType<const thisType>(const HTMLElement& e lement) { return is##thisType(element); } \
191 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) 192 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType)
192 193
193 } // namespace blink 194 } // namespace blink
194 195
195 #include "core/HTMLElementTypeHelpers.h" 196 #include "core/HTMLElementTypeHelpers.h"
196 197
197 #endif // HTMLElement_h 198 #endif // HTMLElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698