#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;
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),