| 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 static PassRefPtr<DateTimeHourFieldElement> create(Document*, FieldOwner&, i
nt minimum, int maximum, const DateTimeNumericFieldElement::Parameters&); | 75 static PassRefPtr<DateTimeHourFieldElement> create(Document*, FieldOwner&, i
nt minimum, int maximum, const DateTimeNumericFieldElement::Parameters&); |
| 76 | 76 |
| 77 private: | 77 private: |
| 78 DateTimeHourFieldElement(Document*, FieldOwner&, int minimum, int maximum, c
onst DateTimeNumericFieldElement::Parameters&); | 78 DateTimeHourFieldElement(Document*, FieldOwner&, int minimum, int maximum, c
onst DateTimeNumericFieldElement::Parameters&); |
| 79 | 79 |
| 80 // DateTimeFieldElement functions. | 80 // DateTimeFieldElement functions. |
| 81 virtual void populateDateTimeFieldsState(DateTimeFieldsState&) OVERRIDE FINA
L; | 81 virtual void populateDateTimeFieldsState(DateTimeFieldsState&) OVERRIDE FINA
L; |
| 82 virtual void setValueAsDate(const DateComponents&) OVERRIDE FINAL; | 82 virtual void setValueAsDate(const DateComponents&) OVERRIDE FINAL; |
| 83 virtual void setValueAsDateTimeFieldsState(const DateTimeFieldsState&) OVERR
IDE FINAL; | 83 virtual void setValueAsDateTimeFieldsState(const DateTimeFieldsState&) OVERR
IDE FINAL; |
| 84 virtual void setValueAsInteger(int, EventBehavior = DispatchNoEvent) OVERRID
E FINAL; | 84 virtual void setValueAsInteger(int, EventBehavior = DispatchNoEvent) OVERRID
E FINAL; |
| 85 virtual int valueAsInteger() const OVERRIDE FINAL; | |
| 86 | 85 |
| 87 const int m_alignment; | 86 const int m_alignment; |
| 88 }; | 87 }; |
| 89 | 88 |
| 90 class DateTimeMillisecondFieldElement : public DateTimeNumericFieldElement { | 89 class DateTimeMillisecondFieldElement : public DateTimeNumericFieldElement { |
| 91 WTF_MAKE_NONCOPYABLE(DateTimeMillisecondFieldElement); | 90 WTF_MAKE_NONCOPYABLE(DateTimeMillisecondFieldElement); |
| 92 | 91 |
| 93 public: | 92 public: |
| 94 static PassRefPtr<DateTimeMillisecondFieldElement> create(Document*, FieldOw
ner&, const DateTimeNumericFieldElement::Parameters&); | 93 static PassRefPtr<DateTimeMillisecondFieldElement> create(Document*, FieldOw
ner&, const DateTimeNumericFieldElement::Parameters&); |
| 95 | 94 |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 virtual int defaultValueForStepUp() const OVERRIDE FINAL; | 212 virtual int defaultValueForStepUp() const OVERRIDE FINAL; |
| 214 | 213 |
| 215 bool m_minIsSpecified; | 214 bool m_minIsSpecified; |
| 216 bool m_maxIsSpecified; | 215 bool m_maxIsSpecified; |
| 217 }; | 216 }; |
| 218 | 217 |
| 219 } // namespace WebCore | 218 } // namespace WebCore |
| 220 | 219 |
| 221 #endif | 220 #endif |
| 222 #endif | 221 #endif |
| OLD | NEW |