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 15 matching lines...) Expand all Loading... |
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #ifndef TextFieldInputType_h | 31 #ifndef TextFieldInputType_h |
32 #define TextFieldInputType_h | 32 #define TextFieldInputType_h |
33 | 33 |
34 #include "core/html/InputType.h" | 34 #include "core/html/InputType.h" |
35 #include "core/html/shadow/SpinButtonElement.h" | 35 #include "core/html/shadow/SpinButtonElement.h" |
36 #include "core/html/shadow/TextControlInnerElements.h" | |
37 | 36 |
38 namespace WebCore { | 37 namespace WebCore { |
39 | 38 |
40 class FormDataList; | 39 class FormDataList; |
41 | 40 |
42 // The class represents types of which UI contain text fields. | 41 // The class represents types of which UI contain text fields. |
43 // It supports not only the types for BaseTextInputType but also type=number. | 42 // It supports not only the types for BaseTextInputType but also type=number. |
44 class TextFieldInputType : public InputType, protected SpinButtonElement::SpinBu
ttonOwner { | 43 class TextFieldInputType : public InputType, protected SpinButtonElement::SpinBu
ttonOwner { |
45 protected: | 44 protected: |
46 TextFieldInputType(HTMLInputElement*); | 45 TextFieldInputType(HTMLInputElement*); |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 RefPtr<HTMLElement> m_placeholder; | 107 RefPtr<HTMLElement> m_placeholder; |
109 RefPtr<SpinButtonElement> m_innerSpinButton; | 108 RefPtr<SpinButtonElement> m_innerSpinButton; |
110 #if ENABLE(INPUT_SPEECH) | 109 #if ENABLE(INPUT_SPEECH) |
111 RefPtr<HTMLElement> m_speechButton; | 110 RefPtr<HTMLElement> m_speechButton; |
112 #endif | 111 #endif |
113 }; | 112 }; |
114 | 113 |
115 } // namespace WebCore | 114 } // namespace WebCore |
116 | 115 |
117 #endif // TextFieldInputType_h | 116 #endif // TextFieldInputType_h |
OLD | NEW |