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_CLIENT_IMPL_CLIENT_H_ | |
6 #define CONTENT_RENDERER_GPU_INPUT_HANDLER_CLIENT_IMPL_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 InputHandlerClientImplClient { | |
18 public: | |
danakj
2013/05/01 19:20:43
space before p
| |
19 // Callbacks invoked from the compositor thread. | |
20 virtual void willShutdown() = 0; | |
21 | |
22 // Exactly one of the following two callbacks will be invoked after every | |
23 // call to WebCompositorInputHandler::handleInputEvent(): | |
danakj
2013/05/01 19:20:43
WebCompositorInputHandler::handle* -> InputHandler
| |
24 | |
25 // Called when the WebCompositorInputHandler handled the input event and no | |
26 // further processing is required. | |
27 virtual void didHandleInputEvent() = 0; | |
danakj
2013/05/01 19:20:43
Can all these function names change to chromium st
| |
28 | |
29 // Called when the WebCompositorInputHandler did not handle the input event. | |
30 // If sendToWidget is true, the input event should be forwarded to the | |
31 // WebWidget associated with this compositor for further processing. | |
32 virtual void didNotHandleInputEvent(bool sendToWidget) = 0; | |
danakj
2013/05/01 19:20:43
argument is webkit style (in the comment too)
| |
33 | |
34 // Transfers an active wheel fling animation initiated by a previously | |
35 // handled input event out to the client. | |
36 // FIXME: Make pure virtual once implementation lands on Chromium side. | |
danakj
2013/05/01 19:20:43
TODO (or possibly this is done now?)
| |
37 virtual void transferActiveWheelFlingAnimation( | |
38 const WebKit::WebActiveWheelFlingParameters&) = 0; | |
39 | |
40 // Creates a new fling animation curve instance for device |deviceSource| | |
41 // with |velocity| and already scrolled |cumulativeScroll| pixels. | |
42 virtual WebKit::WebGestureCurve* createFlingAnimationCurve( | |
43 int deviceSource, | |
danakj
2013/05/01 19:20:43
webkit style (in the comment too)
| |
44 const WebKit::WebFloatPoint& velocity, | |
45 const WebKit::WebSize& cumulativeScroll) = 0; | |
danakj
2013/05/01 19:20:43
ditto
| |
46 | |
47 protected: | |
danakj
2013/05/01 19:20:43
space before p
| |
48 virtual ~InputHandlerClientImplClient() { } | |
danakj
2013/05/01 19:20:43
no space in {}
| |
49 }; | |
50 | |
51 } // namespace content | |
danakj
2013/05/01 19:20:43
2 spaces before //
| |
52 | |
53 #endif // CONTENT_RENDERER_GPU_INPUT_HANDLER_CLIENT_IMPL_CLIENT_H_ | |
danakj
2013/05/01 19:20:43
ditto
| |
OLD | NEW |