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

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

Issue 202153005: Add isHTMLPlugInElement() helpers for consistency with other HTML elements (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Keep virtual function Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/Node.h ('k') | Source/core/html/HTMLPlugInElement.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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, 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 bool ieForbidsInsertHTML() const; 72 bool ieForbidsInsertHTML() const;
73 73
74 virtual HTMLFormElement* formOwner() const { return 0; } 74 virtual HTMLFormElement* formOwner() const { return 0; }
75 75
76 HTMLFormElement* findFormAncestor() const; 76 HTMLFormElement* findFormAncestor() const;
77 77
78 bool hasDirectionAuto() const; 78 bool hasDirectionAuto() const;
79 TextDirection directionalityIfhasDirAutoAttribute(bool& isAuto) const; 79 TextDirection directionalityIfhasDirAutoAttribute(bool& isAuto) const;
80 80
81 virtual bool isHTMLUnknownElement() const { return false; } 81 virtual bool isHTMLUnknownElement() const { return false; }
82 virtual bool isPluginElement() const { return false; }
82 83
83 virtual bool isLabelable() const { return false; } 84 virtual bool isLabelable() const { return false; }
84 // http://www.whatwg.org/specs/web-apps/current-work/multipage/elements.html #interactive-content 85 // http://www.whatwg.org/specs/web-apps/current-work/multipage/elements.html #interactive-content
85 virtual bool isInteractiveContent() const; 86 virtual bool isInteractiveContent() const;
86 virtual void defaultEventHandler(Event*) OVERRIDE; 87 virtual void defaultEventHandler(Event*) OVERRIDE;
87 88
88 static const AtomicString& eventNameForAttributeName(const QualifiedName& at trName); 89 static const AtomicString& eventNameForAttributeName(const QualifiedName& at trName);
89 90
90 virtual bool matchesReadOnlyPseudoClass() const OVERRIDE; 91 virtual bool matchesReadOnlyPseudoClass() const OVERRIDE;
91 virtual bool matchesReadWritePseudoClass() const OVERRIDE; 92 virtual bool matchesReadWritePseudoClass() const OVERRIDE;
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 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()); } \
150 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()); } \
151 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); } \
152 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) 153 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType)
153 154
154 } // namespace WebCore 155 } // namespace WebCore
155 156
156 #include "HTMLElementTypeHelpers.h" 157 #include "HTMLElementTypeHelpers.h"
157 158
158 #endif // HTMLElement_h 159 #endif // HTMLElement_h
OLDNEW
« no previous file with comments | « Source/core/dom/Node.h ('k') | Source/core/html/HTMLPlugInElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698