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

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

Issue 316443004: Oilpan: Remove ref counting from EventTarget and all uses of Pass/RefPtr<EventTarget>. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: dbl trace 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2009, 2010, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2009, 2010, 2011 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 double m_mouseDownTimestamp; 360 double m_mouseDownTimestamp;
361 PlatformMouseEvent m_mouseDown; 361 PlatformMouseEvent m_mouseDown;
362 RefPtr<UserGestureToken> m_lastMouseDownUserGestureToken; 362 RefPtr<UserGestureToken> m_lastMouseDownUserGestureToken;
363 363
364 RefPtrWillBePersistent<Node> m_latchedWheelEventNode; 364 RefPtrWillBePersistent<Node> m_latchedWheelEventNode;
365 bool m_widgetIsLatched; 365 bool m_widgetIsLatched;
366 366
367 RefPtrWillBePersistent<Node> m_previousWheelScrolledNode; 367 RefPtrWillBePersistent<Node> m_previousWheelScrolledNode;
368 368
369 // The target of each active touch point indexed by the touch ID. 369 // The target of each active touch point indexed by the touch ID.
370 typedef HashMap<unsigned, RefPtr<EventTarget>, DefaultHash<unsigned>::Hash, WTF::UnsignedWithZeroKeyHashTraits<unsigned> > TouchTargetMap; 370 typedef WillBeHeapHashMap<unsigned, RefPtrWillBeMember<EventTarget>, Default Hash<unsigned>::Hash, WTF::UnsignedWithZeroKeyHashTraits<unsigned> > TouchTarget Map;
371 TouchTargetMap m_targetForTouchID; 371 typedef WillBePersistentHeapHashMap<unsigned, RefPtrWillBeMember<EventTarget >, DefaultHash<unsigned>::Hash, WTF::UnsignedWithZeroKeyHashTraits<unsigned> > P ersistentTouchTargetMap;
372 PersistentTouchTargetMap m_targetForTouchID;
372 373
373 // If set, the document of the active touch sequence. Unset if no touch sequ ence active. 374 // If set, the document of the active touch sequence. Unset if no touch sequ ence active.
374 RefPtrWillBePersistent<Document> m_touchSequenceDocument; 375 RefPtrWillBePersistent<Document> m_touchSequenceDocument;
375 376
376 bool m_touchPressed; 377 bool m_touchPressed;
377 378
378 RefPtrWillBePersistent<Node> m_scrollGestureHandlingNode; 379 RefPtrWillBePersistent<Node> m_scrollGestureHandlingNode;
379 bool m_lastHitTestResultOverWidget; 380 bool m_lastHitTestResultOverWidget;
380 RefPtrWillBePersistent<Node> m_previousGestureScrolledNode; 381 RefPtrWillBePersistent<Node> m_previousGestureScrolledNode;
381 RefPtr<Scrollbar> m_scrollbarHandlingScrollGesture; 382 RefPtr<Scrollbar> m_scrollbarHandlingScrollGesture;
382 383
383 double m_maxMouseMovedDuration; 384 double m_maxMouseMovedDuration;
384 PlatformEvent::Type m_baseEventType; 385 PlatformEvent::Type m_baseEventType;
385 bool m_didStartDrag; 386 bool m_didStartDrag;
386 387
387 bool m_longTapShouldInvokeContextMenu; 388 bool m_longTapShouldInvokeContextMenu;
388 389
389 Timer<EventHandler> m_activeIntervalTimer; 390 Timer<EventHandler> m_activeIntervalTimer;
390 double m_lastShowPressTimestamp; 391 double m_lastShowPressTimestamp;
391 RefPtrWillBePersistent<Element> m_lastDeferredTapElement; 392 RefPtrWillBePersistent<Element> m_lastDeferredTapElement;
392 }; 393 };
393 394
394 } // namespace WebCore 395 } // namespace WebCore
395 396
396 #endif // EventHandler_h 397 #endif // EventHandler_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698