| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 | 74 |
| 75 // Determines whether or not a control will be automatically focused. | 75 // Determines whether or not a control will be automatically focused. |
| 76 virtual bool autofocus() const; | 76 virtual bool autofocus() const; |
| 77 | 77 |
| 78 bool required() const; | 78 bool required() const; |
| 79 | 79 |
| 80 const AtomicString& type() const { return formControlType(); } | 80 const AtomicString& type() const { return formControlType(); } |
| 81 | 81 |
| 82 virtual const AtomicString& formControlType() const OVERRIDE = 0; | 82 virtual const AtomicString& formControlType() const OVERRIDE = 0; |
| 83 virtual bool isEnabledFormControl() const { return !disabled(); } | 83 virtual bool isEnabledFormControl() const { return !disabled(); } |
| 84 virtual bool shouldMatchReadOnlySelector() const OVERRIDE; | |
| 85 virtual bool shouldMatchReadWriteSelector() const OVERRIDE; | |
| 86 | 84 |
| 87 virtual bool canTriggerImplicitSubmission() const { return false; } | 85 virtual bool canTriggerImplicitSubmission() const { return false; } |
| 88 | 86 |
| 89 // Override in derived classes to get the encoded name=value pair for submit
ting. | 87 // Override in derived classes to get the encoded name=value pair for submit
ting. |
| 90 // Return true for a successful control (see HTML4-17.13.2). | 88 // Return true for a successful control (see HTML4-17.13.2). |
| 91 virtual bool appendFormData(FormDataList&, bool) { return false; } | 89 virtual bool appendFormData(FormDataList&, bool) { return false; } |
| 92 | 90 |
| 93 virtual bool isSuccessfulSubmitButton() const { return false; } | 91 virtual bool isSuccessfulSubmitButton() const { return false; } |
| 94 virtual bool isActivatedSubmit() const { return false; } | 92 virtual bool isActivatedSubmit() const { return false; } |
| 95 virtual void setActivatedSubmit(bool) { } | 93 virtual void setActivatedSubmit(bool) { } |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 bool m_isValid : 1; | 170 bool m_isValid : 1; |
| 173 | 171 |
| 174 bool m_wasChangedSinceLastFormControlChangeEvent : 1; | 172 bool m_wasChangedSinceLastFormControlChangeEvent : 1; |
| 175 | 173 |
| 176 bool m_hasAutofocused : 1; | 174 bool m_hasAutofocused : 1; |
| 177 }; | 175 }; |
| 178 | 176 |
| 179 } // namespace | 177 } // namespace |
| 180 | 178 |
| 181 #endif | 179 #endif |
| OLD | NEW |