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

Unified Diff: Source/web/tests/TouchActionTest.cpp

Issue 247483002: Allow touch events to be uncancelable (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix build on some platforms 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
« no previous file with comments | « Source/web/WebInputEventConversion.cpp ('k') | Source/web/tests/WebInputEventConversionTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/tests/TouchActionTest.cpp
diff --git a/Source/web/tests/TouchActionTest.cpp b/Source/web/tests/TouchActionTest.cpp
index edde74b2bc8425072eacd0942c4ec9f6143a84b8..625c3667c9e7c488e91e13c24bba3960dfe7d119 100644
--- a/Source/web/tests/TouchActionTest.cpp
+++ b/Source/web/tests/TouchActionTest.cpp
@@ -294,6 +294,8 @@ void TouchActionTest::sendTouchEvent(WebView* webView, WebInputEvent::Type type,
WebTouchEvent webTouchEvent;
webTouchEvent.type = type;
+ if (type == WebInputEvent::TouchCancel)
+ webTouchEvent.cancelable = false;
webTouchEvent.touchesLength = 1;
webTouchEvent.touches[0].state = (type == WebInputEvent::TouchStart ?
WebTouchPoint::StatePressed :
« no previous file with comments | « Source/web/WebInputEventConversion.cpp ('k') | Source/web/tests/WebInputEventConversionTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698