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

Unified Diff: ui/events/gesture_detection/gesture_provider.cc

Issue 302463004: Implementing the dispatch of the swipe gesture for one-finger touch swipes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 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: ui/events/gesture_detection/gesture_provider.cc
diff --git a/ui/events/gesture_detection/gesture_provider.cc b/ui/events/gesture_detection/gesture_provider.cc
index 7607f08d8765a7fbc02a96f7eb471af5f813efcb..095c78846d2825614d92d2343ae123fa5db1d698 100644
--- a/ui/events/gesture_detection/gesture_provider.cc
+++ b/ui/events/gesture_detection/gesture_provider.cc
@@ -375,10 +375,8 @@ class GestureProvider::GestureListenerImpl
const MotionEvent& e2,
float velocity_x,
float velocity_y) OVERRIDE {
- GestureEventDetails swipe_details(
- ET_GESTURE_MULTIFINGER_SWIPE, velocity_x, velocity_y);
- provider_->Send(
- CreateGesture(ET_GESTURE_MULTIFINGER_SWIPE, e2, swipe_details));
+ GestureEventDetails swipe_details(ET_GESTURE_SWIPE, velocity_x, velocity_y);
+ provider_->Send(CreateGesture(ET_GESTURE_SWIPE, e2, swipe_details));
return true;
}

Powered by Google App Engine
This is Rietveld 408576698