diff options
Diffstat (limited to 'chromium/third_party/WebKit/Source/core/events/EventDispatchMediator.h')
-rw-r--r-- | chromium/third_party/WebKit/Source/core/events/EventDispatchMediator.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/chromium/third_party/WebKit/Source/core/events/EventDispatchMediator.h b/chromium/third_party/WebKit/Source/core/events/EventDispatchMediator.h index 00ab327689a..233c442273c 100644 --- a/chromium/third_party/WebKit/Source/core/events/EventDispatchMediator.h +++ b/chromium/third_party/WebKit/Source/core/events/EventDispatchMediator.h @@ -31,6 +31,7 @@ #ifndef EventDispatchMediator_h #define EventDispatchMediator_h +#include "platform/heap/Handle.h" #include "wtf/PassRefPtr.h" #include "wtf/RefCounted.h" #include "wtf/RefPtr.h" @@ -41,20 +42,21 @@ class Event; class EventDispatcher; class Node; -class EventDispatchMediator : public RefCounted<EventDispatchMediator> { +class EventDispatchMediator : public RefCountedWillBeGarbageCollectedFinalized<EventDispatchMediator> { public: - static PassRefPtr<EventDispatchMediator> create(PassRefPtr<Event>); + static PassRefPtrWillBeRawPtr<EventDispatchMediator> create(PassRefPtrWillBeRawPtr<Event>); virtual ~EventDispatchMediator() { }; + virtual void trace(Visitor*); virtual bool dispatchEvent(EventDispatcher*) const; Event* event() const { return m_event.get(); }; protected: - explicit EventDispatchMediator(PassRefPtr<Event>); + explicit EventDispatchMediator(PassRefPtrWillBeRawPtr<Event>); EventDispatchMediator() { }; - void setEvent(PassRefPtr<Event> event) { m_event = event; }; + void setEvent(PassRefPtrWillBeRawPtr<Event> event) { m_event = event; }; private: - RefPtr<Event> m_event; + RefPtrWillBeMember<Event> m_event; }; } // namespace WebCore |