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

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

Issue 1120293003: Make sure send one WebTouchEvent ack per ui::TouchEvent (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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: ui/events/gesture_detection/motion_event_generic.cc
diff --git a/ui/events/gesture_detection/motion_event_generic.cc b/ui/events/gesture_detection/motion_event_generic.cc
index 19262aa6e95dcc411beab127d95fd1d069bbd84a..db6eb572d4f3804d75889d24f1da3a1f1141af40 100644
--- a/ui/events/gesture_detection/motion_event_generic.cc
+++ b/ui/events/gesture_detection/motion_event_generic.cc
@@ -79,7 +79,7 @@ MotionEvent::Action MotionEventGeneric::GetAction() const {
}
int MotionEventGeneric::GetActionIndex() const {
- DCHECK(action_ == ACTION_POINTER_DOWN || action_ == ACTION_POINTER_UP);
+ DCHECK(action_ != ACTION_DOWN && action_ != ACTION_UP);
DCHECK_GE(action_index_, 0);
DCHECK_LT(action_index_, static_cast<int>(pointers_->size()));
return action_index_;

Powered by Google App Engine
This is Rietveld 408576698