chromium/content/test/mock_render_input_router.cc

// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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() {}

}  // namespace content