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

Unified Diff: Source/core/page/EventHandler.h

Issue 317073007: Oilpan: Prepare to move EventHandler to Oilpan heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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/frame/LocalFrame.cpp ('k') | Source/core/page/EventHandler.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/EventHandler.h
diff --git a/Source/core/page/EventHandler.h b/Source/core/page/EventHandler.h
index b509417032cbe547896a716fe2e8d7faac190a2f..b9378a6903aac6953fbe85facb81265f3348b82d 100644
--- a/Source/core/page/EventHandler.h
+++ b/Source/core/page/EventHandler.h
@@ -84,11 +84,12 @@ class DragState;
enum AppendTrailingWhitespace { ShouldAppendTrailingWhitespace, DontAppendTrailingWhitespace };
enum CheckDragHysteresis { ShouldCheckDragHysteresis, DontCheckDragHysteresis };
-class EventHandler {
+class EventHandler : public NoBaseWillBeGarbageCollectedFinalized<EventHandler> {
WTF_MAKE_NONCOPYABLE(EventHandler);
public:
explicit EventHandler(LocalFrame*);
~EventHandler();
+ void trace(Visitor*);
void clear();
void nodeWillBeRemoved(Node&);
@@ -312,7 +313,7 @@ private:
bool m_mousePressed;
bool m_capturesDragging;
- RefPtrWillBePersistent<Node> m_mousePressNode;
+ RefPtrWillBeMember<Node> m_mousePressNode;
bool m_mouseDownMayStartSelect;
bool m_mouseDownMayStartDrag;
@@ -334,22 +335,22 @@ private:
RenderLayerScrollableArea* m_resizeScrollableArea;
- RefPtrWillBePersistent<Node> m_capturingMouseEventsNode;
+ RefPtrWillBeMember<Node> m_capturingMouseEventsNode;
bool m_eventHandlerWillResetCapturingMouseEventsNode;
- RefPtrWillBePersistent<Node> m_nodeUnderMouse;
- RefPtrWillBePersistent<Node> m_lastNodeUnderMouse;
+ RefPtrWillBeMember<Node> m_nodeUnderMouse;
+ RefPtrWillBeMember<Node> m_lastNodeUnderMouse;
RefPtr<LocalFrame> m_lastMouseMoveEventSubframe;
RefPtr<Scrollbar> m_lastScrollbarUnderMouse;
Cursor m_currentMouseCursor;
int m_clickCount;
- RefPtrWillBePersistent<Node> m_clickNode;
+ RefPtrWillBeMember<Node> m_clickNode;
- RefPtrWillBePersistent<Node> m_dragTarget;
+ RefPtrWillBeMember<Node> m_dragTarget;
bool m_shouldOnlyFireDragOverEvent;
- RefPtrWillBePersistent<HTMLFrameSetElement> m_frameSetBeingResized;
+ RefPtrWillBeMember<HTMLFrameSetElement> m_frameSetBeingResized;
LayoutSize m_offsetFromResizeCorner; // In the coords of m_resizeScrollableArea.
@@ -361,24 +362,23 @@ private:
PlatformMouseEvent m_mouseDown;
RefPtr<UserGestureToken> m_lastMouseDownUserGestureToken;
- RefPtrWillBePersistent<Node> m_latchedWheelEventNode;
+ RefPtrWillBeMember<Node> m_latchedWheelEventNode;
bool m_widgetIsLatched;
- RefPtrWillBePersistent<Node> m_previousWheelScrolledNode;
+ RefPtrWillBeMember<Node> m_previousWheelScrolledNode;
// The target of each active touch point indexed by the touch ID.
typedef WillBeHeapHashMap<unsigned, RefPtrWillBeMember<EventTarget>, DefaultHash<unsigned>::Hash, WTF::UnsignedWithZeroKeyHashTraits<unsigned> > TouchTargetMap;
- typedef WillBePersistentHeapHashMap<unsigned, RefPtrWillBeMember<EventTarget>, DefaultHash<unsigned>::Hash, WTF::UnsignedWithZeroKeyHashTraits<unsigned> > PersistentTouchTargetMap;
- PersistentTouchTargetMap m_targetForTouchID;
+ TouchTargetMap m_targetForTouchID;
// If set, the document of the active touch sequence. Unset if no touch sequence active.
- RefPtrWillBePersistent<Document> m_touchSequenceDocument;
+ RefPtrWillBeMember<Document> m_touchSequenceDocument;
bool m_touchPressed;
- RefPtrWillBePersistent<Node> m_scrollGestureHandlingNode;
+ RefPtrWillBeMember<Node> m_scrollGestureHandlingNode;
bool m_lastHitTestResultOverWidget;
- RefPtrWillBePersistent<Node> m_previousGestureScrolledNode;
+ RefPtrWillBeMember<Node> m_previousGestureScrolledNode;
RefPtr<Scrollbar> m_scrollbarHandlingScrollGesture;
double m_maxMouseMovedDuration;
@@ -389,7 +389,7 @@ private:
Timer<EventHandler> m_activeIntervalTimer;
double m_lastShowPressTimestamp;
- RefPtrWillBePersistent<Element> m_lastDeferredTapElement;
+ RefPtrWillBeMember<Element> m_lastDeferredTapElement;
};
} // namespace WebCore
« no previous file with comments | « Source/core/frame/LocalFrame.cpp ('k') | Source/core/page/EventHandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698