summaryrefslogtreecommitdiffstats
path: root/WebCore/dom/EventTarget.h
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2009-03-05 14:34:32 -0800
committerThe Android Open Source Project <initial-contribution@android.com>2009-03-05 14:34:32 -0800
commit635860845790a19bf50bbc51ba8fb66a96dde068 (patch)
treeef6ad9ff73a5b57f65249d4232a202fa77e6a140 /WebCore/dom/EventTarget.h
parent8e35f3cfc7fba1d1c829dc557ebad6409cbe16a2 (diff)
downloadexternal_webkit-635860845790a19bf50bbc51ba8fb66a96dde068.zip
external_webkit-635860845790a19bf50bbc51ba8fb66a96dde068.tar.gz
external_webkit-635860845790a19bf50bbc51ba8fb66a96dde068.tar.bz2
auto import from //depot/cupcake/@136594
Diffstat (limited to 'WebCore/dom/EventTarget.h')
-rw-r--r--WebCore/dom/EventTarget.h26
1 files changed, 15 insertions, 11 deletions
diff --git a/WebCore/dom/EventTarget.h b/WebCore/dom/EventTarget.h
index da2130c..3a3ec84 100644
--- a/WebCore/dom/EventTarget.h
+++ b/WebCore/dom/EventTarget.h
@@ -42,17 +42,15 @@ namespace WebCore {
class EventListener;
class EventTargetNode;
class MessagePort;
- class RegisteredEventListener;
class ScriptExecutionContext;
class SVGElementInstance;
+ class Worker;
+ class WorkerContext;
class XMLHttpRequest;
class XMLHttpRequestUpload;
typedef int ExceptionCode;
- template<typename T> class DeprecatedValueList;
- typedef DeprecatedValueList<RefPtr<RegisteredEventListener> > RegisteredEventListenerList;
-
class EventTarget {
public:
virtual MessagePort* toMessagePort();
@@ -65,6 +63,10 @@ namespace WebCore {
#if ENABLE(SVG)
virtual SVGElementInstance* toSVGElementInstance();
#endif
+#if ENABLE(WORKERS)
+ virtual Worker* toWorker();
+ virtual WorkerContext* toWorkerContext();
+#endif
virtual ScriptExecutionContext* scriptExecutionContext() const = 0;
@@ -78,7 +80,7 @@ namespace WebCore {
// Handlers to do/undo actions on the target node before an event is dispatched to it and after the event
// has been dispatched. The data pointer is handed back by the preDispatch and passed to postDispatch.
virtual void* preDispatchEventHandler(Event*) { return 0; }
- virtual void postDispatchEventHandler(Event*, void* dataFromPreDispatch) { }
+ virtual void postDispatchEventHandler(Event*, void* /*dataFromPreDispatch*/) { }
protected:
virtual ~EventTarget();
@@ -88,14 +90,16 @@ namespace WebCore {
virtual void derefEventTarget() = 0;
};
+ void forbidEventDispatch();
+ void allowEventDispatch();
+
#ifndef NDEBUG
-void forbidEventDispatch();
-void allowEventDispatch();
-bool eventDispatchForbidden();
+ bool eventDispatchForbidden();
#else
-inline void forbidEventDispatch() { }
-inline void allowEventDispatch() { }
-#endif // NDEBUG
+ inline void forbidEventDispatch() { }
+ inline void allowEventDispatch() { }
+#endif
}
+
#endif