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

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: Rebased 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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 DataTransfer* createDraggingDataTransfer() const; 239 DataTransfer* createDraggingDataTransfer() const;
240 240
241 WebInputEventResult handleMouseMoveOrLeaveEvent(const PlatformMouseEvent&, H itTestResult* hoveredNode = nullptr, bool onlyUpdateScrollbars = false, bool for ceLeave = false); 241 WebInputEventResult handleMouseMoveOrLeaveEvent(const PlatformMouseEvent&, H itTestResult* hoveredNode = nullptr, bool onlyUpdateScrollbars = false, bool for ceLeave = false);
242 WebInputEventResult handleMousePressEvent(const MouseEventWithHitTestResults &); 242 WebInputEventResult handleMousePressEvent(const MouseEventWithHitTestResults &);
243 WebInputEventResult handleMouseFocus(const MouseEventWithHitTestResults&, In putDeviceCapabilities* sourceCapabilities); 243 WebInputEventResult handleMouseFocus(const MouseEventWithHitTestResults&, In putDeviceCapabilities* sourceCapabilities);
244 WebInputEventResult handleMouseDraggedEvent(const MouseEventWithHitTestResul ts&); 244 WebInputEventResult handleMouseDraggedEvent(const MouseEventWithHitTestResul ts&);
245 WebInputEventResult handleMouseReleaseEvent(const MouseEventWithHitTestResul ts&); 245 WebInputEventResult handleMouseReleaseEvent(const MouseEventWithHitTestResul ts&);
246 246
247 HitTestRequest::HitTestRequestType getHitTypeForGestureType(PlatformEvent::E ventType); 247 HitTestRequest::HitTestRequestType getHitTypeForGestureType(PlatformEvent::E ventType);
248 void applyTouchAdjustment(PlatformGestureEvent*, HitTestResult*); 248 void applyTouchAdjustment(PlatformGestureEvent*, HitTestResult*);
249 WebInputEventResult handleGestureTapDown(const GestureEventWithHitTestResult s&);
249 WebInputEventResult handleGestureTap(const GestureEventWithHitTestResults&); 250 WebInputEventResult handleGestureTap(const GestureEventWithHitTestResults&);
250 WebInputEventResult handleGestureLongPress(const GestureEventWithHitTestResu lts&); 251 WebInputEventResult handleGestureLongPress(const GestureEventWithHitTestResu lts&);
251 WebInputEventResult handleGestureLongTap(const GestureEventWithHitTestResult s&); 252 WebInputEventResult handleGestureLongTap(const GestureEventWithHitTestResult s&);
252 253
253 void updateGestureTargetNodeForMouseEvent(const GestureEventWithHitTestResul ts&); 254 void updateGestureTargetNodeForMouseEvent(const GestureEventWithHitTestResul ts&);
254 255
255 bool shouldApplyTouchAdjustment(const PlatformGestureEvent&) const; 256 bool shouldApplyTouchAdjustment(const PlatformGestureEvent&) const;
256 257
257 OptionalCursor selectCursor(const HitTestResult&); 258 OptionalCursor selectCursor(const HitTestResult&);
258 OptionalCursor selectAutoCursor(const HitTestResult&, Node*, const Cursor& i Beam); 259 OptionalCursor selectAutoCursor(const HitTestResult&, Node*, const Cursor& i Beam);
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 ScrollManager m_scrollManager; 387 ScrollManager m_scrollManager;
387 KeyboardEventManager m_keyboardEventManager; 388 KeyboardEventManager m_keyboardEventManager;
388 389
389 double m_maxMouseMovedDuration; 390 double m_maxMouseMovedDuration;
390 391
391 bool m_longTapShouldInvokeContextMenu; 392 bool m_longTapShouldInvokeContextMenu;
392 393
393 Timer<EventHandler> m_activeIntervalTimer; 394 Timer<EventHandler> m_activeIntervalTimer;
394 double m_lastShowPressTimestamp; 395 double m_lastShowPressTimestamp;
395 Member<Element> m_lastDeferredTapElement; 396 Member<Element> m_lastDeferredTapElement;
397
398 // Set on GestureTapDown if the |pointerdown| event corresponding to the
399 // triggering |touchstart| event was canceled. This suppresses mouse event
400 // firing for the current gesture sequence (i.e. until next GestureTapDown).
401 bool m_suppressMouseEventsFromGestures;
396 }; 402 };
397 403
398 } // namespace blink 404 } // namespace blink
399 405
400 #endif // EventHandler_h 406 #endif // EventHandler_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698