Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(743)

Unified Diff: Source/core/events/EventDispatchMediator.h

Issue 216523002: Oilpan: Replace most of RefPtrs for Event objects with oilpan's transition types (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/events/EventDispatchMediator.h
diff --git a/Source/core/events/EventDispatchMediator.h b/Source/core/events/EventDispatchMediator.h
index 00ab327689afad8e3028588835b33d9b116b821d..aea29c6a25ce68edcc376e00a7e6f7d68333ad58 100644
--- a/Source/core/events/EventDispatchMediator.h
+++ b/Source/core/events/EventDispatchMediator.h
@@ -31,6 +31,7 @@
#ifndef EventDispatchMediator_h
#define EventDispatchMediator_h
+#include "heap/Handle.h"
#include "wtf/PassRefPtr.h"
#include "wtf/RefCounted.h"
#include "wtf/RefPtr.h"
@@ -43,18 +44,18 @@ class Node;
class EventDispatchMediator : public RefCounted<EventDispatchMediator> {
public:
- static PassRefPtr<EventDispatchMediator> create(PassRefPtr<Event>);
+ static PassRefPtr<EventDispatchMediator> create(PassRefPtrWillBeRawPtr<Event>);
virtual ~EventDispatchMediator() { };
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;
+ RefPtrWillBePersistent<Event> m_event;
};
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698