| 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 class EventTarget { | 99 class EventTarget { |
| 100 public: | 100 public: |
| 101 void ref() { refEventTarget(); } | 101 void ref() { refEventTarget(); } |
| 102 void deref() { derefEventTarget(); } | 102 void deref() { derefEventTarget(); } |
| 103 | 103 |
| 104 virtual const AtomicString& interfaceName() const = 0; | 104 virtual const AtomicString& interfaceName() const = 0; |
| 105 virtual ScriptExecutionContext* scriptExecutionContext() const = 0; | 105 virtual ScriptExecutionContext* scriptExecutionContext() const = 0; |
| 106 | 106 |
| 107 virtual Node* toNode(); | 107 virtual Node* toNode(); |
| 108 virtual DOMWindow* toDOMWindow(); | 108 virtual DOMWindow* toDOMWindow(); |
| 109 virtual MessagePort* toMessagePort(); |
| 109 | 110 |
| 110 virtual bool addEventListener(const AtomicString& eventType, PassRefPtr<
EventListener>, bool useCapture); | 111 virtual bool addEventListener(const AtomicString& eventType, PassRefPtr<
EventListener>, bool useCapture); |
| 111 virtual bool removeEventListener(const AtomicString& eventType, EventLis
tener*, bool useCapture); | 112 virtual bool removeEventListener(const AtomicString& eventType, EventLis
tener*, bool useCapture); |
| 112 virtual void removeAllEventListeners(); | 113 virtual void removeAllEventListeners(); |
| 113 virtual bool dispatchEvent(PassRefPtr<Event>); | 114 virtual bool dispatchEvent(PassRefPtr<Event>); |
| 114 bool dispatchEvent(PassRefPtr<Event>, ExceptionState&); // DOM API | 115 bool dispatchEvent(PassRefPtr<Event>, ExceptionState&); // DOM API |
| 115 virtual void uncaughtExceptionInEventHandler(); | 116 virtual void uncaughtExceptionInEventHandler(); |
| 116 | 117 |
| 117 // Used for legacy "onEvent" attribute APIs. | 118 // Used for legacy "onEvent" attribute APIs. |
| 118 bool setAttributeEventListener(const AtomicString& eventType, PassRefPtr
<EventListener>, DOMWrapperWorld* isolatedWorld = 0); | 119 bool setAttributeEventListener(const AtomicString& eventType, PassRefPtr
<EventListener>, DOMWrapperWorld* isolatedWorld = 0); |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 { | 203 { |
| 203 EventTargetData* d = eventTargetData(); | 204 EventTargetData* d = eventTargetData(); |
| 204 if (!d) | 205 if (!d) |
| 205 return false; | 206 return false; |
| 206 return d->eventListenerMap.containsCapturing(eventType); | 207 return d->eventListenerMap.containsCapturing(eventType); |
| 207 } | 208 } |
| 208 | 209 |
| 209 } // namespace WebCore | 210 } // namespace WebCore |
| 210 | 211 |
| 211 #endif // EventTarget_h | 212 #endif // EventTarget_h |
| OLD | NEW |