| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_IMPL_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_IMPL_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_IMPL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 struct InputEventAck; | 41 struct InputEventAck; |
| 42 | 42 |
| 43 // A default implementation for browser input event routing. | 43 // A default implementation for browser input event routing. |
| 44 class CONTENT_EXPORT InputRouterImpl | 44 class CONTENT_EXPORT InputRouterImpl |
| 45 : public NON_EXPORTED_BASE(InputRouter), | 45 : public NON_EXPORTED_BASE(InputRouter), |
| 46 public NON_EXPORTED_BASE(GestureEventQueueClient), | 46 public NON_EXPORTED_BASE(GestureEventQueueClient), |
| 47 public NON_EXPORTED_BASE(MouseWheelEventQueueClient), | 47 public NON_EXPORTED_BASE(MouseWheelEventQueueClient), |
| 48 public NON_EXPORTED_BASE(TouchEventQueueClient), | 48 public NON_EXPORTED_BASE(TouchEventQueueClient), |
| 49 public NON_EXPORTED_BASE(TouchpadTapSuppressionControllerClient) { | 49 public NON_EXPORTED_BASE(TouchpadTapSuppressionControllerClient) { |
| 50 public: | 50 public: |
| 51 struct CONTENT_EXPORT Config { | |
| 52 Config(); | |
| 53 GestureEventQueue::Config gesture_config; | |
| 54 TouchEventQueue::Config touch_config; | |
| 55 }; | |
| 56 | |
| 57 InputRouterImpl(IPC::Sender* sender, | 51 InputRouterImpl(IPC::Sender* sender, |
| 58 InputRouterClient* client, | 52 InputRouterClient* client, |
| 59 InputAckHandler* ack_handler, | 53 InputAckHandler* ack_handler, |
| 60 int routing_id, | 54 int routing_id, |
| 61 const Config& config); | 55 const Config& config); |
| 62 ~InputRouterImpl() override; | 56 ~InputRouterImpl() override; |
| 63 | 57 |
| 64 // InputRouter | 58 // InputRouter |
| 65 bool SendInput(std::unique_ptr<IPC::Message> message) override; | 59 bool SendInput(std::unique_ptr<IPC::Message> message) override; |
| 66 void SendMouseEvent(const MouseEventWithLatencyInfo& mouse_event) override; | 60 void SendMouseEvent(const MouseEventWithLatencyInfo& mouse_event) override; |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 | 253 |
| 260 // Last touch position relative to screen. Used to compute movementX/Y. | 254 // Last touch position relative to screen. Used to compute movementX/Y. |
| 261 std::map<int, gfx::Point> global_touch_position_; | 255 std::map<int, gfx::Point> global_touch_position_; |
| 262 | 256 |
| 263 DISALLOW_COPY_AND_ASSIGN(InputRouterImpl); | 257 DISALLOW_COPY_AND_ASSIGN(InputRouterImpl); |
| 264 }; | 258 }; |
| 265 | 259 |
| 266 } // namespace content | 260 } // namespace content |
| 267 | 261 |
| 268 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_IMPL_H_ | 262 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_IMPL_H_ |
| OLD | NEW |