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 25 matching lines...) Expand all Loading... |
36 class DateTimeFieldsState; | 36 class DateTimeFieldsState; |
37 class KeyboardEvent; | 37 class KeyboardEvent; |
38 class Locale; | 38 class Locale; |
39 class MouseEvent; | 39 class MouseEvent; |
40 class StepRange; | 40 class StepRange; |
41 | 41 |
42 // DateTimeEditElement class contains numberic field and symbolc field for | 42 // DateTimeEditElement class contains numberic field and symbolc field for |
43 // representing date and time, such as | 43 // representing date and time, such as |
44 // - Year, Month, Day Of Month | 44 // - Year, Month, Day Of Month |
45 // - Hour, Minute, Second, Millisecond, AM/PM | 45 // - Hour, Minute, Second, Millisecond, AM/PM |
46 class DateTimeEditElement : public HTMLDivElement, public DateTimeFieldElement::
FieldOwner { | 46 class DateTimeEditElement FINAL : public HTMLDivElement, public DateTimeFieldEle
ment::FieldOwner { |
47 WTF_MAKE_NONCOPYABLE(DateTimeEditElement); | 47 WTF_MAKE_NONCOPYABLE(DateTimeEditElement); |
48 | 48 |
49 public: | 49 public: |
50 // EditControlOwner implementer must call removeEditControlOwner when | 50 // EditControlOwner implementer must call removeEditControlOwner when |
51 // it doesn't handle event, e.g. at destruction. | 51 // it doesn't handle event, e.g. at destruction. |
52 class EditControlOwner { | 52 class EditControlOwner { |
53 public: | 53 public: |
54 virtual ~EditControlOwner(); | 54 virtual ~EditControlOwner(); |
55 virtual void didBlurFromControl() = 0; | 55 virtual void didBlurFromControl() = 0; |
56 virtual void didFocusOnControl() = 0; | 56 virtual void didFocusOnControl() = 0; |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 virtual AtomicString localeIdentifier() const OVERRIDE FINAL; | 145 virtual AtomicString localeIdentifier() const OVERRIDE FINAL; |
146 | 146 |
147 Vector<DateTimeFieldElement*, maximumNumberOfFields> m_fields; | 147 Vector<DateTimeFieldElement*, maximumNumberOfFields> m_fields; |
148 EditControlOwner* m_editControlOwner; | 148 EditControlOwner* m_editControlOwner; |
149 }; | 149 }; |
150 | 150 |
151 } // namespace WebCore | 151 } // namespace WebCore |
152 | 152 |
153 #endif | 153 #endif |
154 #endif | 154 #endif |
OLD | NEW |