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 class InputHandlerProxyClient { | |
18 public: | |
19 // Callbacks invoked from the compositor thread. | |
danakj
2013/05/06 16:33:39
This comment is placed like it only refers to one
| |
20 virtual void WillShutdown() = 0; | |
21 | |
22 // Exactly one of the following two callbacks will be invoked after every | |
23 // call to InputHandlerClientImpl::handleInputEvent(): | |
danakj
2013/05/06 16:33:39
IHProxy::/H/andleInputEvent
| |
24 | |
25 // Called when the InputHandlerClientImpl handled the input event and no | |
danakj
2013/05/06 16:33:39
IHProxy throughout this file's comments
| |
26 // further processing is required. | |
27 virtual void DidHandleInputEvent() = 0; | |
28 | |
29 // Called when the InputHandlerClientImpl did not handle the input event. | |
30 // If send_to_widget is true, the input event should be forwarded to the | |
31 // WebWidget associated with this compositor for further processing. | |
32 virtual void DidNotHandleInputEvent(bool send_to_widget) = 0; | |
33 | |
34 // Transfers an active wheel fling animation initiated by a previously | |
35 // handled input event out to the client. | |
36 virtual void TransferActiveWheelFlingAnimation( | |
37 const WebKit::WebActiveWheelFlingParameters& params) = 0; | |
38 | |
39 // Creates a new fling animation curve instance for device |device_source| | |
40 // with |velocity| and already scrolled |cumulative_scroll| pixels. | |
41 virtual WebKit::WebGestureCurve* CreateFlingAnimationCurve( | |
42 int device_source, | |
43 const WebKit::WebFloatPoint& velocity, | |
44 const WebKit::WebSize& cumulative_scroll) = 0; | |
45 | |
46 protected: | |
47 virtual ~InputHandlerProxyClient() {} | |
48 }; | |
49 | |
50 } // namespace content | |
51 | |
52 #endif // CONTENT_RENDERER_GPU_INPUT_HANDLER_PROXY_CLIENT_H_ | |
OLD | NEW |