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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 }; | 83 }; |
84 | 84 |
85 static PassRefPtr<DateTimeEditElement> create(Document*, EditControlOwner&); | 85 static PassRefPtr<DateTimeEditElement> create(Document*, EditControlOwner&); |
86 | 86 |
87 virtual ~DateTimeEditElement(); | 87 virtual ~DateTimeEditElement(); |
88 void addField(PassRefPtr<DateTimeFieldElement>); | 88 void addField(PassRefPtr<DateTimeFieldElement>); |
89 bool anyEditableFieldsHaveValues() const; | 89 bool anyEditableFieldsHaveValues() const; |
90 void blurByOwner(); | 90 void blurByOwner(); |
91 virtual void defaultEventHandler(Event*) OVERRIDE; | 91 virtual void defaultEventHandler(Event*) OVERRIDE; |
92 void disabledStateChanged(); | 92 void disabledStateChanged(); |
| 93 Element* fieldsWrapperElement() const; |
93 void focusIfNoFocus(); | 94 void focusIfNoFocus(); |
94 void focusByOwner(); | 95 void focusByOwner(); |
95 bool hasFocusedField(); | 96 bool hasFocusedField(); |
96 void readOnlyStateChanged(); | 97 void readOnlyStateChanged(); |
97 void removeEditControlOwner() { m_editControlOwner = 0; } | 98 void removeEditControlOwner() { m_editControlOwner = 0; } |
98 void resetFields(); | 99 void resetFields(); |
99 void setEmptyValue(const LayoutParameters&, const DateComponents& dateForRea
dOnlyField); | 100 void setEmptyValue(const LayoutParameters&, const DateComponents& dateForRea
dOnlyField); |
100 void setValueAsDate(const LayoutParameters&, const DateComponents&); | 101 void setValueAsDate(const LayoutParameters&, const DateComponents&); |
101 void setValueAsDateTimeFieldsState(const DateTimeFieldsState&); | 102 void setValueAsDateTimeFieldsState(const DateTimeFieldsState&); |
102 void setOnlyYearMonthDay(const DateComponents&); | 103 void setOnlyYearMonthDay(const DateComponents&); |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 virtual AtomicString localeIdentifier() const OVERRIDE FINAL; | 144 virtual AtomicString localeIdentifier() const OVERRIDE FINAL; |
144 | 145 |
145 Vector<DateTimeFieldElement*, maximumNumberOfFields> m_fields; | 146 Vector<DateTimeFieldElement*, maximumNumberOfFields> m_fields; |
146 EditControlOwner* m_editControlOwner; | 147 EditControlOwner* m_editControlOwner; |
147 }; | 148 }; |
148 | 149 |
149 } // namespace WebCore | 150 } // namespace WebCore |
150 | 151 |
151 #endif | 152 #endif |
152 #endif | 153 #endif |
OLD | NEW |