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

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

Issue 617423002: Make GestureTextSelector detect its own gestures (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sort gyp/gn Created 6 years, 2 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/scale_gesture_detector.cc
diff --git a/ui/events/gesture_detection/scale_gesture_detector.cc b/ui/events/gesture_detection/scale_gesture_detector.cc
index cf8de59cc065cc634faaba30807a3d1f7519072f..7afe91fd3af28e90672f82002d1523495d98ce27 100644
--- a/ui/events/gesture_detection/scale_gesture_detector.cc
+++ b/ui/events/gesture_detection/scale_gesture_detector.cc
@@ -10,6 +10,7 @@
#include "base/float_util.h"
#include "base/logging.h"
#include "ui/events/gesture_detection/motion_event.h"
+#include "ui/events/gesture_detection/scale_gesture_listeners.h"
using base::TimeDelta;
using base::TimeTicks;
@@ -39,19 +40,6 @@ ScaleGestureDetector::Config::Config()
ScaleGestureDetector::Config::~Config() {}
-bool ScaleGestureDetector::SimpleScaleGestureListener::OnScale(
- const ScaleGestureDetector&, const MotionEvent&) {
- return false;
-}
-
-bool ScaleGestureDetector::SimpleScaleGestureListener::OnScaleBegin(
- const ScaleGestureDetector&, const MotionEvent&) {
- return true;
-}
-
-void ScaleGestureDetector::SimpleScaleGestureListener::OnScaleEnd(
- const ScaleGestureDetector&, const MotionEvent&) {}
-
ScaleGestureDetector::ScaleGestureDetector(const Config& config,
ScaleGestureListener* listener)
: listener_(listener),
« no previous file with comments | « ui/events/gesture_detection/scale_gesture_detector.h ('k') | ui/events/gesture_detection/scale_gesture_listeners.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698