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

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

Issue 1219013005: Fix virtual/override/final usage in Source/core/html/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/html/HTMLFormControlsCollection.h ('k') | Source/core/html/HTMLFrameElement.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 * (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 reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 28 matching lines...) Expand all
39 class GenericEventQueue; 39 class GenericEventQueue;
40 class HTMLFormControlElement; 40 class HTMLFormControlElement;
41 class HTMLFormControlsCollection; 41 class HTMLFormControlsCollection;
42 class HTMLImageElement; 42 class HTMLImageElement;
43 class RadioNodeListOrElement; 43 class RadioNodeListOrElement;
44 44
45 class CORE_EXPORT HTMLFormElement final : public HTMLElement { 45 class CORE_EXPORT HTMLFormElement final : public HTMLElement {
46 DEFINE_WRAPPERTYPEINFO(); 46 DEFINE_WRAPPERTYPEINFO();
47 public: 47 public:
48 static PassRefPtrWillBeRawPtr<HTMLFormElement> create(Document&); 48 static PassRefPtrWillBeRawPtr<HTMLFormElement> create(Document&);
49 virtual ~HTMLFormElement(); 49 ~HTMLFormElement() override;
50 DECLARE_VIRTUAL_TRACE(); 50 DECLARE_VIRTUAL_TRACE();
51 51
52 PassRefPtrWillBeRawPtr<HTMLFormControlsCollection> elements(); 52 PassRefPtrWillBeRawPtr<HTMLFormControlsCollection> elements();
53 void getNamedElements(const AtomicString&, WillBeHeapVector<RefPtrWillBeMemb er<Element>>&); 53 void getNamedElements(const AtomicString&, WillBeHeapVector<RefPtrWillBeMemb er<Element>>&);
54 54
55 unsigned length() const; 55 unsigned length() const;
56 HTMLElement* item(unsigned index); 56 HTMLElement* item(unsigned index);
57 57
58 String enctype() const { return m_attributes.encodingType(); } 58 String enctype() const { return m_attributes.encodingType(); }
59 void setEnctype(const AtomicString&); 59 void setEnctype(const AtomicString&);
(...skipping 28 matching lines...) Expand all
88 88
89 String method() const; 89 String method() const;
90 void setMethod(const AtomicString&); 90 void setMethod(const AtomicString&);
91 91
92 bool wasUserSubmitted() const; 92 bool wasUserSubmitted() const;
93 93
94 HTMLFormControlElement* defaultButton() const; 94 HTMLFormControlElement* defaultButton() const;
95 95
96 bool checkValidity(); 96 bool checkValidity();
97 bool reportValidity(); 97 bool reportValidity();
98 virtual bool matchesValidityPseudoClasses() const override final; 98 bool matchesValidityPseudoClasses() const final;
99 virtual bool isValidElement() override final; 99 bool isValidElement() final;
100 100
101 enum AutocompleteResult { 101 enum AutocompleteResult {
102 AutocompleteResultSuccess, 102 AutocompleteResultSuccess,
103 AutocompleteResultErrorDisabled, 103 AutocompleteResultErrorDisabled,
104 AutocompleteResultErrorCancel, 104 AutocompleteResultErrorCancel,
105 AutocompleteResultErrorInvalid, 105 AutocompleteResultErrorInvalid,
106 }; 106 };
107 107
108 void requestAutocomplete(); 108 void requestAutocomplete();
109 void finishRequestAutocomplete(AutocompleteResult); 109 void finishRequestAutocomplete(AutocompleteResult);
110 110
111 DEFINE_ATTRIBUTE_EVENT_LISTENER(autocomplete); 111 DEFINE_ATTRIBUTE_EVENT_LISTENER(autocomplete);
112 DEFINE_ATTRIBUTE_EVENT_LISTENER(autocompleteerror); 112 DEFINE_ATTRIBUTE_EVENT_LISTENER(autocompleteerror);
113 113
114 RadioButtonGroupScope& radioButtonGroupScope() { return m_radioButtonGroupSc ope; } 114 RadioButtonGroupScope& radioButtonGroupScope() { return m_radioButtonGroupSc ope; }
115 115
116 const FormAssociatedElement::List& associatedElements() const; 116 const FormAssociatedElement::List& associatedElements() const;
117 const WillBeHeapVector<RawPtrWillBeMember<HTMLImageElement>>& imageElements( ); 117 const WillBeHeapVector<RawPtrWillBeMember<HTMLImageElement>>& imageElements( );
118 118
119 void anonymousNamedGetter(const AtomicString& name, RadioNodeListOrElement&) ; 119 void anonymousNamedGetter(const AtomicString& name, RadioNodeListOrElement&) ;
120 120
121 private: 121 private:
122 explicit HTMLFormElement(Document&); 122 explicit HTMLFormElement(Document&);
123 123
124 virtual bool layoutObjectIsNeeded(const ComputedStyle&) override; 124 bool layoutObjectIsNeeded(const ComputedStyle&) override;
125 virtual InsertionNotificationRequest insertedInto(ContainerNode*) override; 125 InsertionNotificationRequest insertedInto(ContainerNode*) override;
126 virtual void removedFrom(ContainerNode*) override; 126 void removedFrom(ContainerNode*) override;
127 virtual void finishParsingChildren() override; 127 void finishParsingChildren() override;
128 128
129 virtual void handleLocalEvents(Event&) override; 129 void handleLocalEvents(Event&) override;
130 130
131 virtual void attributeWillChange(const QualifiedName&, const AtomicString& o ldValue, const AtomicString& newValue) override; 131 void attributeWillChange(const QualifiedName&, const AtomicString& oldValue, const AtomicString& newValue) override;
132 virtual void parseAttribute(const QualifiedName&, const AtomicString&) overr ide; 132 void parseAttribute(const QualifiedName&, const AtomicString&) override;
133 virtual bool isURLAttribute(const Attribute&) const override; 133 bool isURLAttribute(const Attribute&) const override;
134 virtual bool hasLegalLinkAttribute(const QualifiedName&) const override; 134 bool hasLegalLinkAttribute(const QualifiedName&) const override;
135 135
136 virtual bool shouldRegisterAsNamedItem() const override { return true; } 136 bool shouldRegisterAsNamedItem() const override { return true; }
137 137
138 virtual void copyNonAttributePropertiesFromElement(const Element&) override; 138 void copyNonAttributePropertiesFromElement(const Element&) override;
139 139
140 void submitDialog(PassRefPtrWillBeRawPtr<FormSubmission>); 140 void submitDialog(PassRefPtrWillBeRawPtr<FormSubmission>);
141 void submit(Event*, bool activateSubmitButton, bool processingUserGesture); 141 void submit(Event*, bool activateSubmitButton, bool processingUserGesture);
142 142
143 void scheduleFormSubmission(PassRefPtrWillBeRawPtr<FormSubmission>); 143 void scheduleFormSubmission(PassRefPtrWillBeRawPtr<FormSubmission>);
144 144
145 void collectAssociatedElements(Node& root, FormAssociatedElement::List&) con st; 145 void collectAssociatedElements(Node& root, FormAssociatedElement::List&) con st;
146 void collectImageElements(Node& root, WillBeHeapVector<RawPtrWillBeMember<HT MLImageElement>>&); 146 void collectImageElements(Node& root, WillBeHeapVector<RawPtrWillBeMember<HT MLImageElement>>&);
147 147
148 // Returns true if the submission should proceed. 148 // Returns true if the submission should proceed.
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 bool m_isInResetFunction : 1; 183 bool m_isInResetFunction : 1;
184 184
185 bool m_wasDemoted : 1; 185 bool m_wasDemoted : 1;
186 186
187 OwnPtrWillBeMember<GenericEventQueue> m_pendingAutocompleteEventsQueue; 187 OwnPtrWillBeMember<GenericEventQueue> m_pendingAutocompleteEventsQueue;
188 }; 188 };
189 189
190 } // namespace blink 190 } // namespace blink
191 191
192 #endif // HTMLFormElement_h 192 #endif // HTMLFormElement_h
OLDNEW
« no previous file with comments | « Source/core/html/HTMLFormControlsCollection.h ('k') | Source/core/html/HTMLFrameElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698