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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 protected: | 129 protected: |
130 virtual ~EventTarget(); | 130 virtual ~EventTarget(); |
131 | 131 |
132 virtual EventTargetData* eventTargetData() = 0; | 132 virtual EventTargetData* eventTargetData() = 0; |
133 virtual EventTargetData* ensureEventTargetData() = 0; | 133 virtual EventTargetData* ensureEventTargetData() = 0; |
134 | 134 |
135 private: | 135 private: |
136 virtual void refEventTarget() = 0; | 136 virtual void refEventTarget() = 0; |
137 virtual void derefEventTarget() = 0; | 137 virtual void derefEventTarget() = 0; |
138 | 138 |
| 139 DOMWindow* executingWindow(); |
139 void fireEventListeners(Event*, EventTargetData*, EventListenerVector&); | 140 void fireEventListeners(Event*, EventTargetData*, EventListenerVector&); |
140 | 141 |
141 bool clearAttributeEventListener(const AtomicString& eventType, DOMWrapp
erWorld* isolatedWorld); | 142 bool clearAttributeEventListener(const AtomicString& eventType, DOMWrapp
erWorld* isolatedWorld); |
142 | 143 |
143 friend class EventListenerIterator; | 144 friend class EventListenerIterator; |
144 }; | 145 }; |
145 | 146 |
146 // FIXME: These macros should be split into separate DEFINE and DECLARE | 147 // FIXME: These macros should be split into separate DEFINE and DECLARE |
147 // macros to avoid causing so many header includes. | 148 // macros to avoid causing so many header includes. |
148 #define DEFINE_ATTRIBUTE_EVENT_LISTENER(attribute) \ | 149 #define DEFINE_ATTRIBUTE_EVENT_LISTENER(attribute) \ |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 { | 202 { |
202 EventTargetData* d = eventTargetData(); | 203 EventTargetData* d = eventTargetData(); |
203 if (!d) | 204 if (!d) |
204 return false; | 205 return false; |
205 return d->eventListenerMap.containsCapturing(eventType); | 206 return d->eventListenerMap.containsCapturing(eventType); |
206 } | 207 } |
207 | 208 |
208 } // namespace WebCore | 209 } // namespace WebCore |
209 | 210 |
210 #endif // EventTarget_h | 211 #endif // EventTarget_h |
OLD | NEW |