Remove unused Device Motion IPC messages.
[chromium-blink-merge.git] / content / renderer / gpu / input_handler_manager_client.h
blobc147a8a6be05901ad0756f829e10216d3f0e899e
1 // Copyright 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.
5 #ifndef CONTENT_RENDERER_GPU_INPUT_HANDLER_MANAGER_CLIENT_H_
6 #define CONTENT_RENDERER_GPU_INPUT_HANDLER_MANAGER_CLIENT_H_
8 #include "base/basictypes.h"
9 #include "base/callback.h"
10 #include "base/callback_forward.h"
11 #include "content/common/content_export.h"
12 #include "ui/gfx/vector2d_f.h"
14 namespace ui {
15 struct LatencyInfo;
18 namespace cc {
19 class InputHandler;
20 struct DidOverscrollParams;
23 namespace WebKit {
24 class WebInputEvent;
27 namespace content {
29 class CONTENT_EXPORT InputHandlerManagerClient {
30 public:
31 virtual ~InputHandlerManagerClient() {}
33 // The Manager will supply a |handler| when bound to the client. This is valid
34 // until the manager shuts down, at which point it supplies a null |handler|.
35 // The client should only makes calls to |handler| on the compositor thread.
36 typedef base::Callback<
37 InputEventAckState(int /*routing_id*/,
38 const WebKit::WebInputEvent*,
39 const ui::LatencyInfo& latency_info)> Handler;
41 // Called from the main thread.
42 virtual void SetBoundHandler(const Handler& handler) = 0;
44 // Called from the compositor thread.
45 virtual void DidAddInputHandler(int routing_id,
46 cc::InputHandler* input_handler) = 0;
47 virtual void DidRemoveInputHandler(int routing_id) = 0;
48 virtual void DidOverscroll(int routing_id,
49 const cc::DidOverscrollParams& params) = 0;
51 protected:
52 InputHandlerManagerClient() {}
54 private:
55 DISALLOW_COPY_AND_ASSIGN(InputHandlerManagerClient);
58 } // namespace content
60 #endif // CONTENT_COMMON_GPU_INPUT_HANDLER_MANAGER_CLIENT_H_