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 20 matching lines...) Expand all Loading... |
31 #include "core/html/shadow/DateTimeFieldElement.h" | 31 #include "core/html/shadow/DateTimeFieldElement.h" |
32 | 32 |
33 namespace WebCore { | 33 namespace WebCore { |
34 | 34 |
35 // DateTimeSymbolicFieldElement represents non-numeric field of data time | 35 // DateTimeSymbolicFieldElement represents non-numeric field of data time |
36 // format, such as: AM/PM, and month. | 36 // format, such as: AM/PM, and month. |
37 class DateTimeSymbolicFieldElement : public DateTimeFieldElement, public TypeAhe
adDataSource { | 37 class DateTimeSymbolicFieldElement : public DateTimeFieldElement, public TypeAhe
adDataSource { |
38 WTF_MAKE_NONCOPYABLE(DateTimeSymbolicFieldElement); | 38 WTF_MAKE_NONCOPYABLE(DateTimeSymbolicFieldElement); |
39 | 39 |
40 protected: | 40 protected: |
41 DateTimeSymbolicFieldElement(Document*, FieldOwner&, const Vector<String>&,
int minimum, int maximum); | 41 DateTimeSymbolicFieldElement(Document&, FieldOwner&, const Vector<String>&,
int minimum, int maximum); |
42 size_t symbolsSize() const { return m_symbols.size(); } | 42 size_t symbolsSize() const { return m_symbols.size(); } |
43 virtual bool hasValue() const OVERRIDE FINAL; | 43 virtual bool hasValue() const OVERRIDE FINAL; |
44 void initialize(const AtomicString& pseudo, const String& axHelpText); | 44 void initialize(const AtomicString& pseudo, const String& axHelpText); |
45 virtual void setEmptyValue(EventBehavior = DispatchNoEvent) OVERRIDE FINAL; | 45 virtual void setEmptyValue(EventBehavior = DispatchNoEvent) OVERRIDE FINAL; |
46 virtual void setValueAsInteger(int, EventBehavior = DispatchNoEvent) OVERRID
E FINAL; | 46 virtual void setValueAsInteger(int, EventBehavior = DispatchNoEvent) OVERRID
E FINAL; |
47 virtual int valueAsInteger() const OVERRIDE FINAL; | 47 virtual int valueAsInteger() const OVERRIDE FINAL; |
48 | 48 |
49 private: | 49 private: |
50 static const int invalidIndex = -1; | 50 static const int invalidIndex = -1; |
51 | 51 |
(...skipping 22 matching lines...) Expand all Loading... |
74 int m_selectedIndex; | 74 int m_selectedIndex; |
75 TypeAhead m_typeAhead; | 75 TypeAhead m_typeAhead; |
76 const int m_minimumIndex; | 76 const int m_minimumIndex; |
77 const int m_maximumIndex; | 77 const int m_maximumIndex; |
78 }; | 78 }; |
79 | 79 |
80 } // namespace WebCore | 80 } // namespace WebCore |
81 | 81 |
82 #endif | 82 #endif |
83 #endif | 83 #endif |
OLD | NEW |