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

Unified Diff: ui/base/gestures/gesture_sequence.cc

Issue 10702096: Corrected issues with queued touch events. This fixes gestures in Windows. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix build breakage. Adding a missing header. Created 8 years, 5 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 | « content/browser/renderer_host/render_widget_host_view_win.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/gestures/gesture_sequence.cc
diff --git a/ui/base/gestures/gesture_sequence.cc b/ui/base/gestures/gesture_sequence.cc
index 7b4eb741a35bfbe68fff05692b85d11e66e717b5..e4150d0aafb173977b0831be787c3076262b957e 100644
--- a/ui/base/gestures/gesture_sequence.cc
+++ b/ui/base/gestures/gesture_sequence.cc
@@ -298,7 +298,7 @@ GestureSequence::Gestures* GestureSequence::ProcessTouchEventForGesture(
GesturePoint* new_point = &points_[event.GetTouchId()];
// We shouldn't be able to get two PRESSED events from the same
// finger without either a RELEASE or CANCEL in between.
- DCHECK(!points_[event.GetTouchId()].in_use());
+ DCHECK(!new_point->in_use());
new_point->set_point_id(point_count_++);
new_point->set_touch_id(event.GetTouchId());
}
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698