| 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 | 118 |
| 119 #if !ENABLE(OILPAN) | 119 #if !ENABLE(OILPAN) |
| 120 void ref() { refEventTarget(); } | 120 void ref() { refEventTarget(); } |
| 121 void deref() { derefEventTarget(); } | 121 void deref() { derefEventTarget(); } |
| 122 #endif | 122 #endif |
| 123 | 123 |
| 124 virtual const AtomicString& interfaceName() const = 0; | 124 virtual const AtomicString& interfaceName() const = 0; |
| 125 virtual ExecutionContext* executionContext() const = 0; | 125 virtual ExecutionContext* executionContext() const = 0; |
| 126 | 126 |
| 127 virtual Node* toNode(); | 127 virtual Node* toNode(); |
| 128 virtual const LocalDOMWindow* toDOMWindow() const; |
| 128 virtual LocalDOMWindow* toDOMWindow(); | 129 virtual LocalDOMWindow* toDOMWindow(); |
| 129 virtual MessagePort* toMessagePort(); | 130 virtual MessagePort* toMessagePort(); |
| 130 | 131 |
| 131 bool addEventListener(const AtomicString& eventType, PassRefPtrWillBeRawPtr<
EventListener>, bool useCapture = false); | 132 bool addEventListener(const AtomicString& eventType, PassRefPtrWillBeRawPtr<
EventListener>, bool useCapture = false); |
| 132 bool addEventListener(const AtomicString& eventType, PassRefPtrWillBeRawPtr<
EventListener>, const EventListenerOptionsOrBoolean&); | 133 bool addEventListener(const AtomicString& eventType, PassRefPtrWillBeRawPtr<
EventListener>, const EventListenerOptionsOrBoolean&); |
| 133 bool addEventListener(const AtomicString& eventType, PassRefPtrWillBeRawPtr<
EventListener>, EventListenerOptions&); | 134 bool addEventListener(const AtomicString& eventType, PassRefPtrWillBeRawPtr<
EventListener>, EventListenerOptions&); |
| 134 | 135 |
| 135 bool removeEventListener(const AtomicString& eventType, PassRefPtrWillBeRawP
tr<EventListener>, bool useCapture = false); | 136 bool removeEventListener(const AtomicString& eventType, PassRefPtrWillBeRawP
tr<EventListener>, bool useCapture = false); |
| 136 bool removeEventListener(const AtomicString& eventType, PassRefPtrWillBeRawP
tr<EventListener>, const EventListenerOptionsOrBoolean&); | 137 bool removeEventListener(const AtomicString& eventType, PassRefPtrWillBeRawP
tr<EventListener>, const EventListenerOptionsOrBoolean&); |
| 137 bool removeEventListener(const AtomicString& eventType, PassRefPtrWillBeRawP
tr<EventListener>, EventListenerOptions&); | 138 bool removeEventListener(const AtomicString& eventType, PassRefPtrWillBeRawP
tr<EventListener>, EventListenerOptions&); |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 318 using baseClass::deref; \ | 319 using baseClass::deref; \ |
| 319 private: \ | 320 private: \ |
| 320 void refEventTarget() final { ref(); } \ | 321 void refEventTarget() final { ref(); } \ |
| 321 void derefEventTarget() final { deref(); } \ | 322 void derefEventTarget() final { deref(); } \ |
| 322 typedef int thisIsHereToForceASemiColonAfterThisEventTargetMacro | 323 typedef int thisIsHereToForceASemiColonAfterThisEventTargetMacro |
| 323 #define REFCOUNTED_EVENT_TARGET(baseClass) DEFINE_EVENT_TARGET_REFCOUNTING(RefCo
unted<baseClass>) | 324 #define REFCOUNTED_EVENT_TARGET(baseClass) DEFINE_EVENT_TARGET_REFCOUNTING(RefCo
unted<baseClass>) |
| 324 #define REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(baseClass) DEFINE_EVENT_TARGET
_REFCOUNTING(RefCountedGarbageCollected<baseClass>) | 325 #define REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(baseClass) DEFINE_EVENT_TARGET
_REFCOUNTING(RefCountedGarbageCollected<baseClass>) |
| 325 #endif // ENABLE(OILPAN) | 326 #endif // ENABLE(OILPAN) |
| 326 | 327 |
| 327 #endif // EventTarget_h | 328 #endif // EventTarget_h |
| OLD | NEW |