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

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

Issue 1911373002: Articulate the cancel behavior in the WebTouchEvent. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
Patch Set: 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 135c58e9a60a7a852f2a61c10e26cc14307eac8b..687f21fa15c0d2ddbd6eea3b52c20ab8f9bafc73 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