| 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 virtual void uncaughtExceptionInEventHandler(); | 113 virtual void uncaughtExceptionInEventHandler(); |
| 114 | 114 |
| 115 bool hasEventListeners() const; | 115 bool hasEventListeners() const; |
| 116 bool hasEventListeners(const AtomicString& eventType) const; | 116 bool hasEventListeners(const AtomicString& eventType) const; |
| 117 bool hasCapturingEventListeners(const AtomicString& eventType); | 117 bool hasCapturingEventListeners(const AtomicString& eventType); |
| 118 const EventListenerVector& getEventListeners(const AtomicString& eventType); | 118 const EventListenerVector& getEventListeners(const AtomicString& eventType); |
| 119 Vector<AtomicString> eventTypes(); | 119 Vector<AtomicString> eventTypes(); |
| 120 | 120 |
| 121 bool fireEventListeners(Event*); | 121 bool fireEventListeners(Event*); |
| 122 | 122 |
| 123 virtual void trace(Visitor*) { } | |
| 124 | |
| 125 virtual bool keepEventInNode(Event*) { return false; }; | 123 virtual bool keepEventInNode(Event*) { return false; }; |
| 126 | 124 |
| 127 protected: | 125 protected: |
| 128 EventTarget(); | 126 EventTarget(); |
| 129 virtual ~EventTarget(); | 127 virtual ~EventTarget(); |
| 130 | 128 |
| 131 // Subclasses should likely not override these themselves; instead, they sho
uld subclass EventTargetWithInlineData. | 129 // Subclasses should likely not override these themselves; instead, they sho
uld subclass EventTargetWithInlineData. |
| 132 virtual EventTargetData* eventTargetData() = 0; | 130 virtual EventTargetData* eventTargetData() = 0; |
| 133 virtual EventTargetData& ensureEventTargetData() = 0; | 131 virtual EventTargetData& ensureEventTargetData() = 0; |
| 134 | 132 |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 typedef int thisIsHereToForceASemiColonAfterThisEventTargetMacro | 197 typedef int thisIsHereToForceASemiColonAfterThisEventTargetMacro |
| 200 #define DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(baseClass) DEFINE_EVENT_
TARGET_REFCOUNTING(baseClass) | 198 #define DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(baseClass) DEFINE_EVENT_
TARGET_REFCOUNTING(baseClass) |
| 201 #endif | 199 #endif |
| 202 | 200 |
| 203 // Use this macro if your EventTarget subclass is also a subclass of WTF::RefCou
nted. | 201 // Use this macro if your EventTarget subclass is also a subclass of WTF::RefCou
nted. |
| 204 // A ref-counted class that uses a different method of refcounting should use DE
FINE_EVENT_TARGET_REFCOUNTING directly. | 202 // A ref-counted class that uses a different method of refcounting should use DE
FINE_EVENT_TARGET_REFCOUNTING directly. |
| 205 // Both of these macros are meant to be placed just before the "public:" section
of the class declaration. | 203 // Both of these macros are meant to be placed just before the "public:" section
of the class declaration. |
| 206 #define REFCOUNTED_EVENT_TARGET(className) DEFINE_EVENT_TARGET_REFCOUNTING_WILL_
BE_REMOVED(RefCounted<className>) | 204 #define REFCOUNTED_EVENT_TARGET(className) DEFINE_EVENT_TARGET_REFCOUNTING_WILL_
BE_REMOVED(RefCounted<className>) |
| 207 | 205 |
| 208 #endif // EventTarget_h | 206 #endif // EventTarget_h |
| OLD | NEW |