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

Unified Diff: content/shell/renderer/test_runner/event_sender.cc

Issue 247433003: Mark touchcancel events as uncancelable (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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/shell/renderer/test_runner/event_sender.cc
diff --git a/content/shell/renderer/test_runner/event_sender.cc b/content/shell/renderer/test_runner/event_sender.cc
index fb60ca6e73726fc269bcf4036ddfebd79c705f18..9786bbce4fbed521fdf396deb2f42b76014714b0 100644
--- a/content/shell/renderer/test_runner/event_sender.cc
+++ b/content/shell/renderer/test_runner/event_sender.cc
@@ -1764,6 +1764,8 @@ void EventSender::SendCurrentTouchEvent(WebInputEvent::Type type) {
touch_event.type = type;
touch_event.modifiers = touch_modifiers_;
touch_event.timeStampSeconds = GetCurrentEventTimeSec();
+ if (type == WebInputEvent::TouchCancel)
+ touch_event.cancelable = false;
touch_event.touchesLength = touch_points_.size();
for (size_t i = 0; i < touch_points_.size(); ++i)
touch_event.touches[i] = touch_points_[i];

Powered by Google App Engine
This is Rietveld 408576698