| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 | 121 |
| 122 DateTimeFieldElement* fieldAt(size_t) const; | 122 DateTimeFieldElement* fieldAt(size_t) const; |
| 123 size_t fieldIndexOf(const DateTimeFieldElement&) const; | 123 size_t fieldIndexOf(const DateTimeFieldElement&) const; |
| 124 DateTimeFieldElement* focusedField() const; | 124 DateTimeFieldElement* focusedField() const; |
| 125 size_t focusedFieldIndex() const; | 125 size_t focusedFieldIndex() const; |
| 126 bool isDisabled() const; | 126 bool isDisabled() const; |
| 127 bool isReadOnly() const; | 127 bool isReadOnly() const; |
| 128 void layout(const LayoutParameters&, const DateComponents&); | 128 void layout(const LayoutParameters&, const DateComponents&); |
| 129 void updateUIState(); | 129 void updateUIState(); |
| 130 | 130 |
| 131 // Element function. |
| 132 virtual PassRefPtr<RenderStyle> customStyleForRenderer() OVERRIDE; |
| 133 |
| 131 // DateTimeFieldElement::FieldOwner functions. | 134 // DateTimeFieldElement::FieldOwner functions. |
| 132 virtual void didBlurFromField() OVERRIDE FINAL; | 135 virtual void didBlurFromField() OVERRIDE FINAL; |
| 133 virtual void didFocusOnField() OVERRIDE FINAL; | 136 virtual void didFocusOnField() OVERRIDE FINAL; |
| 134 virtual void fieldValueChanged() OVERRIDE FINAL; | 137 virtual void fieldValueChanged() OVERRIDE FINAL; |
| 135 virtual bool focusOnNextField(const DateTimeFieldElement&) OVERRIDE FINAL; | 138 virtual bool focusOnNextField(const DateTimeFieldElement&) OVERRIDE FINAL; |
| 136 virtual bool focusOnPreviousField(const DateTimeFieldElement&) OVERRIDE FINA
L; | 139 virtual bool focusOnPreviousField(const DateTimeFieldElement&) OVERRIDE FINA
L; |
| 137 virtual bool isFieldOwnerDisabledOrReadOnly() const OVERRIDE FINAL; | 140 virtual bool isFieldOwnerDisabledOrReadOnly() const OVERRIDE FINAL; |
| 138 virtual AtomicString localeIdentifier() const OVERRIDE FINAL; | 141 virtual AtomicString localeIdentifier() const OVERRIDE FINAL; |
| 139 | 142 |
| 140 Vector<DateTimeFieldElement*, maximumNumberOfFields> m_fields; | 143 Vector<DateTimeFieldElement*, maximumNumberOfFields> m_fields; |
| 141 EditControlOwner* m_editControlOwner; | 144 EditControlOwner* m_editControlOwner; |
| 142 }; | 145 }; |
| 143 | 146 |
| 144 } // namespace WebCore | 147 } // namespace WebCore |
| 145 | 148 |
| 146 #endif | 149 #endif |
| 147 #endif | 150 #endif |
| OLD | NEW |