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

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: Implementing review feedback. 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 55bc37010402aad0021a62760f0a07d5d378ca89..8b9000ddad1e27d906fb1759a3a392c85ab0e372 100644
--- a/ui/events/gesture_detection/gesture_provider.cc
+++ b/ui/events/gesture_detection/gesture_provider.cc
@@ -385,10 +385,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;
}
« no previous file with comments | « ui/events/gesture_detection/gesture_detector.cc ('k') | ui/events/gesture_detection/gesture_provider_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698