1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CONTENT_RENDERER_INPUT_INPUT_HANDLER_PROXY_CLIENT_H_
6 #define CONTENT_RENDERER_INPUT_INPUT_HANDLER_PROXY_CLIENT_H_
10 struct WebActiveWheelFlingParameters
;
17 // All callbacks invoked from the compositor thread.
18 class InputHandlerProxyClient
{
20 // Called just before the InputHandlerProxy shuts down.
21 virtual void WillShutdown() = 0;
23 // Transfers an active wheel fling animation initiated by a previously
24 // handled input event out to the client.
25 virtual void TransferActiveWheelFlingAnimation(
26 const blink::WebActiveWheelFlingParameters
& params
) = 0;
28 // Creates a new fling animation curve instance for device |device_source|
29 // with |velocity| and already scrolled |cumulative_scroll| pixels.
30 virtual blink::WebGestureCurve
* CreateFlingAnimationCurve(
32 const blink::WebFloatPoint
& velocity
,
33 const blink::WebSize
& cumulative_scroll
) = 0;
35 virtual void DidOverscroll(const cc::DidOverscrollParams
& params
) = 0;
38 virtual ~InputHandlerProxyClient() {}
41 } // namespace content
43 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_PROXY_CLIENT_H_