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

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: Modify PlatformTouchEvent and address comments in patch set 1 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
Index: components/test_runner/event_sender.cc
diff --git a/components/test_runner/event_sender.cc b/components/test_runner/event_sender.cc
index 58b8f1c179ad0271b0cfa6f2f8d1e08f2af055dd..a09a8b56154eab6f8a84fec625053bc8fbd5e062 100644
--- a/components/test_runner/event_sender.cc
+++ b/components/test_runner/event_sender.cc
@@ -2160,7 +2160,8 @@ 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::EventNonBlocking
+ : WebInputEvent::Blocking;
touch_event.timeStampSeconds = GetCurrentEventTimeSec();
touch_event.movedBeyondSlopRegion = movedBeyondSlopRegion;
touch_event.touchesLength = touch_points_.size();

Powered by Google App Engine
This is Rietveld 408576698