#include "ui/events/gesture_detection/gesture_event_data_packet.h"
#include "base/check_op.h"
#include "base/notreached.h"
#include "ui/events/velocity_tracker/motion_event.h"
namespace ui {
namespace {
GestureEventDataPacket::GestureSource ToGestureSource(
const ui::MotionEvent& event) { … }
}
GestureEventDataPacket::GestureEventDataPacket()
: … { … }
GestureEventDataPacket::GestureEventDataPacket(
base::TimeTicks timestamp,
GestureSource source,
const gfx::PointF& touch_location,
const gfx::PointF& raw_touch_location,
uint32_t unique_touch_event_id)
: … { … }
GestureEventDataPacket::GestureEventDataPacket(
const GestureEventDataPacket& other)
: … { … }
GestureEventDataPacket::~GestureEventDataPacket() { … }
GestureEventDataPacket& GestureEventDataPacket::operator=(
const GestureEventDataPacket& other) { … }
void GestureEventDataPacket::Push(const GestureEventData& original_gesture) { … }
GestureEventDataPacket GestureEventDataPacket::FromTouch(
const ui::MotionEvent& touch) { … }
GestureEventDataPacket GestureEventDataPacket::FromTouchTimeout(
const GestureEventData& gesture) { … }
void GestureEventDataPacket::Ack(bool event_consumed,
bool is_source_touch_event_set_blocking) { … }
void GestureEventDataPacket::AddEventLatencyMetadataToGestures(
const EventLatencyMetadata& event_latency_metadata,
const base::RepeatingCallback<bool(const ui::GestureEventData&)>& filter) { … }
}