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

Side by Side Diff: Source/core/page/EventHandler.cpp

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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/page/EventHandler.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv ed. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv ed.
3 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) 3 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org)
4 * Copyright (C) 2012 Digia Plc. and/or its subsidiary(-ies) 4 * Copyright (C) 2012 Digia Plc. and/or its subsidiary(-ies)
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 , m_activeIntervalTimer(this, &EventHandler::activeIntervalTimerFired) 230 , m_activeIntervalTimer(this, &EventHandler::activeIntervalTimerFired)
231 , m_lastShowPressTimestamp(0) 231 , m_lastShowPressTimestamp(0)
232 { 232 {
233 } 233 }
234 234
235 EventHandler::~EventHandler() 235 EventHandler::~EventHandler()
236 { 236 {
237 ASSERT(!m_fakeMouseMoveEventTimer.isActive()); 237 ASSERT(!m_fakeMouseMoveEventTimer.isActive());
238 } 238 }
239 239
240 void EventHandler::trace(Visitor* visitor)
241 {
242 visitor->trace(m_mousePressNode);
243 visitor->trace(m_capturingMouseEventsNode);
244 visitor->trace(m_nodeUnderMouse);
245 visitor->trace(m_lastNodeUnderMouse);
246 visitor->trace(m_clickNode);
247 visitor->trace(m_dragTarget);
248 visitor->trace(m_frameSetBeingResized);
249 visitor->trace(m_latchedWheelEventNode);
250 visitor->trace(m_previousWheelScrolledNode);
251 visitor->trace(m_targetForTouchID);
252 visitor->trace(m_touchSequenceDocument);
253 visitor->trace(m_scrollGestureHandlingNode);
254 visitor->trace(m_previousGestureScrolledNode);
255 visitor->trace(m_lastDeferredTapElement);
256 }
257
240 DragState& EventHandler::dragState() 258 DragState& EventHandler::dragState()
241 { 259 {
242 #if ENABLE(OILPAN) 260 #if ENABLE(OILPAN)
243 DEFINE_STATIC_LOCAL(Persistent<DragState>, state, (new DragState())); 261 DEFINE_STATIC_LOCAL(Persistent<DragState>, state, (new DragState()));
244 return *state; 262 return *state;
245 #else 263 #else
246 DEFINE_STATIC_LOCAL(DragState, state, ()); 264 DEFINE_STATIC_LOCAL(DragState, state, ());
247 return state; 265 return state;
248 #endif 266 #endif
249 } 267 }
(...skipping 3485 matching lines...) Expand 10 before | Expand all | Expand 10 after
3735 unsigned EventHandler::accessKeyModifiers() 3753 unsigned EventHandler::accessKeyModifiers()
3736 { 3754 {
3737 #if OS(MACOSX) 3755 #if OS(MACOSX)
3738 return PlatformEvent::CtrlKey | PlatformEvent::AltKey; 3756 return PlatformEvent::CtrlKey | PlatformEvent::AltKey;
3739 #else 3757 #else
3740 return PlatformEvent::AltKey; 3758 return PlatformEvent::AltKey;
3741 #endif 3759 #endif
3742 } 3760 }
3743 3761
3744 } // namespace WebCore 3762 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/page/EventHandler.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698