| Index: sky/engine/core/events/EventListener.h
|
| diff --git a/sky/engine/core/events/EventListener.h b/sky/engine/core/events/EventListener.h
|
| index 8552c57c6f3bc480c5eb9b6744add0e0fd47f3b3..b62b2dbad9e384b38dab08b7d5b6d64c8ffcee1d 100644
|
| --- a/sky/engine/core/events/EventListener.h
|
| +++ b/sky/engine/core/events/EventListener.h
|
| @@ -25,40 +25,20 @@
|
|
|
| namespace blink {
|
|
|
| - class DOMWrapperWorld;
|
| - class Event;
|
| - class ExecutionContext;
|
| -
|
| - class EventListener : public RefCounted<EventListener> {
|
| - public:
|
| - enum Type {
|
| - JSEventListenerType,
|
| - ImageEventListenerType,
|
| - CPPEventListenerType,
|
| - ConditionEventListenerType,
|
| - NativeEventListenerType,
|
| - };
|
| -
|
| - virtual ~EventListener() { }
|
| - virtual bool operator==(const EventListener&) = 0;
|
| - virtual void handleEvent(ExecutionContext*, Event*) = 0;
|
| - virtual bool wasCreatedFromMarkup() const { return false; }
|
| - virtual bool belongsToTheCurrentWorld() const { return false; }
|
| -
|
| - bool isAttribute() const { return virtualisAttribute(); }
|
| - Type type() const { return m_type; }
|
| -
|
| - protected:
|
| - explicit EventListener(Type type)
|
| - : m_type(type)
|
| - {
|
| - }
|
| -
|
| - private:
|
| - virtual bool virtualisAttribute() const { return false; }
|
| -
|
| - Type m_type;
|
| - };
|
| +class Event;
|
| +class ExecutionContext;
|
| +
|
| +class EventListener : public RefCounted<EventListener> {
|
| +public:
|
| + virtual ~EventListener() { }
|
| + virtual bool operator==(const EventListener&) = 0;
|
| + virtual void handleEvent(ExecutionContext*, Event*) = 0;
|
| +
|
| +protected:
|
| + explicit EventListener()
|
| + {
|
| + }
|
| +};
|
|
|
| }
|
|
|
|
|