OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Victor Carbune (victor@rosedu.org) | 2 * Copyright (C) 2012 Victor Carbune (victor@rosedu.org) |
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 11 matching lines...) Expand all Loading... |
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
24 */ | 24 */ |
25 | 25 |
26 #ifndef GenericEventQueue_h | 26 #ifndef GenericEventQueue_h |
27 #define GenericEventQueue_h | 27 #define GenericEventQueue_h |
28 | 28 |
29 #include "core/dom/EventQueue.h" | 29 #include "core/dom/EventQueue.h" |
30 #include "core/dom/EventTarget.h" | 30 #include "core/dom/EventTarget.h" |
31 #include "core/platform/Timer.h" | 31 #include "core/platform/Timer.h" |
32 #include <wtf/PassOwnPtr.h> | 32 #include "wtf/PassOwnPtr.h" |
33 #include <wtf/RefPtr.h> | 33 #include "wtf/RefPtr.h" |
34 #include <wtf/Vector.h> | 34 #include "wtf/Vector.h" |
35 | 35 |
36 namespace WebCore { | 36 namespace WebCore { |
37 | 37 |
38 class GenericEventQueue : public EventQueue { | 38 class GenericEventQueue : public EventQueue { |
39 WTF_MAKE_FAST_ALLOCATED; | 39 WTF_MAKE_FAST_ALLOCATED; |
40 public: | 40 public: |
41 explicit GenericEventQueue(EventTarget*); | 41 explicit GenericEventQueue(EventTarget*); |
42 static PassOwnPtr<GenericEventQueue> create(EventTarget*); | 42 static PassOwnPtr<GenericEventQueue> create(EventTarget*); |
43 virtual ~GenericEventQueue(); | 43 virtual ~GenericEventQueue(); |
44 | 44 |
(...skipping 11 matching lines...) Expand all Loading... |
56 EventTarget* m_owner; | 56 EventTarget* m_owner; |
57 Vector<RefPtr<Event> > m_pendingEvents; | 57 Vector<RefPtr<Event> > m_pendingEvents; |
58 Timer<GenericEventQueue> m_timer; | 58 Timer<GenericEventQueue> m_timer; |
59 | 59 |
60 bool m_isClosed; | 60 bool m_isClosed; |
61 }; | 61 }; |
62 | 62 |
63 } | 63 } |
64 | 64 |
65 #endif | 65 #endif |
OLD | NEW |