| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 DECLARE_VIRTUAL_TRACE(); | 44 DECLARE_VIRTUAL_TRACE(); |
| 45 bool enqueueEvent(Event*) override; | 45 bool enqueueEvent(Event*) override; |
| 46 bool cancelEvent(Event*) override; | 46 bool cancelEvent(Event*) override; |
| 47 void close() override; | 47 void close() override; |
| 48 | 48 |
| 49 void cancelAllEvents(); | 49 void cancelAllEvents(); |
| 50 bool hasPendingEvents() const; | 50 bool hasPendingEvents() const; |
| 51 | 51 |
| 52 private: | 52 private: |
| 53 explicit GenericEventQueue(EventTarget*); | 53 explicit GenericEventQueue(EventTarget*); |
| 54 void timerFired(Timer<GenericEventQueue>*); | 54 void timerFired(TimerBase*); |
| 55 | 55 |
| 56 Member<EventTarget> m_owner; | 56 Member<EventTarget> m_owner; |
| 57 HeapVector<Member<Event>> m_pendingEvents; | 57 HeapVector<Member<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 } // namespace blink | 63 } // namespace blink |
| 64 | 64 |
| 65 #endif | 65 #endif |
| OLD | NEW |