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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 void setDisabled(); | 71 void setDisabled(); |
72 virtual void setEmptyValue(EventBehavior = DispatchNoEvent) = 0; | 72 virtual void setEmptyValue(EventBehavior = DispatchNoEvent) = 0; |
73 virtual void setValueAsDate(const DateComponents&) = 0; | 73 virtual void setValueAsDate(const DateComponents&) = 0; |
74 virtual void setValueAsDateTimeFieldsState(const DateTimeFieldsState&) = 0; | 74 virtual void setValueAsDateTimeFieldsState(const DateTimeFieldsState&) = 0; |
75 virtual void setValueAsInteger(int, EventBehavior = DispatchNoEvent) = 0; | 75 virtual void setValueAsInteger(int, EventBehavior = DispatchNoEvent) = 0; |
76 virtual void stepDown() = 0; | 76 virtual void stepDown() = 0; |
77 virtual void stepUp() = 0; | 77 virtual void stepUp() = 0; |
78 virtual String value() const = 0; | 78 virtual String value() const = 0; |
79 virtual String visibleValue() const = 0; | 79 virtual String visibleValue() const = 0; |
80 | 80 |
81 virtual void acceptHeapVisitor(Visitor*) const OVERRIDE; | |
82 | |
83 protected: | 81 protected: |
84 DateTimeFieldElement(Handle<Document>, FieldOwner&); | 82 DateTimeFieldElement(Handle<Document>, FieldOwner&); |
85 virtual void didBlur(); | 83 virtual void didBlur(); |
86 virtual void didFocus(); | 84 virtual void didFocus(); |
87 void focusOnNextField(); | 85 void focusOnNextField(); |
88 virtual void handleKeyboardEvent(KeyboardEvent*) = 0; | 86 virtual void handleKeyboardEvent(KeyboardEvent*) = 0; |
89 void initialize(const AtomicString& pseudo, const String& axHelpText, int ax
Minimum, int axMaximum); | 87 void initialize(const AtomicString& pseudo, const String& axHelpText, int ax
Minimum, int axMaximum); |
90 Locale& localeForOwner() const; | 88 Locale& localeForOwner() const; |
91 AtomicString localeIdentifier() const; | 89 AtomicString localeIdentifier() const; |
92 void updateVisibleValue(EventBehavior); | 90 void updateVisibleValue(EventBehavior); |
93 virtual int valueAsInteger() const = 0; | 91 virtual int valueAsInteger() const = 0; |
94 virtual int valueForARIAValueNow() const; | 92 virtual int valueForARIAValueNow() const; |
95 | 93 |
| 94 virtual void acceptHeapVisitor(Visitor*) const OVERRIDE; |
| 95 |
96 private: | 96 private: |
97 void defaultKeyboardEventHandler(KeyboardEvent*); | 97 void defaultKeyboardEventHandler(KeyboardEvent*); |
98 virtual bool isDateTimeFieldElement() const OVERRIDE; | 98 virtual bool isDateTimeFieldElement() const OVERRIDE; |
99 bool isFieldOwnerDisabled() const; | 99 bool isFieldOwnerDisabled() const; |
100 bool isFieldOwnerReadOnly() const; | 100 bool isFieldOwnerReadOnly() const; |
101 virtual bool supportsFocus() const OVERRIDE FINAL; | 101 virtual bool supportsFocus() const OVERRIDE FINAL; |
102 | 102 |
103 FieldOwner* m_fieldOwner; | 103 FieldOwner* m_fieldOwner; |
104 }; | 104 }; |
105 | 105 |
106 } // namespace WebCore | 106 } // namespace WebCore |
107 | 107 |
108 #endif | 108 #endif |
109 #endif | 109 #endif |
OLD | NEW |