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. |
36 #include "core/events/ThreadLocalEventNames.h" | 37 #include "core/events/ThreadLocalEventNames.h" |
37 #include "platform/heap/Handle.h" | 38 #include "platform/heap/Handle.h" |
38 #include "wtf/Forward.h" | 39 #include "wtf/Forward.h" |
39 | 40 |
40 namespace WebCore { | 41 namespace WebCore { |
41 | 42 |
42 class ApplicationCache; | 43 class ApplicationCache; |
43 class AudioContext; | |
44 class DOMWindow; | 44 class DOMWindow; |
45 class DedicatedWorkerGlobalScope; | 45 class DedicatedWorkerGlobalScope; |
46 class Event; | 46 class Event; |
47 class EventListener; | 47 class EventListener; |
48 class EventSource; | 48 class EventSource; |
49 class ExceptionState; | 49 class ExceptionState; |
50 class FileReader; | 50 class FileReader; |
51 class FileWriter; | |
52 class IDBDatabase; | |
53 class IDBRequest; | |
54 class IDBTransaction; | |
55 class MIDIAccess; | |
56 class MIDIInput; | |
57 class MIDIPort; | |
58 class MediaController; | 51 class MediaController; |
59 class MediaStream; | |
60 class MessagePort; | 52 class MessagePort; |
61 class Node; | 53 class Node; |
62 class Notification; | |
63 class SVGElementInstance; | |
64 class ExecutionContext; | |
65 class ScriptProcessorNode; | |
66 class SharedWorker; | 54 class SharedWorker; |
67 class SharedWorkerGlobalScope; | 55 class SharedWorkerGlobalScope; |
68 class TextTrack; | 56 class TextTrack; |
69 class TextTrackCue; | 57 class TextTrackCue; |
70 class WebSocket; | |
71 class Worker; | 58 class Worker; |
72 class XMLHttpRequest; | 59 class XMLHttpRequest; |
73 class XMLHttpRequestUpload; | 60 class XMLHttpRequestUpload; |
74 | 61 |
75 struct FiringEventIterator { | 62 struct FiringEventIterator { |
76 FiringEventIterator(const AtomicString& eventType, size_t& iterator, size_t&
end) | 63 FiringEventIterator(const AtomicString& eventType, size_t& iterator, size_t&
end) |
77 : eventType(eventType) | 64 : eventType(eventType) |
78 , iterator(iterator) | 65 , iterator(iterator) |
79 , end(end) | 66 , end(end) |
80 { | 67 { |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 virtual void refEventTarget() OVERRIDE FINAL { ref(); } \ | 230 virtual void refEventTarget() OVERRIDE FINAL { ref(); } \ |
244 virtual void derefEventTarget() OVERRIDE FINAL { deref(); } \ | 231 virtual void derefEventTarget() OVERRIDE FINAL { deref(); } \ |
245 typedef int thisIsHereToForceASemiColonAfterThisEventTargetMacro | 232 typedef int thisIsHereToForceASemiColonAfterThisEventTargetMacro |
246 | 233 |
247 // Use this macro if your EventTarget subclass is also a subclass of WTF::RefCou
nted. | 234 // Use this macro if your EventTarget subclass is also a subclass of WTF::RefCou
nted. |
248 // A ref-counted class that uses a different method of refcounting should use DE
FINE_EVENT_TARGET_REFCOUNTING directly. | 235 // A ref-counted class that uses a different method of refcounting should use DE
FINE_EVENT_TARGET_REFCOUNTING directly. |
249 // Both of these macros are meant to be placed just before the "public:" section
of the class declaration. | 236 // Both of these macros are meant to be placed just before the "public:" section
of the class declaration. |
250 #define REFCOUNTED_EVENT_TARGET(className) DEFINE_EVENT_TARGET_REFCOUNTING(RefCo
unted<className>) | 237 #define REFCOUNTED_EVENT_TARGET(className) DEFINE_EVENT_TARGET_REFCOUNTING(RefCo
unted<className>) |
251 | 238 |
252 #endif // EventTarget_h | 239 #endif // EventTarget_h |
OLD | NEW |