#include "components/input/touchpad_pinch_event_queue.h"
#include "base/functional/bind.h"
#include "base/trace_event/trace_event.h"
#include "third_party/blink/public/common/input/web_mouse_wheel_event.h"
#include "ui/events/base_event_utils.h"
#include "ui/events/blink/blink_event_util.h"
#include "ui/latency/latency_info.h"
namespace input {
namespace {
blink::WebMouseWheelEvent CreateSyntheticWheelFromTouchpadPinchEvent(
const blink::WebGestureEvent& pinch_event,
blink::WebMouseWheelEvent::Phase phase,
bool cancelable) { … }
}
class QueuedTouchpadPinchEvent : public GestureEventWithLatencyInfo { … };
TouchpadPinchEventQueue::TouchpadPinchEventQueue(
TouchpadPinchEventQueueClient* client)
: … { … }
TouchpadPinchEventQueue::~TouchpadPinchEventQueue() = default;
void TouchpadPinchEventQueue::QueueEvent(
const GestureEventWithLatencyInfo& event) { … }
void TouchpadPinchEventQueue::ProcessMouseWheelAck(
const MouseWheelEventWithLatencyInfo& ack_event,
blink::mojom::InputEventResultSource ack_source,
blink::mojom::InputEventResultState ack_result) { … }
void TouchpadPinchEventQueue::TryForwardNextEventToRenderer() { … }
bool TouchpadPinchEventQueue::has_pending() const { … }
}