Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(266)

Side by Side Diff: content/renderer/gpu/input_handler_client_impl_client.h

Issue 13844021: Move compositor thread input handling logic into content (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698