| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. |
| 6 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 6 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
| 7 * (C) 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org> | 7 * (C) 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org> |
| 8 * | 8 * |
| 9 * Redistribution and use in source and binary forms, with or without | 9 * Redistribution and use in source and binary forms, with or without |
| 10 * modification, are permitted provided that the following conditions | 10 * modification, are permitted provided that the following conditions |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 * | 29 * |
| 30 */ | 30 */ |
| 31 | 31 |
| 32 #ifndef EventTarget_h | 32 #ifndef EventTarget_h |
| 33 #define EventTarget_h | 33 #define EventTarget_h |
| 34 | 34 |
| 35 #include "core/dom/EventListenerMap.h" | 35 #include "core/dom/EventListenerMap.h" |
| 36 #include "core/dom/EventNames.h" | 36 #include "core/dom/EventNames.h" |
| 37 #include <wtf/Forward.h> | 37 #include "wtf/Forward.h" |
| 38 #include <wtf/HashMap.h> | |
| 39 #include <wtf/text/AtomicStringHash.h> | |
| 40 | 38 |
| 41 namespace WebCore { | 39 namespace WebCore { |
| 42 | 40 |
| 43 class AudioContext; | 41 class AudioContext; |
| 44 class DedicatedWorkerContext; | 42 class DedicatedWorkerContext; |
| 45 class DOMApplicationCache; | 43 class DOMApplicationCache; |
| 46 class DOMWindow; | 44 class DOMWindow; |
| 47 class Event; | 45 class Event; |
| 48 class EventListener; | 46 class EventListener; |
| 49 class EventSource; | 47 class EventSource; |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 { | 189 { |
| 192 EventTargetData* d = eventTargetData(); | 190 EventTargetData* d = eventTargetData(); |
| 193 if (!d) | 191 if (!d) |
| 194 return false; | 192 return false; |
| 195 return d->eventListenerMap.contains(eventType); | 193 return d->eventListenerMap.contains(eventType); |
| 196 } | 194 } |
| 197 | 195 |
| 198 } // namespace WebCore | 196 } // namespace WebCore |
| 199 | 197 |
| 200 #endif // EventTarget_h | 198 #endif // EventTarget_h |
| OLD | NEW |