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

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

Issue 19510005: [oilpan] Completely move HTMLFormControlElement's hierarchy to the managed heap Base URL: svn://svn.chromium.org/blink/branches/oilpan
Patch Set: Created 7 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
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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 String action() const; 87 String action() const;
88 void setAction(const String&); 88 void setAction(const String&);
89 89
90 String method() const; 90 String method() const;
91 void setMethod(const String&); 91 void setMethod(const String&);
92 92
93 virtual String target() const; 93 virtual String target() const;
94 94
95 bool wasUserSubmitted() const; 95 bool wasUserSubmitted() const;
96 96
97 HTMLFormControlElement* defaultButton() const; 97 Result<HTMLFormControlElement> defaultButton() const;
98 98
99 bool checkValidity(); 99 bool checkValidity();
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 HTMLFormControlElement* elementForAlias(const AtomicString&); 114 Result<HTMLFormControlElement> elementForAlias(const AtomicString&);
115 void addElementAlias(HTMLFormControlElement*, const AtomicString& alias); 115 void addElementAlias(Handle<HTMLFormControlElement>, const AtomicString& ali as);
116 116
117 CheckedRadioButtons& checkedRadioButtons() { return m_checkedRadioButtons; } 117 CheckedRadioButtons& checkedRadioButtons() { return m_checkedRadioButtons; }
118 118
119 const Vector<FormAssociatedElement*>& associatedElements() const { return m_ associatedElements; } 119 const Vector<FormAssociatedElement*>& associatedElements() const { return m_ associatedElements; }
120 const Vector<HTMLImageElement*>& imageElements() const { return m_imageEleme nts; } 120 const Vector<HTMLImageElement*>& imageElements() const { return m_imageEleme nts; }
121 121
122 void getTextFieldValues(StringPairVector& fieldNamesAndValues) const; 122 void getTextFieldValues(StringPairVector& fieldNamesAndValues) const;
123 123
124 private: 124 private:
125 HTMLFormElement(const QualifiedName&, Document*); 125 HTMLFormElement(const QualifiedName&, Document*);
(...skipping 18 matching lines...) Expand all
144 unsigned formElementIndex(FormAssociatedElement*); 144 unsigned formElementIndex(FormAssociatedElement*);
145 145
146 // Returns true if the submission should proceed. 146 // Returns true if the submission should proceed.
147 bool validateInteractively(Event*); 147 bool validateInteractively(Event*);
148 148
149 // Validates each of the controls, and stores controls of which 'invalid' 149 // Validates each of the controls, and stores controls of which 'invalid'
150 // event was not canceled to the specified vector. Returns true if there 150 // event was not canceled to the specified vector. Returns true if there
151 // are any invalid controls in this form. 151 // are any invalid controls in this form.
152 bool checkInvalidControlsAndCollectUnhandled(Vector<RefPtr<FormAssociatedEle ment> >&); 152 bool checkInvalidControlsAndCollectUnhandled(Vector<RefPtr<FormAssociatedEle ment> >&);
153 153
154 typedef HashMap<RefPtr<AtomicStringImpl>, RefPtr<HTMLFormControlElement> > A liasMap; 154 typedef HashMap<RefPtr<AtomicStringImpl>, Persistent<HTMLFormControlElement> > AliasMap;
155 155
156 FormSubmission::Attributes m_attributes; 156 FormSubmission::Attributes m_attributes;
157 OwnPtr<AliasMap> m_elementAliases; 157 OwnPtr<AliasMap> m_elementAliases;
158 158
159 CheckedRadioButtons m_checkedRadioButtons; 159 CheckedRadioButtons m_checkedRadioButtons;
160 160
161 unsigned m_associatedElementsBeforeIndex; 161 unsigned m_associatedElementsBeforeIndex;
162 unsigned m_associatedElementsAfterIndex; 162 unsigned m_associatedElementsAfterIndex;
163 Vector<FormAssociatedElement*> m_associatedElements; 163 Vector<FormAssociatedElement*> m_associatedElements;
164 Vector<HTMLImageElement*> m_imageElements; 164 Vector<HTMLImageElement*> m_imageElements;
165 165
166 bool m_wasUserSubmitted; 166 bool m_wasUserSubmitted;
167 bool m_isSubmittingOrPreparingForSubmission; 167 bool m_isSubmittingOrPreparingForSubmission;
168 bool m_shouldSubmit; 168 bool m_shouldSubmit;
169 169
170 bool m_isInResetFunction; 170 bool m_isInResetFunction;
171 171
172 bool m_wasDemoted; 172 bool m_wasDemoted;
173 173
174 void requestAutocompleteTimerFired(Timer<HTMLFormElement>*); 174 void requestAutocompleteTimerFired(Timer<HTMLFormElement>*);
175 175
176 Vector<RefPtr<Event> > m_pendingAutocompleteEvents; 176 Vector<RefPtr<Event> > m_pendingAutocompleteEvents;
177 Timer<HTMLFormElement> m_requestAutocompleteTimer; 177 Timer<HTMLFormElement> m_requestAutocompleteTimer;
178 }; 178 };
179 179
180 } // namespace WebCore 180 } // namespace WebCore
181 181
182 #endif // HTMLFormElement_h 182 #endif // HTMLFormElement_h
OLDNEW
« no previous file with comments | « Source/core/html/HTMLFormControlElementWithState.cpp ('k') | Source/core/html/HTMLFormElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698