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

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

Issue 2546063002: Rename FormAssociatedElement to ListedElement (Closed)
Patch Set: Rename FormAssociatedElement to ListedElement Created 4 years 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 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
6 * reserved. 6 * reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
11 * version 2 of the License, or (at your option) any later version. 11 * version 2 of the License, or (at your option) any later version.
12 * 12 *
13 * This library is distributed in the hope that it will be useful, 13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Library General Public License for more details. 16 * Library General Public License for more details.
17 * 17 *
18 * You should have received a copy of the GNU Library General Public License 18 * You should have received a copy of the GNU Library General Public License
19 * along with this library; see the file COPYING.LIB. If not, write to 19 * along with this library; see the file COPYING.LIB. If not, write to
20 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 20 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21 * Boston, MA 02110-1301, USA. 21 * Boston, MA 02110-1301, USA.
22 * 22 *
23 */ 23 */
24 24
25 #ifndef HTMLFormControlElement_h 25 #ifndef HTMLFormControlElement_h
26 #define HTMLFormControlElement_h 26 #define HTMLFormControlElement_h
27 27
28 #include "core/CoreExport.h" 28 #include "core/CoreExport.h"
29 #include "core/html/FormAssociatedElement.h"
30 #include "core/html/LabelableElement.h" 29 #include "core/html/LabelableElement.h"
30 #include "core/html/ListedElement.h"
31 31
32 namespace blink { 32 namespace blink {
33 33
34 class HTMLFormElement; 34 class HTMLFormElement;
35 class ValidationMessageClient; 35 class ValidationMessageClient;
36 36
37 enum CheckValidityEventBehavior { 37 enum CheckValidityEventBehavior {
38 CheckValidityDispatchNoEvent, 38 CheckValidityDispatchNoEvent,
39 CheckValidityDispatchInvalidEvent 39 CheckValidityDispatchInvalidEvent
40 }; 40 };
41 41
42 // HTMLFormControlElement is the default implementation of 42 // HTMLFormControlElement is the default implementation of
43 // FormAssociatedElement, and form-associated element implementations should use 43 // ListedElement, and form-associated element implementations should use
tkent 2016/12/02 13:24:37 form-associated element implementations -> listed
44 // HTMLFormControlElement unless there is a special reason. 44 // HTMLFormControlElement unless there is a special reason.
45 class CORE_EXPORT HTMLFormControlElement : public LabelableElement, 45 class CORE_EXPORT HTMLFormControlElement : public LabelableElement,
46 public FormAssociatedElement { 46 public ListedElement {
47 USING_GARBAGE_COLLECTED_MIXIN(HTMLFormControlElement); 47 USING_GARBAGE_COLLECTED_MIXIN(HTMLFormControlElement);
48 48
49 public: 49 public:
50 ~HTMLFormControlElement() override; 50 ~HTMLFormControlElement() override;
51 DECLARE_VIRTUAL_TRACE(); 51 DECLARE_VIRTUAL_TRACE();
52 52
53 String formAction() const; 53 String formAction() const;
54 void setFormAction(const AtomicString&); 54 void setFormAction(const AtomicString&);
55 String formEnctype() const; 55 String formEnctype() const;
56 void setFormEnctype(const AtomicString&); 56 void setFormEnctype(const AtomicString&);
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 206
207 bool m_wasFocusedByMouse : 1; 207 bool m_wasFocusedByMouse : 1;
208 }; 208 };
209 209
210 inline bool isHTMLFormControlElement(const Element& element) { 210 inline bool isHTMLFormControlElement(const Element& element) {
211 return element.isFormControlElement(); 211 return element.isFormControlElement();
212 } 212 }
213 213
214 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLFormControlElement); 214 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLFormControlElement);
215 DEFINE_TYPE_CASTS(HTMLFormControlElement, 215 DEFINE_TYPE_CASTS(HTMLFormControlElement,
216 FormAssociatedElement, 216 ListedElement,
217 control, 217 control,
218 control->isFormControlElement(), 218 control->isFormControlElement(),
219 control.isFormControlElement()); 219 control.isFormControlElement());
220 220
221 } // namespace blink 221 } // namespace blink
222 222
223 #endif 223 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698