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 15 matching lines...) Expand all Loading... |
26 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
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/events/EventListenerMap.h" | 35 #include "core/events/EventListenerMap.h" |
36 #include "core/events/EventTargetModules.h" // TODO: remove this later http://cr
bug.com/371581. | |
37 #include "core/events/ThreadLocalEventNames.h" | 36 #include "core/events/ThreadLocalEventNames.h" |
38 #include "platform/heap/Handle.h" | 37 #include "platform/heap/Handle.h" |
39 #include "wtf/Forward.h" | 38 #include "wtf/Forward.h" |
40 | 39 |
41 namespace WebCore { | 40 namespace WebCore { |
42 | 41 |
43 class ApplicationCache; | 42 class ApplicationCache; |
44 class DOMWindow; | 43 class DOMWindow; |
45 class DedicatedWorkerGlobalScope; | 44 class DedicatedWorkerGlobalScope; |
46 class Event; | 45 class Event; |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 virtual void refEventTarget() OVERRIDE FINAL { ref(); } \ | 229 virtual void refEventTarget() OVERRIDE FINAL { ref(); } \ |
231 virtual void derefEventTarget() OVERRIDE FINAL { deref(); } \ | 230 virtual void derefEventTarget() OVERRIDE FINAL { deref(); } \ |
232 typedef int thisIsHereToForceASemiColonAfterThisEventTargetMacro | 231 typedef int thisIsHereToForceASemiColonAfterThisEventTargetMacro |
233 | 232 |
234 // Use this macro if your EventTarget subclass is also a subclass of WTF::RefCou
nted. | 233 // Use this macro if your EventTarget subclass is also a subclass of WTF::RefCou
nted. |
235 // A ref-counted class that uses a different method of refcounting should use DE
FINE_EVENT_TARGET_REFCOUNTING directly. | 234 // A ref-counted class that uses a different method of refcounting should use DE
FINE_EVENT_TARGET_REFCOUNTING directly. |
236 // Both of these macros are meant to be placed just before the "public:" section
of the class declaration. | 235 // Both of these macros are meant to be placed just before the "public:" section
of the class declaration. |
237 #define REFCOUNTED_EVENT_TARGET(className) DEFINE_EVENT_TARGET_REFCOUNTING(RefCo
unted<className>) | 236 #define REFCOUNTED_EVENT_TARGET(className) DEFINE_EVENT_TARGET_REFCOUNTING(RefCo
unted<className>) |
238 | 237 |
239 #endif // EventTarget_h | 238 #endif // EventTarget_h |
OLD | NEW |