#include "content/browser/renderer_host/input/mock_input_router_client.h"
#include "components/input/input_router.h"
#include "content/browser/scheduler/browser_ui_thread_scheduler.h"
#include "testing/gtest/include/gtest/gtest.h"
WebGestureEvent;
WebInputEvent;
WebMouseWheelEvent;
namespace content {
MockInputRouterClient::MockInputRouterClient()
: … { … }
MockInputRouterClient::~MockInputRouterClient() { … }
blink::mojom::InputEventResultState MockInputRouterClient::FilterInputEvent(
const WebInputEvent& input_event,
const ui::LatencyInfo& latency_info) { … }
void MockInputRouterClient::IncrementInFlightEventCount() { … }
void MockInputRouterClient::DecrementInFlightEventCount(
blink::mojom::InputEventResultSource ack_source) { … }
void MockInputRouterClient::NotifyUISchedulerOfGestureEventUpdate(
blink::WebInputEvent::Type gesture_event) { … }
void MockInputRouterClient::DidOverscroll(
const ui::DidOverscrollParams& params) { … }
void MockInputRouterClient::OnSetCompositorAllowedTouchAction(
cc::TouchAction compositor_allowed_touch_action) { … }
void MockInputRouterClient::DidStartScrollingViewport() { … }
void MockInputRouterClient::ForwardGestureEventWithLatencyInfo(
const blink::WebGestureEvent& gesture_event,
const ui::LatencyInfo& latency_info) { … }
void MockInputRouterClient::ForwardWheelEventWithLatencyInfo(
const blink::WebMouseWheelEvent& wheel_event,
const ui::LatencyInfo& latency_info) { … }
bool MockInputRouterClient::IsWheelScrollInProgress() { … }
bool MockInputRouterClient::IsAutoscrollInProgress() { … }
gfx::Size MockInputRouterClient::GetRootWidgetViewportSize() { … }
bool MockInputRouterClient::GetAndResetFilterEventCalled() { … }
ui::DidOverscrollParams MockInputRouterClient::GetAndResetOverscroll() { … }
cc::TouchAction
MockInputRouterClient::GetAndResetCompositorAllowedTouchAction() { … }
bool MockInputRouterClient::NeedsBeginFrameForFlingProgress() { … }
bool MockInputRouterClient::ShouldUseMobileFlingCurve() { … }
gfx::Vector2dF MockInputRouterClient::GetPixelsPerInch(
const gfx::PointF& position_in_screen) { … }
blink::mojom::WidgetInputHandler*
MockInputRouterClient::GetWidgetInputHandler() { … }
input::StylusInterface* MockInputRouterClient::GetStylusInterface() { … }
void MockInputRouterClient::OnStartStylusWriting() { … }
}