OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 : public BaseDateAndTimeInputType | 47 : public BaseDateAndTimeInputType |
48 , protected DateTimeEditElement::EditControlOwner | 48 , protected DateTimeEditElement::EditControlOwner |
49 , protected PickerIndicatorElement::PickerIndicatorOwner | 49 , protected PickerIndicatorElement::PickerIndicatorOwner |
50 , protected SpinButtonElement::SpinButtonOwner | 50 , protected SpinButtonElement::SpinButtonOwner |
51 , protected ClearButtonElement::ClearButtonOwner { | 51 , protected ClearButtonElement::ClearButtonOwner { |
52 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(BaseMultipleFieldsDateAndTimeInputType
); | 52 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(BaseMultipleFieldsDateAndTimeInputType
); |
53 | 53 |
54 public: | 54 public: |
55 virtual bool isValidFormat(bool hasYear, bool hasMonth, bool hasWeek, bool h
asDay, bool hasAMPM, bool hasHour, bool hasMinute, bool hasSecond) const = 0; | 55 virtual bool isValidFormat(bool hasYear, bool hasMonth, bool hasWeek, bool h
asDay, bool hasAMPM, bool hasHour, bool hasMinute, bool hasSecond) const = 0; |
56 | 56 |
| 57 virtual void trace(Visitor* visitor) OVERRIDE { BaseDateAndTimeInputType::tr
ace(visitor); } |
| 58 |
57 protected: | 59 protected: |
58 BaseMultipleFieldsDateAndTimeInputType(HTMLInputElement&); | 60 BaseMultipleFieldsDateAndTimeInputType(HTMLInputElement&); |
59 virtual ~BaseMultipleFieldsDateAndTimeInputType(); | 61 virtual ~BaseMultipleFieldsDateAndTimeInputType(); |
60 | 62 |
61 virtual void setupLayoutParameters(DateTimeEditElement::LayoutParameters&, c
onst DateComponents&) const = 0; | 63 virtual void setupLayoutParameters(DateTimeEditElement::LayoutParameters&, c
onst DateComponents&) const = 0; |
62 bool shouldHaveSecondField(const DateComponents&) const; | 64 bool shouldHaveSecondField(const DateComponents&) const; |
63 | 65 |
64 private: | 66 private: |
65 // DateTimeEditElement::EditControlOwner functions | 67 // DateTimeEditElement::EditControlOwner functions |
66 virtual void didBlurFromControl() OVERRIDE FINAL; | 68 virtual void didBlurFromControl() OVERRIDE FINAL; |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 | 128 |
127 bool m_isDestroyingShadowSubtree; | 129 bool m_isDestroyingShadowSubtree; |
128 bool m_pickerIndicatorIsVisible; | 130 bool m_pickerIndicatorIsVisible; |
129 bool m_pickerIndicatorIsAlwaysVisible; | 131 bool m_pickerIndicatorIsAlwaysVisible; |
130 }; | 132 }; |
131 | 133 |
132 } // namespace WebCore | 134 } // namespace WebCore |
133 | 135 |
134 #endif | 136 #endif |
135 #endif // BaseMultipleFieldsDateAndTimeInputType_h | 137 #endif // BaseMultipleFieldsDateAndTimeInputType_h |
OLD | NEW |