OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 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. | |
4 | |
5 #ifndef CONTENT_RENDERER_GPU_INPUT_HANDLER_PROXY_CLIENT_H_ | |
6 #define CONTENT_RENDERER_GPU_INPUT_HANDLER_PROXY_CLIENT_H_ | |
7 | |
8 namespace WebKit { | |
9 class WebGestureCurve; | |
10 struct WebActiveWheelFlingParameters; | |
11 struct WebFloatPoint; | |
12 struct WebSize; | |
13 } | |
14 | |
15 namespace content { | |
16 | |
17 // All callbacks invoked from the compositor thread. | |
18 class InputHandlerProxyClient { | |
19 public: | |
20 // Called just before the InputHandlerProxy shuts down. | |
21 virtual void WillShutdown() = 0; | |
22 | |
23 // Exactly one of the following two callbacks will be invoked after every | |
24 // call to InputHandlerProxy::handleInputEvent(): | |
danakj
2013/05/15 19:21:51
HandleInputEvent
| |
25 | |
26 // Called when the InputHandlerProxy handled the input event and no | |
27 // further processing is required. | |
28 virtual void DidHandleInputEvent() = 0; | |
29 | |
30 // Called when the InputHandlerProxy did not handle the input event. | |
31 // If send_to_widget is true, the input event should be forwarded to the | |
32 // WebWidget associated with this compositor for further processing. | |
33 virtual void DidNotHandleInputEvent(bool send_to_widget) = 0; | |
34 | |
35 // Transfers an active wheel fling animation initiated by a previously | |
36 // handled input event out to the client. | |
37 virtual void TransferActiveWheelFlingAnimation( | |
38 const WebKit::WebActiveWheelFlingParameters& params) = 0; | |
39 | |
40 // Creates a new fling animation curve instance for device |device_source| | |
41 // with |velocity| and already scrolled |cumulative_scroll| pixels. | |
42 virtual WebKit::WebGestureCurve* CreateFlingAnimationCurve( | |
43 int device_source, | |
44 const WebKit::WebFloatPoint& velocity, | |
45 const WebKit::WebSize& cumulative_scroll) = 0; | |
46 | |
47 protected: | |
48 virtual ~InputHandlerProxyClient() {} | |
49 }; | |
50 | |
51 } // namespace content | |
52 | |
53 #endif // CONTENT_RENDERER_GPU_INPUT_HANDLER_PROXY_CLIENT_H_ | |
OLD | NEW |