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

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

Issue 2042333006: Reset drag state variables on mouse up (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 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 WebInputEventResult updatePointerTargetAndDispatchEvents(const AtomicString& mouseEventType, Node* target, 286 WebInputEventResult updatePointerTargetAndDispatchEvents(const AtomicString& mouseEventType, Node* target,
287 int clickCount, const PlatformMouseEvent&); 287 int clickCount, const PlatformMouseEvent&);
288 288
289 WebInputEventResult dispatchDragEvent(const AtomicString& eventType, Node* t arget, const PlatformMouseEvent&, DataTransfer*); 289 WebInputEventResult dispatchDragEvent(const AtomicString& eventType, Node* t arget, const PlatformMouseEvent&, DataTransfer*);
290 290
291 void clearDragDataTransfer(); 291 void clearDragDataTransfer();
292 292
293 bool handleDrag(const MouseEventWithHitTestResults&, DragInitiator); 293 bool handleDrag(const MouseEventWithHitTestResults&, DragInitiator);
294 bool tryStartDrag(const MouseEventWithHitTestResults&); 294 bool tryStartDrag(const MouseEventWithHitTestResults&);
295 void clearDragState(); 295 void clearDragState();
296 void clearMouseDragState();
296 297
297 WebInputEventResult dispatchDragSrcEvent(const AtomicString& eventType, cons t PlatformMouseEvent&); 298 WebInputEventResult dispatchDragSrcEvent(const AtomicString& eventType, cons t PlatformMouseEvent&);
298 299
299 bool dragHysteresisExceeded(const IntPoint&) const; 300 bool dragHysteresisExceeded(const IntPoint&) const;
300 301
301 WebInputEventResult passMousePressEventToSubframe(MouseEventWithHitTestResul ts&, LocalFrame* subframe); 302 WebInputEventResult passMousePressEventToSubframe(MouseEventWithHitTestResul ts&, LocalFrame* subframe);
302 WebInputEventResult passMouseMoveEventToSubframe(MouseEventWithHitTestResult s&, LocalFrame* subframe, HitTestResult* hoveredNode = nullptr); 303 WebInputEventResult passMouseMoveEventToSubframe(MouseEventWithHitTestResult s&, LocalFrame* subframe, HitTestResult* hoveredNode = nullptr);
303 WebInputEventResult passMouseReleaseEventToSubframe(MouseEventWithHitTestRes ults&, LocalFrame* subframe); 304 WebInputEventResult passMouseReleaseEventToSubframe(MouseEventWithHitTestRes ults&, LocalFrame* subframe);
304 305
305 bool passMousePressEventToScrollbar(MouseEventWithHitTestResults&); 306 bool passMousePressEventToScrollbar(MouseEventWithHitTestResults&);
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
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;
396 }; 397 };
397 398
398 } // namespace blink 399 } // namespace blink
399 400
400 #endif // EventHandler_h 401 #endif // EventHandler_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698