| 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 10 matching lines...) Expand all Loading... |
| 21 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | 21 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
| 22 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF | 22 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF |
| 23 * THE POSSIBILITY OF SUCH DAMAGE. | 23 * THE POSSIBILITY OF SUCH DAMAGE. |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #ifndef EventSender_h | 26 #ifndef EventSender_h |
| 27 #define EventSender_h | 27 #define EventSender_h |
| 28 | 28 |
| 29 #include "platform/Timer.h" | 29 #include "platform/Timer.h" |
| 30 #include "platform/heap/Handle.h" | 30 #include "platform/heap/Handle.h" |
| 31 #include "wtf/Vector.h" | 31 #include "platform/wtf/Vector.h" |
| 32 #include "wtf/text/AtomicString.h" | 32 #include "platform/wtf/text/AtomicString.h" |
| 33 | 33 |
| 34 namespace blink { | 34 namespace blink { |
| 35 | 35 |
| 36 template <typename T> | 36 template <typename T> |
| 37 class EventSender final : public GarbageCollectedFinalized<EventSender<T>> { | 37 class EventSender final : public GarbageCollectedFinalized<EventSender<T>> { |
| 38 WTF_MAKE_NONCOPYABLE(EventSender); | 38 WTF_MAKE_NONCOPYABLE(EventSender); |
| 39 | 39 |
| 40 public: | 40 public: |
| 41 static EventSender* Create(const AtomicString& event_type) { | 41 static EventSender* Create(const AtomicString& event_type) { |
| 42 return new EventSender(event_type); | 42 return new EventSender(event_type); |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 sender_in_list = nullptr; | 111 sender_in_list = nullptr; |
| 112 sender->DispatchPendingEvent(this); | 112 sender->DispatchPendingEvent(this); |
| 113 } | 113 } |
| 114 } | 114 } |
| 115 dispatching_list_.Clear(); | 115 dispatching_list_.Clear(); |
| 116 } | 116 } |
| 117 | 117 |
| 118 } // namespace blink | 118 } // namespace blink |
| 119 | 119 |
| 120 #endif // EventSender_h | 120 #endif // EventSender_h |
| OLD | NEW |