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 <queue> | 8 #include <queue> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 | 164 |
165 // Forwards the event ack to |touch_event_queue_|, potentially triggering | 165 // Forwards the event ack to |touch_event_queue_|, potentially triggering |
166 // dispatch of queued touch events, or the creation of gesture events. | 166 // dispatch of queued touch events, or the creation of gesture events. |
167 void ProcessTouchAck(InputEventAckState ack_result, | 167 void ProcessTouchAck(InputEventAckState ack_result, |
168 const ui::LatencyInfo& latency); | 168 const ui::LatencyInfo& latency); |
169 | 169 |
170 // Forwards |ack_result| to the client's OverscrollController, if necessary. | 170 // Forwards |ack_result| to the client's OverscrollController, if necessary. |
171 void ProcessAckForOverscroll(const blink::WebInputEvent& event, | 171 void ProcessAckForOverscroll(const blink::WebInputEvent& event, |
172 InputEventAckState ack_result); | 172 InputEventAckState ack_result); |
173 | 173 |
| 174 void SimulateTouchGestureWithMouse( |
| 175 const MouseEventWithLatencyInfo& mouse_event); |
| 176 |
174 // Called when a touch timeout-affecting bit has changed, in turn toggling the | 177 // Called when a touch timeout-affecting bit has changed, in turn toggling the |
175 // touch ack timeout feature of the |touch_event_queue_| as appropriate. Input | 178 // touch ack timeout feature of the |touch_event_queue_| as appropriate. Input |
176 // to that determination includes current view properties, the allowed touch | 179 // to that determination includes current view properties, the allowed touch |
177 // action and the command-line configured |touch_ack_timeout_supported_|. | 180 // action and the command-line configured |touch_ack_timeout_supported_|. |
178 void UpdateTouchAckTimeoutEnabled(); | 181 void UpdateTouchAckTimeoutEnabled(); |
179 | 182 |
180 // If a flush has been requested, signals a completed flush to the client if | 183 // If a flush has been requested, signals a completed flush to the client if |
181 // all events have been dispatched (i.e., |HasPendingEvents()| is false). | 184 // all events have been dispatched (i.e., |HasPendingEvents()| is false). |
182 void SignalFlushedIfNecessary(); | 185 void SignalFlushedIfNecessary(); |
183 | 186 |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 GestureEventQueue gesture_event_queue_; | 259 GestureEventQueue gesture_event_queue_; |
257 TouchActionFilter touch_action_filter_; | 260 TouchActionFilter touch_action_filter_; |
258 InputEventStreamValidator event_stream_validator_; | 261 InputEventStreamValidator event_stream_validator_; |
259 | 262 |
260 DISALLOW_COPY_AND_ASSIGN(InputRouterImpl); | 263 DISALLOW_COPY_AND_ASSIGN(InputRouterImpl); |
261 }; | 264 }; |
262 | 265 |
263 } // namespace content | 266 } // namespace content |
264 | 267 |
265 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_IMPL_H_ | 268 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_IMPL_H_ |
OLD | NEW |