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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 virtual bool isFieldOwnerDisabledOrReadOnly() const = 0; | 58 virtual bool isFieldOwnerDisabledOrReadOnly() const = 0; |
59 virtual AtomicString localeIdentifier() const = 0; | 59 virtual AtomicString localeIdentifier() const = 0; |
60 }; | 60 }; |
61 | 61 |
62 virtual void defaultEventHandler(Event*) OVERRIDE; | 62 virtual void defaultEventHandler(Event*) OVERRIDE; |
63 virtual bool hasValue() const = 0; | 63 virtual bool hasValue() const = 0; |
64 bool isReadOnly() const; | 64 bool isReadOnly() const; |
65 virtual void populateDateTimeFieldsState(DateTimeFieldsState&) = 0; | 65 virtual void populateDateTimeFieldsState(DateTimeFieldsState&) = 0; |
66 void removeEventHandler() { m_fieldOwner = 0; } | 66 void removeEventHandler() { m_fieldOwner = 0; } |
67 void setReadOnly(); | 67 void setReadOnly(); |
68 virtual void setEmptyValue(const DateComponents& dateForReadOnlyField, Event
Behavior = DispatchNoEvent) = 0; | 68 virtual void setEmptyValue(EventBehavior = DispatchNoEvent) = 0; |
69 virtual void setValueAsDate(const DateComponents&) = 0; | 69 virtual void setValueAsDate(const DateComponents&) = 0; |
70 virtual void setValueAsDateTimeFieldsState(const DateTimeFieldsState&, const
DateComponents& dateForReadOnlyField) = 0; | 70 virtual void setValueAsDateTimeFieldsState(const DateTimeFieldsState&) = 0; |
71 virtual void setValueAsInteger(int, EventBehavior = DispatchNoEvent) = 0; | 71 virtual void setValueAsInteger(int, EventBehavior = DispatchNoEvent) = 0; |
72 virtual void stepDown() = 0; | 72 virtual void stepDown() = 0; |
73 virtual void stepUp() = 0; | 73 virtual void stepUp() = 0; |
74 virtual String value() const = 0; | 74 virtual String value() const = 0; |
75 virtual int valueAsInteger() const = 0; | 75 virtual int valueAsInteger() const = 0; |
76 virtual String visibleValue() const = 0; | 76 virtual String visibleValue() const = 0; |
77 | 77 |
78 protected: | 78 protected: |
79 DateTimeFieldElement(Document*, FieldOwner&); | 79 DateTimeFieldElement(Document*, FieldOwner&); |
80 virtual void didBlur(); | 80 virtual void didBlur(); |
(...skipping 12 matching lines...) Expand all Loading... |
93 bool isRTL() const; | 93 bool isRTL() const; |
94 virtual bool supportsFocus() const OVERRIDE FINAL; | 94 virtual bool supportsFocus() const OVERRIDE FINAL; |
95 | 95 |
96 FieldOwner* m_fieldOwner; | 96 FieldOwner* m_fieldOwner; |
97 }; | 97 }; |
98 | 98 |
99 } // namespace WebCore | 99 } // namespace WebCore |
100 | 100 |
101 #endif | 101 #endif |
102 #endif | 102 #endif |
OLD | NEW |