#include "components/input/render_input_router_latency_tracker.h"
#include <stddef.h>
#include <string>
#include "base/check_op.h"
#include "base/metrics/histogram_functions.h"
#include "base/metrics/histogram_macros.h"
#include "base/notreached.h"
#include "base/time/time.h"
#include "build/build_config.h"
#include "components/input/render_input_router_delegate.h"
#include "ui/events/blink/web_input_event_traits.h"
WebGestureEvent;
WebInputEvent;
WebMouseEvent;
WebMouseWheelEvent;
WebTouchEvent;
LatencyInfo;
namespace input {
namespace {
const char* GetTraceNameFromType(blink::WebInputEvent::Type type) { … }
}
RenderInputRouterLatencyTracker::RenderInputRouterLatencyTracker(
RenderInputRouterDelegate* delegate)
: … { … }
RenderInputRouterLatencyTracker::~RenderInputRouterLatencyTracker() { … }
void RenderInputRouterLatencyTracker::OnInputEvent(
const blink::WebInputEvent& event,
LatencyInfo* latency,
ui::EventLatencyMetadata* event_latency_metadata) { … }
void RenderInputRouterLatencyTracker::OnInputEventAck(
const blink::WebInputEvent& event,
LatencyInfo* latency,
blink::mojom::InputEventResultState ack_result) { … }
void RenderInputRouterLatencyTracker::OnEventStart(ui::LatencyInfo* latency) { … }
}