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 <memory> | 10 #include <memory> |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 InputEventAckState ack_result) override; | 109 InputEventAckState ack_result) override; |
110 | 110 |
111 // MouseWheelEventQueueClient | 111 // MouseWheelEventQueueClient |
112 void SendMouseWheelEventImmediately( | 112 void SendMouseWheelEventImmediately( |
113 const MouseWheelEventWithLatencyInfo& touch_event) override; | 113 const MouseWheelEventWithLatencyInfo& touch_event) override; |
114 void OnMouseWheelEventAck(const MouseWheelEventWithLatencyInfo& event, | 114 void OnMouseWheelEventAck(const MouseWheelEventWithLatencyInfo& event, |
115 InputEventAckState ack_result) override; | 115 InputEventAckState ack_result) override; |
116 void ForwardGestureEventWithLatencyInfo( | 116 void ForwardGestureEventWithLatencyInfo( |
117 const blink::WebGestureEvent& gesture_event, | 117 const blink::WebGestureEvent& gesture_event, |
118 const ui::LatencyInfo& latency_info) override; | 118 const ui::LatencyInfo& latency_info) override; |
| 119 bool is_in_gesture_scroll() override; |
119 | 120 |
120 bool SendMoveCaret(std::unique_ptr<IPC::Message> message); | 121 bool SendMoveCaret(std::unique_ptr<IPC::Message> message); |
121 bool SendSelectMessage(std::unique_ptr<IPC::Message> message); | 122 bool SendSelectMessage(std::unique_ptr<IPC::Message> message); |
122 bool Send(IPC::Message* message); | 123 bool Send(IPC::Message* message); |
123 | 124 |
124 // Filters and forwards |input_event| to the appropriate handler. | 125 // Filters and forwards |input_event| to the appropriate handler. |
125 void FilterAndSendWebInputEvent(const blink::WebInputEvent& input_event, | 126 void FilterAndSendWebInputEvent(const blink::WebInputEvent& input_event, |
126 const ui::LatencyInfo& latency_info); | 127 const ui::LatencyInfo& latency_info); |
127 | 128 |
128 // Utility routine for filtering and forwarding |input_event| to the | 129 // Utility routine for filtering and forwarding |input_event| to the |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 | 267 |
267 // Last touch position relative to screen. Used to compute movementX/Y. | 268 // Last touch position relative to screen. Used to compute movementX/Y. |
268 std::map<int, gfx::Point> global_touch_position_; | 269 std::map<int, gfx::Point> global_touch_position_; |
269 | 270 |
270 DISALLOW_COPY_AND_ASSIGN(InputRouterImpl); | 271 DISALLOW_COPY_AND_ASSIGN(InputRouterImpl); |
271 }; | 272 }; |
272 | 273 |
273 } // namespace content | 274 } // namespace content |
274 | 275 |
275 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_IMPL_H_ | 276 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_IMPL_H_ |
OLD | NEW |