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

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

Issue 250923004: Synthesize ctrl-wheel events on touchpad pinch (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ensure scales never coalesce to 0 or Infinity 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/browser/renderer_host/input/touch_action_filter_unittest.cc
diff --git a/content/browser/renderer_host/input/touch_action_filter_unittest.cc b/content/browser/renderer_host/input/touch_action_filter_unittest.cc
index 38221245f6b0bbed9a4c952d66d5766242be0147..71a3c1ea43acba8e03a4479746b7d778d2c27795 100644
--- a/content/browser/renderer_host/input/touch_action_filter_unittest.cc
+++ b/content/browser/renderer_host/input/touch_action_filter_unittest.cc
@@ -382,7 +382,8 @@ TEST(TouchActionFilterTest, Pinch) {
WebGestureEvent pinch_begin = SyntheticWebGestureEventBuilder::Build(
WebInputEvent::GesturePinchBegin, WebGestureEvent::Touchscreen);
WebGestureEvent pinch_update =
- SyntheticWebGestureEventBuilder::BuildPinchUpdate(1.2f, 5, 5, 0);
+ SyntheticWebGestureEventBuilder::BuildPinchUpdate(
+ 1.2f, 5, 5, 0, WebGestureEvent::Touchscreen);
WebGestureEvent pinch_end = SyntheticWebGestureEventBuilder::Build(
WebInputEvent::GesturePinchEnd, WebGestureEvent::Touchscreen);
WebGestureEvent scroll_end = SyntheticWebGestureEventBuilder::Build(

Powered by Google App Engine
This is Rietveld 408576698