| 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 bool dispatchEventForBindings(Event*, ExceptionState&); | 151 bool dispatchEventForBindings(Event*, ExceptionState&); |
| 152 virtual void uncaughtExceptionInEventHandler(); | 152 virtual void uncaughtExceptionInEventHandler(); |
| 153 | 153 |
| 154 // Used for legacy "onEvent" attribute APIs. | 154 // Used for legacy "onEvent" attribute APIs. |
| 155 bool setAttributeEventListener(const AtomicString& eventType, EventListener*); | 155 bool setAttributeEventListener(const AtomicString& eventType, EventListener*); |
| 156 EventListener* getAttributeEventListener(const AtomicString& eventType); | 156 EventListener* getAttributeEventListener(const AtomicString& eventType); |
| 157 | 157 |
| 158 bool hasEventListeners() const; | 158 bool hasEventListeners() const; |
| 159 bool hasEventListeners(const AtomicString& eventType) const; | 159 bool hasEventListeners(const AtomicString& eventType) const; |
| 160 bool hasCapturingEventListeners(const AtomicString& eventType); | 160 bool hasCapturingEventListeners(const AtomicString& eventType); |
| 161 bool hasBlockingEventListeners(const AtomicString& eventType); |
| 161 EventListenerVector* getEventListeners(const AtomicString& eventType); | 162 EventListenerVector* getEventListeners(const AtomicString& eventType); |
| 162 Vector<AtomicString> eventTypes(); | 163 Vector<AtomicString> eventTypes(); |
| 163 | 164 |
| 164 DispatchEventResult fireEventListeners(Event*); | 165 DispatchEventResult fireEventListeners(Event*); |
| 165 | 166 |
| 166 static DispatchEventResult dispatchEventResult(const Event&); | 167 static DispatchEventResult dispatchEventResult(const Event&); |
| 167 | 168 |
| 168 DEFINE_INLINE_VIRTUAL_TRACE() {} | 169 DEFINE_INLINE_VIRTUAL_TRACE() {} |
| 169 | 170 |
| 170 DECLARE_VIRTUAL_TRACE_WRAPPERS(); | 171 DECLARE_VIRTUAL_TRACE_WRAPPERS(); |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 318 } | 319 } |
| 319 | 320 |
| 320 inline bool EventTarget::hasCapturingEventListeners( | 321 inline bool EventTarget::hasCapturingEventListeners( |
| 321 const AtomicString& eventType) { | 322 const AtomicString& eventType) { |
| 322 EventTargetData* d = eventTargetData(); | 323 EventTargetData* d = eventTargetData(); |
| 323 if (!d) | 324 if (!d) |
| 324 return false; | 325 return false; |
| 325 return d->eventListenerMap.containsCapturing(eventType); | 326 return d->eventListenerMap.containsCapturing(eventType); |
| 326 } | 327 } |
| 327 | 328 |
| 329 inline bool EventTarget::hasBlockingEventListeners( |
| 330 const AtomicString& eventType) { |
| 331 EventTargetData* d = eventTargetData(); |
| 332 if (!d) |
| 333 return false; |
| 334 return d->eventListenerMap.containsBlocking(eventType); |
| 335 } |
| 328 } // namespace blink | 336 } // namespace blink |
| 329 | 337 |
| 330 #endif // EventTarget_h | 338 #endif // EventTarget_h |
| OLD | NEW |