Commit 4e3e2245 authored by Xida Chen's avatar Xida Chen Committed by Commit Bot

[Code health] Delete some deadcode for DidOverscroll

This CL doesn't change behavior, it deletes some dead code.

Bug: None
Change-Id: Ic917e76b8dc5545cc7bfc7b39887c4ea859009bf
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2167107
Auto-Submit: Xida Chen <xidachen@chromium.org>
Commit-Queue: Navid Zolghadr <nzolghadr@chromium.org>
Reviewed-by: default avatarNavid Zolghadr <nzolghadr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#762830}
parent 5ef4954b
......@@ -244,24 +244,6 @@ void WidgetInputHandlerManager::FindScrollTargetOnMainThread(
FROM_HERE, base::BindOnce(std::move(callback), element_id));
}
void WidgetInputHandlerManager::DidOverscroll(
const gfx::Vector2dF& accumulated_overscroll,
const gfx::Vector2dF& latest_overscroll_delta,
const gfx::Vector2dF& current_fling_velocity,
const gfx::PointF& causal_event_viewport_point,
const cc::OverscrollBehavior& overscroll_behavior) {
mojom::WidgetInputHandlerHost* host = GetWidgetInputHandlerHost();
if (!host)
return;
ui::DidOverscrollParams params;
params.accumulated_overscroll = accumulated_overscroll;
params.latest_overscroll_delta = latest_overscroll_delta;
params.current_fling_velocity = current_fling_velocity;
params.causal_event_viewport_point = causal_event_viewport_point;
params.overscroll_behavior = overscroll_behavior;
host->DidOverscroll(params);
}
void WidgetInputHandlerManager::DidAnimateForInput() {
main_thread_scheduler_->DidAnimateForInputOnCompositorThread();
}
......
......@@ -81,12 +81,6 @@ class CONTENT_EXPORT WidgetInputHandlerManager final
const ui::LatencyInfo& latency_info,
const blink::WebInputEventAttribution& attribution) override;
void DidOverscroll(
const gfx::Vector2dF& accumulated_overscroll,
const gfx::Vector2dF& latest_overscroll_delta,
const gfx::Vector2dF& current_fling_velocity,
const gfx::PointF& causal_event_viewport_point,
const cc::OverscrollBehavior& overscroll_behavior) override;
void DidAnimateForInput() override;
void DidStartScrollingViewport() override;
void GenerateScrollBeginAndSendToMainThread(
......
......@@ -23,16 +23,6 @@ class InputHandlerProxyClient {
const ui::LatencyInfo& latency_info,
const blink::WebInputEventAttribution& attribution) = 0;
// |HandleInputEventWithLatencyInfo/RouteToTypeSpecificHandler| will respond
// to overscroll by calling the passed in callback. Otherwise |DidOverscroll|
// will be fired.
virtual void DidOverscroll(
const gfx::Vector2dF& accumulated_overscroll,
const gfx::Vector2dF& latest_overscroll_delta,
const gfx::Vector2dF& current_fling_velocity,
const gfx::PointF& causal_event_viewport_point,
const cc::OverscrollBehavior& overscroll_behavior) = 0;
virtual void DidAnimateForInput() = 0;
virtual void DidStartScrollingViewport() = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment