| 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, 2012 Apple Inc. All rights reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2012 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 * Copyright (C) 2011 Andreas Kling (kling@webkit.org) | 8 * Copyright (C) 2011 Andreas Kling (kling@webkit.org) |
| 9 * | 9 * |
| 10 * Redistribution and use in source and binary forms, with or without | 10 * Redistribution and use in source and binary forms, with or without |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 class EventTarget; | 43 class EventTarget; |
| 44 | 44 |
| 45 typedef Vector<RegisteredEventListener, 1> EventListenerVector; | 45 typedef Vector<RegisteredEventListener, 1> EventListenerVector; |
| 46 | 46 |
| 47 class EventListenerMap { | 47 class EventListenerMap { |
| 48 public: | 48 public: |
| 49 EventListenerMap(); | 49 EventListenerMap(); |
| 50 | 50 |
| 51 bool isEmpty() const { return m_entries.isEmpty(); } | 51 bool isEmpty() const { return m_entries.isEmpty(); } |
| 52 bool contains(const AtomicString& eventType) const; | 52 bool contains(const AtomicString& eventType) const; |
| 53 bool containsCapturing(const AtomicString& eventType) const; |
| 53 | 54 |
| 54 void clear(); | 55 void clear(); |
| 55 bool add(const AtomicString& eventType, PassRefPtr<EventListener>, bool useC
apture); | 56 bool add(const AtomicString& eventType, PassRefPtr<EventListener>, bool useC
apture); |
| 56 bool remove(const AtomicString& eventType, EventListener*, bool useCapture,
size_t& indexOfRemovedListener); | 57 bool remove(const AtomicString& eventType, EventListener*, bool useCapture,
size_t& indexOfRemovedListener); |
| 57 EventListenerVector* find(const AtomicString& eventType); | 58 EventListenerVector* find(const AtomicString& eventType); |
| 58 Vector<AtomicString> eventTypes() const; | 59 Vector<AtomicString> eventTypes() const; |
| 59 | 60 |
| 60 void removeFirstEventListenerCreatedFromMarkup(const AtomicString& eventType
); | 61 void removeFirstEventListenerCreatedFromMarkup(const AtomicString& eventType
); |
| 61 void copyEventListenersNotCreatedFromMarkupToTarget(EventTarget*); | 62 void copyEventListenersNotCreatedFromMarkupToTarget(EventTarget*); |
| 62 | 63 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 89 unsigned m_index; | 90 unsigned m_index; |
| 90 }; | 91 }; |
| 91 | 92 |
| 92 #ifdef NDEBUG | 93 #ifdef NDEBUG |
| 93 inline void EventListenerMap::assertNoActiveIterators() { } | 94 inline void EventListenerMap::assertNoActiveIterators() { } |
| 94 #endif | 95 #endif |
| 95 | 96 |
| 96 } // namespace WebCore | 97 } // namespace WebCore |
| 97 | 98 |
| 98 #endif // EventListenerMap_h | 99 #endif // EventListenerMap_h |
| OLD | NEW |