| 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 const AtomicString& action() const; | 88 const AtomicString& action() const; |
| 89 | 89 |
| 90 String method() const; | 90 String method() const; |
| 91 void setMethod(const AtomicString&); | 91 void setMethod(const AtomicString&); |
| 92 | 92 |
| 93 bool wasUserSubmitted() const; | 93 bool wasUserSubmitted() const; |
| 94 | 94 |
| 95 HTMLFormControlElement* defaultButton() const; | 95 HTMLFormControlElement* defaultButton() const; |
| 96 | 96 |
| 97 bool checkValidity(); | 97 bool checkValidity(); |
| 98 bool reportValidity(); |
| 98 virtual bool matchesValidityPseudoClasses() const override final; | 99 virtual bool matchesValidityPseudoClasses() const override final; |
| 99 virtual bool isValidElement() override final; | 100 virtual bool isValidElement() override final; |
| 100 | 101 |
| 101 enum AutocompleteResult { | 102 enum AutocompleteResult { |
| 102 AutocompleteResultSuccess, | 103 AutocompleteResultSuccess, |
| 103 AutocompleteResultErrorDisabled, | 104 AutocompleteResultErrorDisabled, |
| 104 AutocompleteResultErrorCancel, | 105 AutocompleteResultErrorCancel, |
| 105 AutocompleteResultErrorInvalid, | 106 AutocompleteResultErrorInvalid, |
| 106 }; | 107 }; |
| 107 | 108 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 | 140 |
| 140 void submitDialog(PassRefPtrWillBeRawPtr<FormSubmission>); | 141 void submitDialog(PassRefPtrWillBeRawPtr<FormSubmission>); |
| 141 void submit(Event*, bool activateSubmitButton, bool processingUserGesture, F
ormSubmissionTrigger); | 142 void submit(Event*, bool activateSubmitButton, bool processingUserGesture, F
ormSubmissionTrigger); |
| 142 | 143 |
| 143 void scheduleFormSubmission(PassRefPtrWillBeRawPtr<FormSubmission>); | 144 void scheduleFormSubmission(PassRefPtrWillBeRawPtr<FormSubmission>); |
| 144 | 145 |
| 145 void collectAssociatedElements(Node& root, FormAssociatedElement::List&) con
st; | 146 void collectAssociatedElements(Node& root, FormAssociatedElement::List&) con
st; |
| 146 void collectImageElements(Node& root, WillBeHeapVector<RawPtrWillBeMember<HT
MLImageElement> >&); | 147 void collectImageElements(Node& root, WillBeHeapVector<RawPtrWillBeMember<HT
MLImageElement> >&); |
| 147 | 148 |
| 148 // Returns true if the submission should proceed. | 149 // Returns true if the submission should proceed. |
| 149 bool validateInteractively(Event*); | 150 bool validateInteractively(); |
| 150 | 151 |
| 151 // Validates each of the controls, and stores controls of which 'invalid' | 152 // Validates each of the controls, and stores controls of which 'invalid' |
| 152 // event was not canceled to the specified vector. Returns true if there | 153 // event was not canceled to the specified vector. Returns true if there |
| 153 // are any invalid controls in this form. | 154 // are any invalid controls in this form. |
| 154 bool checkInvalidControlsAndCollectUnhandled(WillBeHeapVector<RefPtrWillBeMe
mber<FormAssociatedElement> >*, CheckValidityEventBehavior); | 155 bool checkInvalidControlsAndCollectUnhandled(WillBeHeapVector<RefPtrWillBeMe
mber<HTMLFormControlElement> >*, CheckValidityEventBehavior); |
| 155 | 156 |
| 156 Element* elementFromPastNamesMap(const AtomicString&); | 157 Element* elementFromPastNamesMap(const AtomicString&); |
| 157 void addToPastNamesMap(Element*, const AtomicString& pastName); | 158 void addToPastNamesMap(Element*, const AtomicString& pastName); |
| 158 void removeFromPastNamesMap(HTMLElement&); | 159 void removeFromPastNamesMap(HTMLElement&); |
| 159 | 160 |
| 160 typedef WillBeHeapHashMap<AtomicString, RawPtrWillBeMember<Element> > PastNa
mesMap; | 161 typedef WillBeHeapHashMap<AtomicString, RawPtrWillBeMember<Element> > PastNa
mesMap; |
| 161 | 162 |
| 162 FormSubmission::Attributes m_attributes; | 163 FormSubmission::Attributes m_attributes; |
| 163 OwnPtrWillBeMember<PastNamesMap> m_pastNamesMap; | 164 OwnPtrWillBeMember<PastNamesMap> m_pastNamesMap; |
| 164 | 165 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 183 bool m_isInResetFunction : 1; | 184 bool m_isInResetFunction : 1; |
| 184 | 185 |
| 185 bool m_wasDemoted : 1; | 186 bool m_wasDemoted : 1; |
| 186 | 187 |
| 187 OwnPtrWillBeMember<GenericEventQueue> m_pendingAutocompleteEventsQueue; | 188 OwnPtrWillBeMember<GenericEventQueue> m_pendingAutocompleteEventsQueue; |
| 188 }; | 189 }; |
| 189 | 190 |
| 190 } // namespace blink | 191 } // namespace blink |
| 191 | 192 |
| 192 #endif // HTMLFormElement_h | 193 #endif // HTMLFormElement_h |
| OLD | NEW |