#include "content/common/input/synthetic_touchscreen_pinch_gesture.h"
#include <stdint.h>
#include <cmath>
#include "base/check_op.h"
#include "base/notreached.h"
#include "base/time/time.h"
#include "ui/latency/latency_info.h"
namespace content {
SyntheticTouchscreenPinchGesture::SyntheticTouchscreenPinchGesture(
const SyntheticPinchGestureParams& gesture_params)
: … { … }
SyntheticTouchscreenPinchGesture::~SyntheticTouchscreenPinchGesture() { … }
SyntheticGesture::Result SyntheticTouchscreenPinchGesture::ForwardInputEvents(
const base::TimeTicks& timestamp,
SyntheticGestureTarget* target) { … }
void SyntheticTouchscreenPinchGesture::WaitForTargetAck(
base::OnceClosure callback,
SyntheticGestureTarget* target) const { … }
void SyntheticTouchscreenPinchGesture::ForwardTouchInputEvents(
const base::TimeTicks& timestamp,
SyntheticGestureTarget* target) { … }
void SyntheticTouchscreenPinchGesture::PressTouchPoints(
SyntheticGestureTarget* target,
const base::TimeTicks& timestamp) { … }
void SyntheticTouchscreenPinchGesture::MoveTouchPoints(
SyntheticGestureTarget* target,
float delta,
const base::TimeTicks& timestamp) { … }
void SyntheticTouchscreenPinchGesture::ReleaseTouchPoints(
SyntheticGestureTarget* target,
const base::TimeTicks& timestamp) { … }
void SyntheticTouchscreenPinchGesture::SetupCoordinatesAndStopTime(
SyntheticGestureTarget* target) { … }
float SyntheticTouchscreenPinchGesture::GetDeltaForPointer0AtTime(
const base::TimeTicks& timestamp) const { … }
base::TimeTicks SyntheticTouchscreenPinchGesture::ClampTimestamp(
const base::TimeTicks& timestamp) const { … }
bool SyntheticTouchscreenPinchGesture::HasReachedTarget(
const base::TimeTicks& timestamp) const { … }
}