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

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

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
Index: ui/events/gesture_detection/gesture_detector.h
diff --git a/ui/events/gesture_detection/gesture_detector.h b/ui/events/gesture_detection/gesture_detector.h
index 7e86f69f30800e315d51641ebd6a11ed208fec69..ff60905b39034d6b1095a1fc74b752fa0bb36f36 100644
--- a/ui/events/gesture_detection/gesture_detector.h
+++ b/ui/events/gesture_detection/gesture_detector.h
@@ -5,6 +5,7 @@
#ifndef UI_EVENTS_GESTURE_DETECTION_GESTURE_DETECTOR_H_
#define UI_EVENTS_GESTURE_DETECTION_GESTURE_DETECTOR_H_
+#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
#include "ui/events/gesture_detection/gesture_detection_export.h"
#include "ui/events/gesture_detection/velocity_tracker_state.h"
@@ -83,6 +84,7 @@ class GestureDetector {
bool OnTouchEvent(const MotionEvent& ev);
void set_doubletap_listener(DoubleTapListener* double_tap_listener) {
+ DCHECK(!is_double_tapping_ || double_tap_listener_);
double_tap_listener_ = double_tap_listener;
}

Powered by Google App Engine
This is Rietveld 408576698