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

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

Issue 185413023: Oilpan: move Touch related objects to the oilpan heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Avoid MSVC local class member function restriction 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
« no previous file with comments | « Source/core/events/TouchEvent.h ('k') | Source/core/events/TouchEventContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/events/TouchEventContext.h
diff --git a/Source/core/events/TouchEventContext.h b/Source/core/events/TouchEventContext.h
index b6c0f1a9311b0e6dacdc524af320dda40ae4b8b4..59ec27b8495d85ecaa9606d89dea27c1b1289ad2 100644
--- a/Source/core/events/TouchEventContext.h
+++ b/Source/core/events/TouchEventContext.h
@@ -27,6 +27,7 @@
#ifndef TouchEventContext_h
#define TouchEventContext_h
+#include "heap/Handle.h"
#include "wtf/PassRefPtr.h"
#include "wtf/RefCounted.h"
#include "wtf/RefPtr.h"
@@ -36,21 +37,23 @@ namespace WebCore {
class Event;
class TouchList;
-class TouchEventContext : public RefCounted<TouchEventContext> {
+class TouchEventContext : public RefCountedWillBeGarbageCollected<TouchEventContext> {
public:
- static PassRefPtr<TouchEventContext> create();
+ static PassRefPtrWillBeRawPtr<TouchEventContext> create();
~TouchEventContext();
void handleLocalEvents(Event*) const;
TouchList& touches() { return *m_touches; }
TouchList& targetTouches() { return *m_targetTouches; }
TouchList& changedTouches() { return *m_changedTouches; }
+ void trace(Visitor*);
+
private:
TouchEventContext();
- RefPtr<TouchList> m_touches;
- RefPtr<TouchList> m_targetTouches;
- RefPtr<TouchList> m_changedTouches;
+ RefPtrWillBeMember<TouchList> m_touches;
+ RefPtrWillBeMember<TouchList> m_targetTouches;
+ RefPtrWillBeMember<TouchList> m_changedTouches;
};
}
« no previous file with comments | « Source/core/events/TouchEvent.h ('k') | Source/core/events/TouchEventContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698