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

Unified Diff: content/common/input/web_touch_event_traits.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
Index: content/common/input/web_touch_event_traits.cc
diff --git a/content/common/input/web_touch_event_traits.cc b/content/common/input/web_touch_event_traits.cc
index 535044cda4bb0f1ececf48d65cb72dea2f43dde4..031d4e10305599a480851553795873c5663ae88a 100644
--- a/content/common/input/web_touch_event_traits.cc
+++ b/content/common/input/web_touch_event_traits.cc
@@ -55,7 +55,9 @@ void WebTouchEventTraits::ResetType(WebInputEvent::Type type,
DCHECK(type != WebInputEvent::TouchScrollStarted);
event->type = type;
- event->cancelable = (type != WebInputEvent::TouchCancel);
+ event->dispatchType = type == WebInputEvent::TouchCancel
+ ? WebInputEvent::EventNonBlocking
+ : WebInputEvent::Blocking;
event->timeStampSeconds = timestamp_sec;
}
« no previous file with comments | « content/common/input/web_input_event_traits_unittest.cc ('k') | content/renderer/input/input_event_filter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698