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

Unified Diff: components/test_runner/event_sender.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 | « 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 7d6df6ece65a4f24a3a9073364bdf2ae71ca21fe..49a9b030d49a098da315dd062f8aa77053bdf0bb 100644
--- a/components/test_runner/event_sender.cc
+++ b/components/test_runner/event_sender.cc
@@ -2011,7 +2011,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