chromium/components/input/mock_input_router.cc

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

#include "components/input/mock_input_router.h"

#include "base/task/sequenced_task_runner.h"
#include "components/input/input_router_client.h"

namespace input {

void MockInputRouter::SendMouseEvent(
    const MouseEventWithLatencyInfo& mouse_event,
    MouseEventCallback event_result_callback) {}
void MockInputRouter::SendWheelEvent(
    const MouseWheelEventWithLatencyInfo& wheel_event) {}
void MockInputRouter::SendKeyboardEvent(
    const NativeWebKeyboardEventWithLatencyInfo& key_event,
    KeyboardEventCallback event_result_callback) {}
void MockInputRouter::SendGestureEvent(
    const GestureEventWithLatencyInfo& gesture_event) {}
void MockInputRouter::SendTouchEvent(
    const TouchEventWithLatencyInfo& touch_event) {}

bool MockInputRouter::HasPendingEvents() const {}

std::optional<cc::TouchAction> MockInputRouter::AllowedTouchAction() {}

std::optional<cc::TouchAction> MockInputRouter::ActiveTouchAction() {}

mojo::PendingRemote<blink::mojom::WidgetInputHandlerHost>
MockInputRouter::BindNewHost(scoped_refptr<base::SequencedTaskRunner>) {}

void MockInputRouter::OnHasTouchEventConsumers(
    blink::mojom::TouchEventConsumersPtr consumers) {}

}  // namespace input