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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 bool isDisabled() const; | 129 bool isDisabled() const; |
130 bool isReadOnly() const; | 130 bool isReadOnly() const; |
131 void layout(const LayoutParameters&, const DateComponents&); | 131 void layout(const LayoutParameters&, const DateComponents&); |
132 void updateUIState(); | 132 void updateUIState(); |
133 | 133 |
134 // Element function. | 134 // Element function. |
135 virtual PassRefPtr<RenderStyle> customStyleForRenderer() OVERRIDE; | 135 virtual PassRefPtr<RenderStyle> customStyleForRenderer() OVERRIDE; |
136 virtual bool isDateTimeEditElement() const OVERRIDE; | 136 virtual bool isDateTimeEditElement() const OVERRIDE; |
137 | 137 |
138 // DateTimeFieldElement::FieldOwner functions. | 138 // DateTimeFieldElement::FieldOwner functions. |
139 virtual void didBlurFromField() OVERRIDE FINAL; | 139 virtual void didBlurFromField() OVERRIDE; |
140 virtual void didFocusOnField() OVERRIDE FINAL; | 140 virtual void didFocusOnField() OVERRIDE; |
141 virtual void fieldValueChanged() OVERRIDE FINAL; | 141 virtual void fieldValueChanged() OVERRIDE; |
142 virtual bool focusOnNextField(const DateTimeFieldElement&) OVERRIDE FINAL; | 142 virtual bool focusOnNextField(const DateTimeFieldElement&) OVERRIDE; |
143 virtual bool focusOnPreviousField(const DateTimeFieldElement&) OVERRIDE FINA
L; | 143 virtual bool focusOnPreviousField(const DateTimeFieldElement&) OVERRIDE; |
144 virtual bool isFieldOwnerDisabled() const OVERRIDE FINAL; | 144 virtual bool isFieldOwnerDisabled() const OVERRIDE; |
145 virtual bool isFieldOwnerReadOnly() const OVERRIDE FINAL; | 145 virtual bool isFieldOwnerReadOnly() const OVERRIDE; |
146 virtual AtomicString localeIdentifier() const OVERRIDE FINAL; | 146 virtual AtomicString localeIdentifier() const OVERRIDE; |
147 | 147 |
148 Vector<DateTimeFieldElement*, maximumNumberOfFields> m_fields; | 148 Vector<DateTimeFieldElement*, maximumNumberOfFields> m_fields; |
149 EditControlOwner* m_editControlOwner; | 149 EditControlOwner* m_editControlOwner; |
150 }; | 150 }; |
151 | 151 |
152 DEFINE_TYPE_CASTS(DateTimeEditElement, Element, element, element->isDateTimeEdit
Element(), element.isDateTimeEditElement()); | 152 DEFINE_TYPE_CASTS(DateTimeEditElement, Element, element, element->isDateTimeEdit
Element(), element.isDateTimeEditElement()); |
153 | 153 |
154 } // namespace WebCore | 154 } // namespace WebCore |
155 | 155 |
156 #endif | 156 #endif |
157 #endif | 157 #endif |
OLD | NEW |