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

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: Removed browser-side plumbing, added tests. 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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 DataTransfer* createDraggingDataTransfer() const; 230 DataTransfer* createDraggingDataTransfer() const;
231 231
232 WebInputEventResult handleMouseMoveOrLeaveEvent(const PlatformMouseEvent&, H itTestResult* hoveredNode = nullptr, bool onlyUpdateScrollbars = false, bool for ceLeave = false); 232 WebInputEventResult handleMouseMoveOrLeaveEvent(const PlatformMouseEvent&, H itTestResult* hoveredNode = nullptr, bool onlyUpdateScrollbars = false, bool for ceLeave = false);
233 WebInputEventResult handleMousePressEvent(const MouseEventWithHitTestResults &); 233 WebInputEventResult handleMousePressEvent(const MouseEventWithHitTestResults &);
234 WebInputEventResult handleMouseFocus(const MouseEventWithHitTestResults&, In putDeviceCapabilities* sourceCapabilities); 234 WebInputEventResult handleMouseFocus(const MouseEventWithHitTestResults&, In putDeviceCapabilities* sourceCapabilities);
235 WebInputEventResult handleMouseDraggedEvent(const MouseEventWithHitTestResul ts&); 235 WebInputEventResult handleMouseDraggedEvent(const MouseEventWithHitTestResul ts&);
236 WebInputEventResult handleMouseReleaseEvent(const MouseEventWithHitTestResul ts&); 236 WebInputEventResult handleMouseReleaseEvent(const MouseEventWithHitTestResul ts&);
237 237
238 HitTestRequest::HitTestRequestType getHitTypeForGestureType(PlatformEvent::E ventType); 238 HitTestRequest::HitTestRequestType getHitTypeForGestureType(PlatformEvent::E ventType);
239 void applyTouchAdjustment(PlatformGestureEvent*, HitTestResult*); 239 void applyTouchAdjustment(PlatformGestureEvent*, HitTestResult*);
240 WebInputEventResult handleGestureTapDown(const GestureEventWithHitTestResult s&);
240 WebInputEventResult handleGestureTap(const GestureEventWithHitTestResults&); 241 WebInputEventResult handleGestureTap(const GestureEventWithHitTestResults&);
241 WebInputEventResult handleGestureLongPress(const GestureEventWithHitTestResu lts&); 242 WebInputEventResult handleGestureLongPress(const GestureEventWithHitTestResu lts&);
242 WebInputEventResult handleGestureLongTap(const GestureEventWithHitTestResult s&); 243 WebInputEventResult handleGestureLongTap(const GestureEventWithHitTestResult s&);
243 WebInputEventResult handleGestureScrollUpdate(const PlatformGestureEvent&); 244 WebInputEventResult handleGestureScrollUpdate(const PlatformGestureEvent&);
244 WebInputEventResult handleGestureScrollBegin(const PlatformGestureEvent&); 245 WebInputEventResult handleGestureScrollBegin(const PlatformGestureEvent&);
245 void clearGestureScrollState(); 246 void clearGestureScrollState();
246 247
247 void updateGestureTargetNodeForMouseEvent(const GestureEventWithHitTestResul ts&); 248 void updateGestureTargetNodeForMouseEvent(const GestureEventWithHitTestResul ts&);
248 249
249 bool shouldApplyTouchAdjustment(const PlatformGestureEvent&) const; 250 bool shouldApplyTouchAdjustment(const PlatformGestureEvent&) const;
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 Member<Element> m_lastDeferredTapElement; 457 Member<Element> m_lastDeferredTapElement;
457 458
458 // Only used with the ScrollCustomization runtime enabled feature. 459 // Only used with the ScrollCustomization runtime enabled feature.
459 std::deque<int> m_currentScrollChain; 460 std::deque<int> m_currentScrollChain;
460 // True iff some of the delta has been consumed for the current 461 // True iff some of the delta has been consumed for the current
461 // scroll sequence in this frame, or any child frames. Only used 462 // scroll sequence in this frame, or any child frames. Only used
462 // with ScrollCustomization. If some delta has been consumed, a 463 // with ScrollCustomization. If some delta has been consumed, a
463 // scroll which shouldn't propagate can't cause any element to 464 // scroll which shouldn't propagate can't cause any element to
464 // scroll other than the |m_previousGestureScrolledNode|. 465 // scroll other than the |m_previousGestureScrolledNode|.
465 bool m_deltaConsumedForScrollSequence; 466 bool m_deltaConsumedForScrollSequence;
467
468 // Set on GestureTapDown if the |pointerdown| event corresponding to the
469 // triggering |touchstart| event was canceled. This suppresses mouse event
470 // firing for the current gesure sequence (i.e. until next GestureTapDown).
tdresser 2016/05/27 18:26:32 gesure -> gesture.
mustaq 2016/06/02 19:26:26 Done.
471 bool m_suppressMouseEventsFromGestures;
466 }; 472 };
467 473
468 } // namespace blink 474 } // namespace blink
469 475
470 #endif // EventHandler_h 476 #endif // EventHandler_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698