| 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 bd8086a406388b7f26d4a8a55c092437c1e6aca7..2d83ca10e71c6b313568455a3be2f438111ee70b 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);
|
|
|