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 24 matching lines...) Expand all Loading... |
35 #include "core/html/shadow/SpinButtonElement.h" | 35 #include "core/html/shadow/SpinButtonElement.h" |
36 | 36 |
37 namespace WebCore { | 37 namespace WebCore { |
38 | 38 |
39 class FormDataList; | 39 class FormDataList; |
40 | 40 |
41 // The class represents types of which UI contain text fields. | 41 // The class represents types of which UI contain text fields. |
42 // 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. |
43 class TextFieldInputType : public InputType, protected SpinButtonElement::SpinBu
ttonOwner { | 43 class TextFieldInputType : public InputType, protected SpinButtonElement::SpinBu
ttonOwner { |
44 protected: | 44 protected: |
45 TextFieldInputType(HTMLInputElement*); | 45 TextFieldInputType(HTMLInputElement&); |
46 virtual ~TextFieldInputType(); | 46 virtual ~TextFieldInputType(); |
47 virtual bool canSetSuggestedValue() OVERRIDE; | 47 virtual bool canSetSuggestedValue() OVERRIDE; |
48 virtual void handleKeydownEvent(KeyboardEvent*) OVERRIDE; | 48 virtual void handleKeydownEvent(KeyboardEvent*) OVERRIDE; |
49 void handleKeydownEventForSpinButton(KeyboardEvent*); | 49 void handleKeydownEventForSpinButton(KeyboardEvent*); |
50 | 50 |
51 virtual HTMLElement* innerTextElement() const OVERRIDE; | 51 virtual HTMLElement* innerTextElement() const OVERRIDE; |
52 | 52 |
53 protected: | 53 protected: |
54 virtual bool needsContainer() const; | 54 virtual bool needsContainer() const; |
55 virtual bool shouldHaveSpinButton() const; | 55 virtual bool shouldHaveSpinButton() const; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 virtual void spinButtonStepUp() OVERRIDE; | 96 virtual void spinButtonStepUp() OVERRIDE; |
97 | 97 |
98 SpinButtonElement* spinButtonElement() const; | 98 SpinButtonElement* spinButtonElement() const; |
99 | 99 |
100 RefPtr<HTMLElement> m_innerText; | 100 RefPtr<HTMLElement> m_innerText; |
101 }; | 101 }; |
102 | 102 |
103 } // namespace WebCore | 103 } // namespace WebCore |
104 | 104 |
105 #endif // TextFieldInputType_h | 105 #endif // TextFieldInputType_h |
OLD | NEW |