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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 virtual void close() override; | 48 virtual void close() override; |
49 | 49 |
50 void cancelAllEvents(); | 50 void cancelAllEvents(); |
51 bool hasPendingEvents() const; | 51 bool hasPendingEvents() const; |
52 | 52 |
53 private: | 53 private: |
54 explicit GenericEventQueue(EventTarget*); | 54 explicit GenericEventQueue(EventTarget*); |
55 void timerFired(Timer<GenericEventQueue>*); | 55 void timerFired(Timer<GenericEventQueue>*); |
56 | 56 |
57 RawPtrWillBeMember<EventTarget> m_owner; | 57 RawPtrWillBeMember<EventTarget> m_owner; |
58 WillBeHeapVector<RefPtrWillBeMember<Event> > m_pendingEvents; | 58 WillBeHeapVector<RefPtrWillBeMember<Event>> m_pendingEvents; |
59 Timer<GenericEventQueue> m_timer; | 59 Timer<GenericEventQueue> m_timer; |
60 | 60 |
61 bool m_isClosed; | 61 bool m_isClosed; |
62 }; | 62 }; |
63 | 63 |
64 } | 64 } |
65 | 65 |
66 #endif | 66 #endif |
OLD | NEW |