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

Unified Diff: ui/events/gestures/gesture_provider_aura.cc

Issue 321563002: Support minimum gesture bounds in GestureProvider (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile Created 6 years, 6 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 | « ui/events/gesture_event_details.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/gestures/gesture_provider_aura.cc
diff --git a/ui/events/gestures/gesture_provider_aura.cc b/ui/events/gestures/gesture_provider_aura.cc
index 39642e07f324048500d06c75b75b660817d2da37..eb902f507f8ace3c2915f5b7c4ba77de1155b9d4 100644
--- a/ui/events/gestures/gesture_provider_aura.cc
+++ b/ui/events/gestures/gesture_provider_aura.cc
@@ -62,7 +62,7 @@ void GestureProviderAura::OnGestureEvent(
const GestureEventData& gesture) {
GestureEventDetails details = gesture.details;
- if (gesture.type == ET_GESTURE_TAP) {
+ if (gesture.type() == ET_GESTURE_TAP) {
int tap_count = 1;
if (previous_tap_ && IsConsideredDoubleTap(*previous_tap_, gesture))
tap_count = 1 + (previous_tap_->details.tap_count() % 3);
@@ -72,12 +72,12 @@ void GestureProviderAura::OnGestureEvent(
else
*previous_tap_ = gesture;
previous_tap_->details = details;
- } else if (gesture.type == ET_GESTURE_TAP_CANCEL) {
+ } else if (gesture.type() == ET_GESTURE_TAP_CANCEL) {
previous_tap_.reset();
}
scoped_ptr<ui::GestureEvent> event(
- new ui::GestureEvent(gesture.type,
+ new ui::GestureEvent(gesture.type(),
gesture.x,
gesture.y,
last_touch_event_flags_,
« no previous file with comments | « ui/events/gesture_event_details.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698