| 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 | 66 |
| 67 #if ENABLE(ASSERT) | 67 #if ENABLE(ASSERT) |
| 68 int m_activeIteratorCount; | 68 int m_activeIteratorCount; |
| 69 #endif | 69 #endif |
| 70 }; | 70 }; |
| 71 | 71 |
| 72 class EventListenerIterator { | 72 class EventListenerIterator { |
| 73 WTF_MAKE_NONCOPYABLE(EventListenerIterator); | 73 WTF_MAKE_NONCOPYABLE(EventListenerIterator); |
| 74 public: | 74 public: |
| 75 EventListenerIterator(); | 75 EventListenerIterator(); |
| 76 EventListenerIterator(EventTarget*); | 76 EventListenerIterator(const EventTarget*); |
| 77 #if ENABLE(ASSERT) | 77 #if ENABLE(ASSERT) |
| 78 ~EventListenerIterator(); | 78 ~EventListenerIterator(); |
| 79 #endif | 79 #endif |
| 80 | 80 |
| 81 EventListener* nextListener(); | 81 EventListener* nextListener(); |
| 82 | 82 |
| 83 private: | 83 private: |
| 84 EventListenerMap* m_map; | 84 EventListenerMap* m_map; |
| 85 unsigned m_entryIndex; | 85 unsigned m_entryIndex; |
| 86 unsigned m_index; | 86 unsigned m_index; |
| 87 }; | 87 }; |
| 88 | 88 |
| 89 #if !ENABLE(ASSERT) | 89 #if !ENABLE(ASSERT) |
| 90 inline void EventListenerMap::assertNoActiveIterators() { } | 90 inline void EventListenerMap::assertNoActiveIterators() { } |
| 91 #endif | 91 #endif |
| 92 | 92 |
| 93 } // namespace blink | 93 } // namespace blink |
| 94 | 94 |
| 95 #endif // SKY_ENGINE_CORE_EVENTS_EVENTLISTENERMAP_H_ | 95 #endif // SKY_ENGINE_CORE_EVENTS_EVENTLISTENERMAP_H_ |
| OLD | NEW |