OLD | NEW |
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 22 matching lines...) Expand all Loading... |
33 | 33 |
34 namespace blink { | 34 namespace blink { |
35 | 35 |
36 class Event; | 36 class Event; |
37 class FormAssociatedElement; | 37 class FormAssociatedElement; |
38 class GenericEventQueue; | 38 class GenericEventQueue; |
39 class HTMLFormControlElement; | 39 class HTMLFormControlElement; |
40 class HTMLFormControlsCollection; | 40 class HTMLFormControlsCollection; |
41 class HTMLImageElement; | 41 class HTMLImageElement; |
42 | 42 |
43 class HTMLFormElement FINAL : public HTMLElement { | 43 class HTMLFormElement final : public HTMLElement { |
44 DEFINE_WRAPPERTYPEINFO(); | 44 DEFINE_WRAPPERTYPEINFO(); |
45 public: | 45 public: |
46 static PassRefPtrWillBeRawPtr<HTMLFormElement> create(Document&); | 46 static PassRefPtrWillBeRawPtr<HTMLFormElement> create(Document&); |
47 virtual ~HTMLFormElement(); | 47 virtual ~HTMLFormElement(); |
48 virtual void trace(Visitor*) OVERRIDE; | 48 virtual void trace(Visitor*) override; |
49 | 49 |
50 PassRefPtrWillBeRawPtr<HTMLFormControlsCollection> elements(); | 50 PassRefPtrWillBeRawPtr<HTMLFormControlsCollection> elements(); |
51 void getNamedElements(const AtomicString&, WillBeHeapVector<RefPtrWillBeMemb
er<Element> >&); | 51 void getNamedElements(const AtomicString&, WillBeHeapVector<RefPtrWillBeMemb
er<Element> >&); |
52 | 52 |
53 unsigned length() const; | 53 unsigned length() const; |
54 HTMLElement* item(unsigned index); | 54 HTMLElement* item(unsigned index); |
55 | 55 |
56 String enctype() const { return m_attributes.encodingType(); } | 56 String enctype() const { return m_attributes.encodingType(); } |
57 void setEnctype(const AtomicString&); | 57 void setEnctype(const AtomicString&); |
58 | 58 |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 RadioButtonGroupScope& radioButtonGroupScope() { return m_radioButtonGroupSc
ope; } | 110 RadioButtonGroupScope& radioButtonGroupScope() { return m_radioButtonGroupSc
ope; } |
111 | 111 |
112 const FormAssociatedElement::List& associatedElements() const; | 112 const FormAssociatedElement::List& associatedElements() const; |
113 const WillBeHeapVector<RawPtrWillBeMember<HTMLImageElement> >& imageElements
(); | 113 const WillBeHeapVector<RawPtrWillBeMember<HTMLImageElement> >& imageElements
(); |
114 | 114 |
115 void anonymousNamedGetter(const AtomicString& name, RefPtrWillBeRawPtr<Radio
NodeList>&, RefPtrWillBeRawPtr<Element>&); | 115 void anonymousNamedGetter(const AtomicString& name, RefPtrWillBeRawPtr<Radio
NodeList>&, RefPtrWillBeRawPtr<Element>&); |
116 | 116 |
117 private: | 117 private: |
118 explicit HTMLFormElement(Document&); | 118 explicit HTMLFormElement(Document&); |
119 | 119 |
120 virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE; | 120 virtual bool rendererIsNeeded(const RenderStyle&) override; |
121 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; | 121 virtual InsertionNotificationRequest insertedInto(ContainerNode*) override; |
122 virtual void removedFrom(ContainerNode*) OVERRIDE; | 122 virtual void removedFrom(ContainerNode*) override; |
123 virtual void finishParsingChildren() OVERRIDE; | 123 virtual void finishParsingChildren() override; |
124 | 124 |
125 virtual void handleLocalEvents(Event*) OVERRIDE; | 125 virtual void handleLocalEvents(Event*) override; |
126 | 126 |
127 virtual void attributeWillChange(const QualifiedName&, const AtomicString& o
ldValue, const AtomicString& newValue) OVERRIDE; | 127 virtual void attributeWillChange(const QualifiedName&, const AtomicString& o
ldValue, const AtomicString& newValue) override; |
128 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 128 virtual void parseAttribute(const QualifiedName&, const AtomicString&) overr
ide; |
129 virtual bool isURLAttribute(const Attribute&) const OVERRIDE; | 129 virtual bool isURLAttribute(const Attribute&) const override; |
130 virtual bool hasLegalLinkAttribute(const QualifiedName&) const OVERRIDE; | 130 virtual bool hasLegalLinkAttribute(const QualifiedName&) const override; |
131 | 131 |
132 virtual bool shouldRegisterAsNamedItem() const OVERRIDE { return true; } | 132 virtual bool shouldRegisterAsNamedItem() const override { return true; } |
133 | 133 |
134 virtual void copyNonAttributePropertiesFromElement(const Element&) OVERRIDE; | 134 virtual void copyNonAttributePropertiesFromElement(const Element&) override; |
135 | 135 |
136 void submitDialog(PassRefPtrWillBeRawPtr<FormSubmission>); | 136 void submitDialog(PassRefPtrWillBeRawPtr<FormSubmission>); |
137 void submit(Event*, bool activateSubmitButton, bool processingUserGesture, F
ormSubmissionTrigger); | 137 void submit(Event*, bool activateSubmitButton, bool processingUserGesture, F
ormSubmissionTrigger); |
138 | 138 |
139 void scheduleFormSubmission(PassRefPtrWillBeRawPtr<FormSubmission>); | 139 void scheduleFormSubmission(PassRefPtrWillBeRawPtr<FormSubmission>); |
140 | 140 |
141 void collectAssociatedElements(Node& root, FormAssociatedElement::List&) con
st; | 141 void collectAssociatedElements(Node& root, FormAssociatedElement::List&) con
st; |
142 void collectImageElements(Node& root, WillBeHeapVector<RawPtrWillBeMember<HT
MLImageElement> >&); | 142 void collectImageElements(Node& root, WillBeHeapVector<RawPtrWillBeMember<HT
MLImageElement> >&); |
143 | 143 |
144 // Returns true if the submission should proceed. | 144 // Returns true if the submission should proceed. |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 bool m_isInResetFunction : 1; | 179 bool m_isInResetFunction : 1; |
180 | 180 |
181 bool m_wasDemoted : 1; | 181 bool m_wasDemoted : 1; |
182 | 182 |
183 OwnPtrWillBeMember<GenericEventQueue> m_pendingAutocompleteEventsQueue; | 183 OwnPtrWillBeMember<GenericEventQueue> m_pendingAutocompleteEventsQueue; |
184 }; | 184 }; |
185 | 185 |
186 } // namespace blink | 186 } // namespace blink |
187 | 187 |
188 #endif // HTMLFormElement_h | 188 #endif // HTMLFormElement_h |
OLD | NEW |