// Copyright 2014 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_EVENTS_GESTURE_DETECTION_SCALE_GESTURE_LISTENERS_H_ #define UI_EVENTS_GESTURE_DETECTION_SCALE_GESTURE_LISTENERS_H_ #include "ui/events/gesture_detection/gesture_detection_export.h" namespace ui { class MotionEvent; class ScaleGestureDetector; // Client through which |ScaleGestureDetector| signals scale detection. class GESTURE_DETECTION_EXPORT ScaleGestureListener { … }; // A convenience class to extend when you only want to listen for a subset of // scaling-related events. This implements all methods in // |ScaleGestureListener| but does nothing. // |OnScale()| returns false so that a subclass can retrieve the accumulated // scale factor in an overridden |OnScaleEnd()|. // |OnScaleBegin() returns true. class GESTURE_DETECTION_EXPORT SimpleScaleGestureListener : public ScaleGestureListener { … }; } // namespace ui #endif // UI_EVENTS_GESTURE_DETECTION_SCALE_GESTURE_LISTENERS_H_