| 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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 EventListenerVector* getEventListeners(const AtomicString& eventType); | 161 EventListenerVector* getEventListeners(const AtomicString& eventType); |
| 162 Vector<AtomicString> eventTypes(); | 162 Vector<AtomicString> eventTypes(); |
| 163 | 163 |
| 164 DispatchEventResult fireEventListeners(Event*); | 164 DispatchEventResult fireEventListeners(Event*); |
| 165 | 165 |
| 166 static DispatchEventResult dispatchEventResult(const Event&); | 166 static DispatchEventResult dispatchEventResult(const Event&); |
| 167 | 167 |
| 168 static EventTarget* toEventTarget(v8::Local<v8::Object>); |
| 169 |
| 168 DEFINE_INLINE_VIRTUAL_TRACE() {} | 170 DEFINE_INLINE_VIRTUAL_TRACE() {} |
| 169 | 171 |
| 170 DECLARE_VIRTUAL_TRACE_WRAPPERS(); | 172 DECLARE_VIRTUAL_TRACE_WRAPPERS(); |
| 171 | 173 |
| 172 virtual bool keepEventInNode(Event*) { return false; } | 174 virtual bool keepEventInNode(Event*) { return false; } |
| 173 | 175 |
| 174 protected: | 176 protected: |
| 175 EventTarget(); | 177 EventTarget(); |
| 176 | 178 |
| 177 virtual bool addEventListenerInternal(const AtomicString& eventType, | 179 virtual bool addEventListenerInternal(const AtomicString& eventType, |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 321 const AtomicString& eventType) { | 323 const AtomicString& eventType) { |
| 322 EventTargetData* d = eventTargetData(); | 324 EventTargetData* d = eventTargetData(); |
| 323 if (!d) | 325 if (!d) |
| 324 return false; | 326 return false; |
| 325 return d->eventListenerMap.containsCapturing(eventType); | 327 return d->eventListenerMap.containsCapturing(eventType); |
| 326 } | 328 } |
| 327 | 329 |
| 328 } // namespace blink | 330 } // namespace blink |
| 329 | 331 |
| 330 #endif // EventTarget_h | 332 #endif // EventTarget_h |
| OLD | NEW |