This source file includes following definitions.
- duration_ms
- GetGestureType
- Cast
#include "content/common/input/synthetic_tap_gesture_params.h"
#include "base/logging.h"
namespace content {
SyntheticTapGestureParams::SyntheticTapGestureParams() : duration_ms(50) {}
SyntheticTapGestureParams::SyntheticTapGestureParams(
const SyntheticTapGestureParams& other)
: SyntheticGestureParams(other),
position(other.position),
duration_ms(other.duration_ms) {}
SyntheticTapGestureParams::~SyntheticTapGestureParams() {}
SyntheticGestureParams::GestureType SyntheticTapGestureParams::GetGestureType()
const {
return TAP_GESTURE;
}
const SyntheticTapGestureParams* SyntheticTapGestureParams::Cast(
const SyntheticGestureParams* gesture_params) {
DCHECK(gesture_params);
DCHECK_EQ(TAP_GESTURE, gesture_params->GetGestureType());
return static_cast<const SyntheticTapGestureParams*>(gesture_params);
}
}