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

Side by Side Diff: third_party/WebKit/Source/core/input/EventHandler.h

Issue 1989623002: Suppressed MEs for gestures from cancelled PEs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 DataTransfer* createDraggingDataTransfer() const; 227 DataTransfer* createDraggingDataTransfer() const;
228 228
229 WebInputEventResult handleMouseMoveOrLeaveEvent(const PlatformMouseEvent&, H itTestResult* hoveredNode = nullptr, bool onlyUpdateScrollbars = false, bool for ceLeave = false); 229 WebInputEventResult handleMouseMoveOrLeaveEvent(const PlatformMouseEvent&, H itTestResult* hoveredNode = nullptr, bool onlyUpdateScrollbars = false, bool for ceLeave = false);
230 WebInputEventResult handleMousePressEvent(const MouseEventWithHitTestResults &); 230 WebInputEventResult handleMousePressEvent(const MouseEventWithHitTestResults &);
231 WebInputEventResult handleMouseFocus(const MouseEventWithHitTestResults&, In putDeviceCapabilities* sourceCapabilities); 231 WebInputEventResult handleMouseFocus(const MouseEventWithHitTestResults&, In putDeviceCapabilities* sourceCapabilities);
232 WebInputEventResult handleMouseDraggedEvent(const MouseEventWithHitTestResul ts&); 232 WebInputEventResult handleMouseDraggedEvent(const MouseEventWithHitTestResul ts&);
233 WebInputEventResult handleMouseReleaseEvent(const MouseEventWithHitTestResul ts&); 233 WebInputEventResult handleMouseReleaseEvent(const MouseEventWithHitTestResul ts&);
234 234
235 HitTestRequest::HitTestRequestType getHitTypeForGestureType(PlatformEvent::E ventType); 235 HitTestRequest::HitTestRequestType getHitTypeForGestureType(PlatformEvent::E ventType);
236 void applyTouchAdjustment(PlatformGestureEvent*, HitTestResult*); 236 void applyTouchAdjustment(PlatformGestureEvent*, HitTestResult*);
237 WebInputEventResult handleGestureTapDown(const GestureEventWithHitTestResult s&);
237 WebInputEventResult handleGestureTap(const GestureEventWithHitTestResults&); 238 WebInputEventResult handleGestureTap(const GestureEventWithHitTestResults&);
238 WebInputEventResult handleGestureLongPress(const GestureEventWithHitTestResu lts&); 239 WebInputEventResult handleGestureLongPress(const GestureEventWithHitTestResu lts&);
239 WebInputEventResult handleGestureLongTap(const GestureEventWithHitTestResult s&); 240 WebInputEventResult handleGestureLongTap(const GestureEventWithHitTestResult s&);
240 241
241 void updateGestureTargetNodeForMouseEvent(const GestureEventWithHitTestResul ts&); 242 void updateGestureTargetNodeForMouseEvent(const GestureEventWithHitTestResul ts&);
242 243
243 bool shouldApplyTouchAdjustment(const PlatformGestureEvent&) const; 244 bool shouldApplyTouchAdjustment(const PlatformGestureEvent&) const;
244 245
245 OptionalCursor selectCursor(const HitTestResult&); 246 OptionalCursor selectCursor(const HitTestResult&);
246 OptionalCursor selectAutoCursor(const HitTestResult&, Node*, const Cursor& i Beam); 247 OptionalCursor selectAutoCursor(const HitTestResult&, Node*, const Cursor& i Beam);
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 PointerEventManager m_pointerEventManager; 374 PointerEventManager m_pointerEventManager;
374 ScrollManager m_scrollManager; 375 ScrollManager m_scrollManager;
375 376
376 double m_maxMouseMovedDuration; 377 double m_maxMouseMovedDuration;
377 378
378 bool m_longTapShouldInvokeContextMenu; 379 bool m_longTapShouldInvokeContextMenu;
379 380
380 Timer<EventHandler> m_activeIntervalTimer; 381 Timer<EventHandler> m_activeIntervalTimer;
381 double m_lastShowPressTimestamp; 382 double m_lastShowPressTimestamp;
382 Member<Element> m_lastDeferredTapElement; 383 Member<Element> m_lastDeferredTapElement;
384
385 // Set on GestureTapDown if the |pointerdown| event corresponding to the
386 // triggering |touchstart| event was canceled. This suppresses mouse event
387 // firing for the current gesture sequence (i.e. until next GestureTapDown).
388 bool m_suppressMouseEventsFromGestures;
383 }; 389 };
384 390
385 } // namespace blink 391 } // namespace blink
386 392
387 #endif // EventHandler_h 393 #endif // EventHandler_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698