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

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

Issue 13844021: Move compositor thread input handling logic into content (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased 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_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():
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_
OLDNEW
« no previous file with comments | « content/renderer/gpu/input_handler_proxy.cc ('k') | content/renderer/gpu/input_handler_proxy_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698