| 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 // http://crbug.com/353484 | 103 // http://crbug.com/353484 |
| 104 bool addEventListener() { return false; } | 104 bool addEventListener() { return false; } |
| 105 bool addEventListener(const AtomicString& eventType) { return false; } | 105 bool addEventListener(const AtomicString& eventType) { return false; } |
| 106 virtual bool addEventListener(const AtomicString& eventType, PassRefPtr<Even
tListener>, bool useCapture = false); | 106 virtual bool addEventListener(const AtomicString& eventType, PassRefPtr<Even
tListener>, bool useCapture = false); |
| 107 bool removeEventListener() { return false; } | 107 bool removeEventListener() { return false; } |
| 108 bool removeEventListener(const AtomicString& eventType) { return false; } | 108 bool removeEventListener(const AtomicString& eventType) { return false; } |
| 109 virtual bool removeEventListener(const AtomicString& eventType, PassRefPtr<E
ventListener>, bool useCapture = false); | 109 virtual bool removeEventListener(const AtomicString& eventType, PassRefPtr<E
ventListener>, bool useCapture = false); |
| 110 virtual void removeAllEventListeners(); | 110 virtual void removeAllEventListeners(); |
| 111 virtual bool dispatchEvent(PassRefPtr<Event>); | 111 virtual bool dispatchEvent(PassRefPtr<Event>); |
| 112 bool dispatchEvent(PassRefPtr<Event>, ExceptionState&); // DOM API | 112 bool dispatchEvent(PassRefPtr<Event>, ExceptionState&); // DOM API |
| 113 virtual void uncaughtExceptionInEventHandler(); | |
| 114 | 113 |
| 115 bool hasEventListeners() const; | 114 bool hasEventListeners() const; |
| 116 bool hasEventListeners(const AtomicString& eventType) const; | 115 bool hasEventListeners(const AtomicString& eventType) const; |
| 117 bool hasCapturingEventListeners(const AtomicString& eventType); | 116 bool hasCapturingEventListeners(const AtomicString& eventType); |
| 118 const EventListenerVector& getEventListeners(const AtomicString& eventType); | 117 const EventListenerVector& getEventListeners(const AtomicString& eventType); |
| 119 Vector<AtomicString> eventTypes(); | 118 Vector<AtomicString> eventTypes(); |
| 120 | 119 |
| 121 bool fireEventListeners(Event*); | 120 bool fireEventListeners(Event*); |
| 122 | 121 |
| 123 virtual bool keepEventInNode(Event*) { return false; }; | 122 virtual bool keepEventInNode(Event*) { return false; }; |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 typedef int thisIsHereToForceASemiColonAfterThisEventTargetMacro | 195 typedef int thisIsHereToForceASemiColonAfterThisEventTargetMacro |
| 197 #define DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(baseClass) DEFINE_EVENT_
TARGET_REFCOUNTING(baseClass) | 196 #define DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(baseClass) DEFINE_EVENT_
TARGET_REFCOUNTING(baseClass) |
| 198 #endif | 197 #endif |
| 199 | 198 |
| 200 // Use this macro if your EventTarget subclass is also a subclass of WTF::RefCou
nted. | 199 // Use this macro if your EventTarget subclass is also a subclass of WTF::RefCou
nted. |
| 201 // A ref-counted class that uses a different method of refcounting should use DE
FINE_EVENT_TARGET_REFCOUNTING directly. | 200 // A ref-counted class that uses a different method of refcounting should use DE
FINE_EVENT_TARGET_REFCOUNTING directly. |
| 202 // Both of these macros are meant to be placed just before the "public:" section
of the class declaration. | 201 // Both of these macros are meant to be placed just before the "public:" section
of the class declaration. |
| 203 #define REFCOUNTED_EVENT_TARGET(className) DEFINE_EVENT_TARGET_REFCOUNTING_WILL_
BE_REMOVED(RefCounted<className>) | 202 #define REFCOUNTED_EVENT_TARGET(className) DEFINE_EVENT_TARGET_REFCOUNTING_WILL_
BE_REMOVED(RefCounted<className>) |
| 204 | 203 |
| 205 #endif // SKY_ENGINE_CORE_EVENTS_EVENTTARGET_H_ | 204 #endif // SKY_ENGINE_CORE_EVENTS_EVENTTARGET_H_ |
| OLD | NEW |