| 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 12 matching lines...) Expand all Loading... |
| 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/CoreExport.h" | 29 #include "core/CoreExport.h" |
| 30 #include "core/events/EventQueue.h" | 30 #include "core/events/EventQueue.h" |
| 31 #include "core/events/EventTarget.h" | 31 #include "core/events/EventTarget.h" |
| 32 #include "platform/Timer.h" | 32 #include "platform/Timer.h" |
| 33 #include "wtf/PassOwnPtr.h" | |
| 34 #include "wtf/RefPtr.h" | 33 #include "wtf/RefPtr.h" |
| 35 #include "wtf/Vector.h" | 34 #include "wtf/Vector.h" |
| 36 | 35 |
| 37 namespace blink { | 36 namespace blink { |
| 38 | 37 |
| 39 class CORE_EXPORT GenericEventQueue final : public EventQueue { | 38 class CORE_EXPORT GenericEventQueue final : public EventQueue { |
| 40 public: | 39 public: |
| 41 static GenericEventQueue* create(EventTarget*); | 40 static GenericEventQueue* create(EventTarget*); |
| 42 ~GenericEventQueue() override; | 41 ~GenericEventQueue() override; |
| 43 | 42 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 57 Member<EventTarget> m_owner; | 56 Member<EventTarget> m_owner; |
| 58 HeapVector<Member<Event>> m_pendingEvents; | 57 HeapVector<Member<Event>> m_pendingEvents; |
| 59 Timer<GenericEventQueue> m_timer; | 58 Timer<GenericEventQueue> m_timer; |
| 60 | 59 |
| 61 bool m_isClosed; | 60 bool m_isClosed; |
| 62 }; | 61 }; |
| 63 | 62 |
| 64 } // namespace blink | 63 } // namespace blink |
| 65 | 64 |
| 66 #endif | 65 #endif |
| OLD | NEW |