| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 class BaseMultipleFieldsDateAndTimeInputType | 46 class BaseMultipleFieldsDateAndTimeInputType |
| 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 public: | 52 public: |
| 53 virtual bool isValidFormat(bool hasYear, bool hasMonth, bool hasWeek, bool h
asDay, bool hasAMPM, bool hasHour, bool hasMinute, bool hasSecond) const = 0; | 53 virtual bool isValidFormat(bool hasYear, bool hasMonth, bool hasWeek, bool h
asDay, bool hasAMPM, bool hasHour, bool hasMinute, bool hasSecond) const = 0; |
| 54 | 54 |
| 55 protected: | 55 protected: |
| 56 BaseMultipleFieldsDateAndTimeInputType(HTMLInputElement*); | 56 BaseMultipleFieldsDateAndTimeInputType(HTMLInputElement&); |
| 57 virtual ~BaseMultipleFieldsDateAndTimeInputType(); | 57 virtual ~BaseMultipleFieldsDateAndTimeInputType(); |
| 58 | 58 |
| 59 virtual void setupLayoutParameters(DateTimeEditElement::LayoutParameters&, c
onst DateComponents&) const = 0; | 59 virtual void setupLayoutParameters(DateTimeEditElement::LayoutParameters&, c
onst DateComponents&) const = 0; |
| 60 bool shouldHaveSecondField(const DateComponents&) const; | 60 bool shouldHaveSecondField(const DateComponents&) const; |
| 61 | 61 |
| 62 private: | 62 private: |
| 63 // DateTimeEditElement::EditControlOwner functions | 63 // DateTimeEditElement::EditControlOwner functions |
| 64 virtual void didBlurFromControl() OVERRIDE FINAL; | 64 virtual void didBlurFromControl() OVERRIDE FINAL; |
| 65 virtual void didFocusOnControl() OVERRIDE FINAL; | 65 virtual void didFocusOnControl() OVERRIDE FINAL; |
| 66 virtual void editControlValueChanged() OVERRIDE FINAL; | 66 virtual void editControlValueChanged() OVERRIDE FINAL; |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 | 121 |
| 122 bool m_isDestroyingShadowSubtree; | 122 bool m_isDestroyingShadowSubtree; |
| 123 bool m_pickerIndicatorIsVisible; | 123 bool m_pickerIndicatorIsVisible; |
| 124 bool m_pickerIndicatorIsAlwaysVisible; | 124 bool m_pickerIndicatorIsAlwaysVisible; |
| 125 }; | 125 }; |
| 126 | 126 |
| 127 } // namespace WebCore | 127 } // namespace WebCore |
| 128 | 128 |
| 129 #endif | 129 #endif |
| 130 #endif // BaseMultipleFieldsDateAndTimeInputType_h | 130 #endif // BaseMultipleFieldsDateAndTimeInputType_h |
| OLD | NEW |