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

Unified Diff: ui/events/blink/blink_event_util.cc

Issue 1888163003: Articulate the cancel behavior in the WebTouchEvent. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and non-const ref passed back Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/metrics/histograms/histograms.xml ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/blink/blink_event_util.cc
diff --git a/ui/events/blink/blink_event_util.cc b/ui/events/blink/blink_event_util.cc
index 436d2d85df6d774e076fe6dcedeaf6ed31fcf3be..df39dcf713c49bd851637ab7fb01c5a7f70adaef 100644
--- a/ui/events/blink/blink_event_util.cc
+++ b/ui/events/blink/blink_event_util.cc
@@ -169,7 +169,9 @@ blink::WebTouchEvent CreateWebTouchEventFromMotionEvent(
blink::WebTouchEvent result;
result.type = ToWebInputEventType(event.GetAction());
- result.cancelable = (result.type != WebInputEvent::TouchCancel);
+ result.dispatchType = result.type == WebInputEvent::TouchCancel
+ ? WebInputEvent::EventNonBlocking
+ : WebInputEvent::Blocking;
result.timeStampSeconds =
(event.GetEventTime() - base::TimeTicks()).InSecondsF();
result.movedBeyondSlopRegion = moved_beyond_slop_region;
« no previous file with comments | « tools/metrics/histograms/histograms.xml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698