#include "third_party/blink/renderer/platform/widget/input/event_with_callback.h"
#include "base/trace_event/trace_event.h"
#include "cc/metrics/event_metrics.h"
#include "third_party/blink/public/common/input/web_input_event_attribution.h"
namespace blink {
EventWithCallback::EventWithCallback(
std::unique_ptr<WebCoalescedInputEvent> event,
InputHandlerProxy::EventDispositionCallback callback,
std::unique_ptr<cc::EventMetrics> metrics)
: … { … }
EventWithCallback::EventWithCallback(
std::unique_ptr<WebCoalescedInputEvent> event,
OriginalEventList original_events)
: … { … }
EventWithCallback::~EventWithCallback() = default;
bool EventWithCallback::CanCoalesceWith(const EventWithCallback& other) const { … }
void EventWithCallback::SetScrollbarManipulationHandledOnCompositorThread() { … }
void EventWithCallback::CoalesceWith(EventWithCallback* other) { … }
static bool HandledOnCompositorThread(
InputHandlerProxy::EventDisposition disposition) { … }
void EventWithCallback::RunCallbacks(
InputHandlerProxy::EventDisposition disposition,
const ui::LatencyInfo& latency,
std::unique_ptr<InputHandlerProxy::DidOverscrollParams>
did_overscroll_params,
const WebInputEventAttribution& attribution) { … }
std::unique_ptr<cc::EventMetrics> EventWithCallback::TakeMetrics() { … }
void EventWithCallback::WillStartProcessingForMetrics() { … }
void EventWithCallback::DidCompleteProcessingForMetrics() { … }
EventWithCallback::OriginalEventWithCallback::OriginalEventWithCallback(
std::unique_ptr<WebCoalescedInputEvent> event,
std::unique_ptr<cc::EventMetrics> metrics,
InputHandlerProxy::EventDispositionCallback callback)
: … { … }
EventWithCallback::OriginalEventWithCallback::~OriginalEventWithCallback() =
default;
}