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 21 matching lines...) Expand all Loading... | |
32 #ifndef EventTarget_h | 32 #ifndef EventTarget_h |
33 #define EventTarget_h | 33 #define EventTarget_h |
34 | 34 |
35 #include "bindings/core/v8/ScriptWrappable.h" | 35 #include "bindings/core/v8/ScriptWrappable.h" |
36 #include "core/CoreExport.h" | 36 #include "core/CoreExport.h" |
37 #include "core/EventNames.h" | 37 #include "core/EventNames.h" |
38 #include "core/EventTargetNames.h" | 38 #include "core/EventTargetNames.h" |
39 #include "core/EventTypeNames.h" | 39 #include "core/EventTypeNames.h" |
40 #include "core/events/EventListenerMap.h" | 40 #include "core/events/EventListenerMap.h" |
41 #include "platform/heap/Handle.h" | 41 #include "platform/heap/Handle.h" |
42 #include "wtf/Allocator.h" | |
42 #include "wtf/text/AtomicString.h" | 43 #include "wtf/text/AtomicString.h" |
43 | 44 |
44 namespace blink { | 45 namespace blink { |
45 | 46 |
46 class LocalDOMWindow; | 47 class LocalDOMWindow; |
47 class Event; | 48 class Event; |
48 class ExceptionState; | 49 class ExceptionState; |
49 class MessagePort; | 50 class MessagePort; |
50 class Node; | 51 class Node; |
51 | 52 |
52 struct FiringEventIterator { | 53 struct FiringEventIterator { |
54 ALLOW_ONLY_INLINE_ALLOCATION(); | |
Yuta Kitamura
2015/10/26 08:15:54
Is this needed?
FiringEventIterator only contains
tasak
2015/10/26 08:19:01
I added this to ensure that no one invokes FiringE
| |
53 FiringEventIterator(const AtomicString& eventType, size_t& iterator, size_t& end) | 55 FiringEventIterator(const AtomicString& eventType, size_t& iterator, size_t& end) |
54 : eventType(eventType) | 56 : eventType(eventType) |
55 , iterator(iterator) | 57 , iterator(iterator) |
56 , end(end) | 58 , end(end) |
57 { | 59 { |
58 } | 60 } |
59 | 61 |
60 const AtomicString& eventType; | 62 const AtomicString& eventType; |
61 size_t& iterator; | 63 size_t& iterator; |
62 size_t& end; | 64 size_t& end; |
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
320 using baseClass::deref; \ | 322 using baseClass::deref; \ |
321 private: \ | 323 private: \ |
322 void refEventTarget() final { ref(); } \ | 324 void refEventTarget() final { ref(); } \ |
323 void derefEventTarget() final { deref(); } \ | 325 void derefEventTarget() final { deref(); } \ |
324 typedef int thisIsHereToForceASemiColonAfterThisEventTargetMacro | 326 typedef int thisIsHereToForceASemiColonAfterThisEventTargetMacro |
325 #define REFCOUNTED_EVENT_TARGET(baseClass) DEFINE_EVENT_TARGET_REFCOUNTING(RefCo unted<baseClass>) | 327 #define REFCOUNTED_EVENT_TARGET(baseClass) DEFINE_EVENT_TARGET_REFCOUNTING(RefCo unted<baseClass>) |
326 #define REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(baseClass) DEFINE_EVENT_TARGET _REFCOUNTING(RefCountedGarbageCollected<baseClass>) | 328 #define REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(baseClass) DEFINE_EVENT_TARGET _REFCOUNTING(RefCountedGarbageCollected<baseClass>) |
327 #endif // ENABLE(OILPAN) | 329 #endif // ENABLE(OILPAN) |
328 | 330 |
329 #endif // EventTarget_h | 331 #endif // EventTarget_h |
OLD | NEW |