#include "content/test/mock_render_input_router.h"
#include "components/input/mock_input_router.h"
namespace content {
MockRenderInputRouter::MockRenderInputRouter(
input::RenderInputRouterClient* host,
std::unique_ptr<input::FlingSchedulerBase> fling_scheduler,
input::RenderInputRouterDelegate* delegate,
scoped_refptr<base::SingleThreadTaskRunner> task_runner)
: … { … }
MockRenderInputRouter::~MockRenderInputRouter() = default;
void MockRenderInputRouter::OnTouchEventAck(
const input::TouchEventWithLatencyInfo& event,
blink::mojom::InputEventResultSource ack_source,
blink::mojom::InputEventResultState ack_result) { … }
void MockRenderInputRouter::SetupForInputRouterTest() { … }
void MockRenderInputRouter::ForwardTouchEventWithLatencyInfo(
const blink::WebTouchEvent& touch_event,
const ui::LatencyInfo& ui_latency) { … }
void MockRenderInputRouter::ForwardGestureEventWithLatencyInfo(
const blink::WebGestureEvent& gesture_event,
const ui::LatencyInfo& ui_latency) { … }
std::optional<WebGestureEvent>
MockRenderInputRouter::GetAndResetLastForwardedGestureEvent() { … }
MockWidgetInputHandler::MessageVector
MockRenderInputRouter::GetAndResetDispatchedMessages() { … }
blink::mojom::WidgetInputHandler*
MockRenderInputRouter::GetWidgetInputHandler() { … }
}