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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 | 83 |
84 virtual bool canBeSuccessfulSubmitButton() const { return false; } | 84 virtual bool canBeSuccessfulSubmitButton() const { return false; } |
85 bool isSuccessfulSubmitButton() const; | 85 bool isSuccessfulSubmitButton() const; |
86 virtual bool isActivatedSubmit() const { return false; } | 86 virtual bool isActivatedSubmit() const { return false; } |
87 virtual void setActivatedSubmit(bool) { } | 87 virtual void setActivatedSubmit(bool) { } |
88 | 88 |
89 virtual bool willValidate() const override; | 89 virtual bool willValidate() const override; |
90 | 90 |
91 void updateVisibleValidationMessage(); | 91 void updateVisibleValidationMessage(); |
92 void hideVisibleValidationMessage(); | 92 void hideVisibleValidationMessage(); |
93 bool checkValidity(WillBeHeapVector<RefPtrWillBeMember<FormAssociatedElement
> >* unhandledInvalidControls = 0, CheckValidityEventBehavior = CheckValidityDis
patchInvalidEvent); | 93 bool checkValidity(WillBeHeapVector<RefPtrWillBeMember<HTMLFormControlElemen
t> >* unhandledInvalidControls = 0, CheckValidityEventBehavior = CheckValidityDi
spatchInvalidEvent); |
| 94 bool reportValidity(); |
| 95 // This must be called only after the caller check the element is focusable. |
| 96 void showValidationMessage(); |
94 // This must be called when a validation constraint or control value is chan
ged. | 97 // This must be called when a validation constraint or control value is chan
ged. |
95 void setNeedsValidityCheck(); | 98 void setNeedsValidityCheck(); |
96 virtual void setCustomValidity(const String&) override final; | 99 virtual void setCustomValidity(const String&) override final; |
97 void findCustomValidationMessageTextDirection(const String& message, TextDir
ection &messageDir, String& subMessage, TextDirection& subMessageDir); | 100 void findCustomValidationMessageTextDirection(const String& message, TextDir
ection &messageDir, String& subMessage, TextDirection& subMessageDir); |
98 | 101 |
99 bool isReadOnly() const { return m_isReadOnly; } | 102 bool isReadOnly() const { return m_isReadOnly; } |
100 bool isDisabledOrReadOnly() const { return isDisabledFormControl() || m_isRe
adOnly; } | 103 bool isDisabledOrReadOnly() const { return isDisabledFormControl() || m_isRe
adOnly; } |
101 | 104 |
102 bool isAutofocusable() const; | 105 bool isAutofocusable() const; |
103 | 106 |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 { | 199 { |
197 return element.isFormControlElement(); | 200 return element.isFormControlElement(); |
198 } | 201 } |
199 | 202 |
200 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLFormControlElement); | 203 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLFormControlElement); |
201 DEFINE_TYPE_CASTS(HTMLFormControlElement, FormAssociatedElement, control, contro
l->isFormControlElement(), control.isFormControlElement()); | 204 DEFINE_TYPE_CASTS(HTMLFormControlElement, FormAssociatedElement, control, contro
l->isFormControlElement(), control.isFormControlElement()); |
202 | 205 |
203 } // namespace | 206 } // namespace |
204 | 207 |
205 #endif | 208 #endif |
OLD | NEW |