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

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

Issue 197213029: [Android] Remove the fork of GestureDetector.java (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix include Created 6 years, 9 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_detection/gesture_detector.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/gesture_detection/gesture_detector.cc
diff --git a/ui/events/gesture_detection/gesture_detector.cc b/ui/events/gesture_detection/gesture_detector.cc
index 509e59e8f2cecba6c0a7b975b0260e02b2a83008..8cf76e62394e31838e32ae2b44b01858107d72b1 100644
--- a/ui/events/gesture_detection/gesture_detector.cc
+++ b/ui/events/gesture_detection/gesture_detector.cc
@@ -264,6 +264,7 @@ bool GestureDetector::OnTouchEvent(const MotionEvent& ev) {
const float scroll_y = last_focus_y_ - focus_y;
if (is_double_tapping_) {
// Give the move events of the double-tap.
+ DCHECK(double_tap_listener_);
handled |= double_tap_listener_->OnDoubleTapEvent(ev);
} else if (always_in_tap_region_) {
const int delta_x = static_cast<int>(focus_x - down_focus_x_);
@@ -293,6 +294,7 @@ bool GestureDetector::OnTouchEvent(const MotionEvent& ev) {
{
if (is_double_tapping_) {
// Finally, give the up event of the double-tap.
+ DCHECK(double_tap_listener_);
handled |= double_tap_listener_->OnDoubleTapEvent(ev);
} else if (in_longpress_) {
timeout_handler_->StopTimeout(TAP);
« no previous file with comments | « ui/events/gesture_detection/gesture_detector.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698