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

Unified Diff: content/browser/renderer_host/input/input_router_impl_unittest.cc

Issue 679633005: Expose native, desktop and mobile gesture detection defaults (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sanity check Created 6 years 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/browser/renderer_host/input/input_router_impl_unittest.cc
diff --git a/content/browser/renderer_host/input/input_router_impl_unittest.cc b/content/browser/renderer_host/input/input_router_impl_unittest.cc
index 08562d320cf49ef6d319a9e85cdc16eb475a3a00..3c76dff97a8d30c43ceb4762d55e3d5826fa7833 100644
--- a/content/browser/renderer_host/input/input_router_impl_unittest.cc
+++ b/content/browser/renderer_host/input/input_router_impl_unittest.cc
@@ -246,6 +246,10 @@ class InputRouterImplTest : public testing::Test {
}
void SendTouchEvent() {
+ // Always set this bit to avoid otherwise unexpected touchmove suppression
+ // by the TouchEventQueue.
+ touch_event_.causesScrollingIfUncanceled =
+ touch_event_.type == WebInputEvent::TouchMove;
input_router_->SendTouchEvent(
TouchEventWithLatencyInfo(touch_event_, ui::LatencyInfo()));
touch_event_.ResetPoints();

Powered by Google App Engine
This is Rietveld 408576698