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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 | 157 |
158 bool fireEventListeners(Event*); | 158 bool fireEventListeners(Event*); |
159 | 159 |
160 DEFINE_INLINE_VIRTUAL_TRACE() { } | 160 DEFINE_INLINE_VIRTUAL_TRACE() { } |
161 | 161 |
162 virtual bool keepEventInNode(Event*) { return false; } | 162 virtual bool keepEventInNode(Event*) { return false; } |
163 | 163 |
164 protected: | 164 protected: |
165 EventTarget(); | 165 EventTarget(); |
166 | 166 |
167 virtual bool addEventListenerInternal(const AtomicString& eventType, PassRef
Ptr<EventListener>, const EventListenerOptions&); | 167 virtual bool addEventListenerInternal(const AtomicString& eventType, PassRef
PtrWillBeRawPtr<EventListener>, const EventListenerOptions&); |
168 virtual bool removeEventListenerInternal(const AtomicString& eventType, Pass
RefPtr<EventListener>, const EventListenerOptions&); | 168 virtual bool removeEventListenerInternal(const AtomicString& eventType, Pass
RefPtrWillBeRawPtr<EventListener>, const EventListenerOptions&); |
169 virtual bool dispatchEventInternal(PassRefPtrWillBeRawPtr<Event>); | 169 virtual bool dispatchEventInternal(PassRefPtrWillBeRawPtr<Event>); |
170 | 170 |
171 // Subclasses should likely not override these themselves; instead, they sho
uld subclass EventTargetWithInlineData. | 171 // Subclasses should likely not override these themselves; instead, they sho
uld subclass EventTargetWithInlineData. |
172 virtual EventTargetData* eventTargetData() = 0; | 172 virtual EventTargetData* eventTargetData() = 0; |
173 virtual EventTargetData& ensureEventTargetData() = 0; | 173 virtual EventTargetData& ensureEventTargetData() = 0; |
174 | 174 |
175 private: | 175 private: |
176 #if !ENABLE(OILPAN) | 176 #if !ENABLE(OILPAN) |
177 // Subclasses should likely not override these themselves; instead, they sho
uld use the REFCOUNTED_EVENT_TARGET() macro. | 177 // Subclasses should likely not override these themselves; instead, they sho
uld use the REFCOUNTED_EVENT_TARGET() macro. |
178 virtual void refEventTarget() = 0; | 178 virtual void refEventTarget() = 0; |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 using baseClass::deref; \ | 330 using baseClass::deref; \ |
331 private: \ | 331 private: \ |
332 void refEventTarget() final { ref(); } \ | 332 void refEventTarget() final { ref(); } \ |
333 void derefEventTarget() final { deref(); } \ | 333 void derefEventTarget() final { deref(); } \ |
334 typedef int thisIsHereToForceASemiColonAfterThisEventTargetMacro | 334 typedef int thisIsHereToForceASemiColonAfterThisEventTargetMacro |
335 #define REFCOUNTED_EVENT_TARGET(baseClass) DEFINE_EVENT_TARGET_REFCOUNTING(RefCo
unted<baseClass>) | 335 #define REFCOUNTED_EVENT_TARGET(baseClass) DEFINE_EVENT_TARGET_REFCOUNTING(RefCo
unted<baseClass>) |
336 #define REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(baseClass) DEFINE_EVENT_TARGET
_REFCOUNTING(RefCountedGarbageCollected<baseClass>) | 336 #define REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(baseClass) DEFINE_EVENT_TARGET
_REFCOUNTING(RefCountedGarbageCollected<baseClass>) |
337 #endif // ENABLE(OILPAN) | 337 #endif // ENABLE(OILPAN) |
338 | 338 |
339 #endif // EventTarget_h | 339 #endif // EventTarget_h |
OLD | NEW |