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

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

Issue 1764063002: Rename two functions related to 'default button' (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 84
85 bool noValidate() const; 85 bool noValidate() const;
86 86
87 const AtomicString& action() const; 87 const AtomicString& action() const;
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 // Find the 'default button.'
95 // https://html.spec.whatwg.org/multipage/forms.html#default-button
96 HTMLFormControlElement* findDefaultButton() const;
95 97
96 bool checkValidity(); 98 bool checkValidity();
97 bool reportValidity(); 99 bool reportValidity();
98 bool matchesValidityPseudoClasses() const final; 100 bool matchesValidityPseudoClasses() const final;
99 bool isValidElement() final; 101 bool isValidElement() final;
100 102
101 enum AutocompleteResult { 103 enum AutocompleteResult {
102 AutocompleteResultSuccess, 104 AutocompleteResultSuccess,
103 AutocompleteResultErrorDisabled, 105 AutocompleteResultErrorDisabled,
104 AutocompleteResultErrorCancel, 106 AutocompleteResultErrorCancel,
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 bool m_isInResetFunction : 1; 186 bool m_isInResetFunction : 1;
185 187
186 bool m_wasDemoted : 1; 188 bool m_wasDemoted : 1;
187 189
188 OwnPtrWillBeMember<GenericEventQueue> m_pendingAutocompleteEventsQueue; 190 OwnPtrWillBeMember<GenericEventQueue> m_pendingAutocompleteEventsQueue;
189 }; 191 };
190 192
191 } // namespace blink 193 } // namespace blink
192 194
193 #endif // HTMLFormElement_h 195 #endif // HTMLFormElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698