| Index: ui/events/gesture_detection/scale_gesture_detector.h
|
| diff --git a/ui/events/gesture_detection/scale_gesture_detector.h b/ui/events/gesture_detection/scale_gesture_detector.h
|
| index 9e84ca5e34fa0e1ff93f25d1dbb739aa22d67d4e..054723db1152ed57aa41ecd0f2f14043dc849444 100644
|
| --- a/ui/events/gesture_detection/scale_gesture_detector.h
|
| +++ b/ui/events/gesture_detection/scale_gesture_detector.h
|
| @@ -32,9 +32,12 @@ class ScaleGestureDetector : public GestureDetector::SimpleGestureListener {
|
| class ScaleGestureListener {
|
| public:
|
| virtual ~ScaleGestureListener() {}
|
| - virtual bool OnScale(const ScaleGestureDetector& detector) = 0;
|
| - virtual bool OnScaleBegin(const ScaleGestureDetector& detector) = 0;
|
| - virtual void OnScaleEnd(const ScaleGestureDetector& detector) = 0;
|
| + virtual bool OnScale(const ScaleGestureDetector& detector,
|
| + const MotionEvent& e) = 0;
|
| + virtual bool OnScaleBegin(const ScaleGestureDetector& detector,
|
| + const MotionEvent& e) = 0;
|
| + virtual void OnScaleEnd(const ScaleGestureDetector& detector,
|
| + const MotionEvent& e) = 0;
|
| };
|
|
|
| // A convenience class to extend when you only want to listen for a subset of
|
| @@ -46,9 +49,12 @@ class ScaleGestureDetector : public GestureDetector::SimpleGestureListener {
|
| class SimpleScaleGestureListener : public ScaleGestureListener {
|
| public:
|
| // ScaleGestureListener implementation.
|
| - virtual bool OnScale(const ScaleGestureDetector&) OVERRIDE;
|
| - virtual bool OnScaleBegin(const ScaleGestureDetector&) OVERRIDE;
|
| - virtual void OnScaleEnd(const ScaleGestureDetector&) OVERRIDE;
|
| + virtual bool OnScale(const ScaleGestureDetector&,
|
| + const MotionEvent&) OVERRIDE;
|
| + virtual bool OnScaleBegin(const ScaleGestureDetector&,
|
| + const MotionEvent&) OVERRIDE;
|
| + virtual void OnScaleEnd(const ScaleGestureDetector&,
|
| + const MotionEvent&) OVERRIDE;
|
| };
|
|
|
| ScaleGestureDetector(const Config& config, ScaleGestureListener* listener);
|
|
|