| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Apple Inc. All rights reserved. | 2 * Copyright (C) 2012 Apple 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 | 56 |
| 57 DEFINE_INLINE_TRACE() | 57 DEFINE_INLINE_TRACE() |
| 58 { | 58 { |
| 59 visitor->trace(m_dispatchSoonList); | 59 visitor->trace(m_dispatchSoonList); |
| 60 visitor->trace(m_dispatchingList); | 60 visitor->trace(m_dispatchingList); |
| 61 } | 61 } |
| 62 | 62 |
| 63 private: | 63 private: |
| 64 explicit EventSender(const AtomicString& eventType); | 64 explicit EventSender(const AtomicString& eventType); |
| 65 | 65 |
| 66 void timerFired(Timer<EventSender<T>>*) { dispatchPendingEvents(); } | 66 void timerFired(TimerBase*) { dispatchPendingEvents(); } |
| 67 | 67 |
| 68 AtomicString m_eventType; | 68 AtomicString m_eventType; |
| 69 Timer<EventSender<T>> m_timer; | 69 Timer<EventSender<T>> m_timer; |
| 70 HeapVector<Member<T>> m_dispatchSoonList; | 70 HeapVector<Member<T>> m_dispatchSoonList; |
| 71 HeapVector<Member<T>> m_dispatchingList; | 71 HeapVector<Member<T>> m_dispatchingList; |
| 72 }; | 72 }; |
| 73 | 73 |
| 74 template<typename T> EventSender<T>::EventSender(const AtomicString& eventType) | 74 template<typename T> EventSender<T>::EventSender(const AtomicString& eventType) |
| 75 : m_eventType(eventType) | 75 : m_eventType(eventType) |
| 76 , m_timer(this, &EventSender::timerFired) | 76 , m_timer(this, &EventSender::timerFired) |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 m_dispatchingList[i] = nullptr; | 117 m_dispatchingList[i] = nullptr; |
| 118 sender->dispatchPendingEvent(this); | 118 sender->dispatchPendingEvent(this); |
| 119 } | 119 } |
| 120 } | 120 } |
| 121 m_dispatchingList.clear(); | 121 m_dispatchingList.clear(); |
| 122 } | 122 } |
| 123 | 123 |
| 124 } // namespace blink | 124 } // namespace blink |
| 125 | 125 |
| 126 #endif // EventSender_h | 126 #endif // EventSender_h |
| OLD | NEW |