#include "content/browser/renderer_host/input/mock_input_disposition_handler.h"
#include "base/functional/bind.h"
#include "components/input/input_router.h"
#include "testing/gtest/include/gtest/gtest.h"
WebInputEvent;
namespace content {
MockInputDispositionHandler::MockInputDispositionHandler()
: … { … }
MockInputDispositionHandler::~MockInputDispositionHandler() { … }
input::InputRouter::KeyboardEventCallback
MockInputDispositionHandler::CreateKeyboardEventCallback() { … }
input::InputRouter::MouseEventCallback
MockInputDispositionHandler::CreateMouseEventCallback() { … }
void MockInputDispositionHandler::OnWheelEventAck(
const input::MouseWheelEventWithLatencyInfo& event,
blink::mojom::InputEventResultSource ack_source,
blink::mojom::InputEventResultState ack_result) { … }
void MockInputDispositionHandler::OnTouchEventAck(
const input::TouchEventWithLatencyInfo& event,
blink::mojom::InputEventResultSource ack_source,
blink::mojom::InputEventResultState ack_result) { … }
void MockInputDispositionHandler::OnGestureEventAck(
const input::GestureEventWithLatencyInfo& event,
blink::mojom::InputEventResultSource ack_source,
blink::mojom::InputEventResultState ack_result) { … }
size_t MockInputDispositionHandler::GetAndResetAckCount() { … }
void MockInputDispositionHandler::RecordAckCalled(
blink::WebInputEvent::Type type,
blink::mojom::InputEventResultState ack_result) { … }
void MockInputDispositionHandler::OnKeyboardEventAck(
const input::NativeWebKeyboardEventWithLatencyInfo& event,
blink::mojom::InputEventResultSource ack_source,
blink::mojom::InputEventResultState ack_result) { … }
void MockInputDispositionHandler::OnMouseEventAck(
const input::MouseEventWithLatencyInfo& event,
blink::mojom::InputEventResultSource ack_source,
blink::mojom::InputEventResultState ack_result) { … }
}