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

Unified Diff: components/test_runner/event_sender.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 | « no previous file | content/browser/renderer_host/input/input_router_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/test_runner/event_sender.cc
diff --git a/components/test_runner/event_sender.cc b/components/test_runner/event_sender.cc
index fca46e1cb494b85a6b52171ed62b5bd83440c0b1..ce6c34ea8d0402fceca322b40c335257f2f01e0e 100644
--- a/components/test_runner/event_sender.cc
+++ b/components/test_runner/event_sender.cc
@@ -2163,7 +2163,9 @@ void EventSender::SendCurrentTouchEvent(WebInputEvent::Type type,
WebTouchEvent touch_event;
touch_event.type = type;
touch_event.modifiers = touch_modifiers_;
- touch_event.cancelable = touch_cancelable_;
+ touch_event.dispatchType = touch_cancelable_
+ ? WebInputEvent::Blocking
+ : WebInputEvent::EventNonBlocking;
touch_event.timeStampSeconds = GetCurrentEventTimeSec();
touch_event.movedBeyondSlopRegion = movedBeyondSlopRegion;
touch_event.touchesLength = touch_points_.size();
« no previous file with comments | « no previous file | content/browser/renderer_host/input/input_router_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698