| 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_IMMEDIATE_INPUT_ROUTER_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_IMMEDIATE_INPUT_ROUTER_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_IMMEDIATE_INPUT_ROUTER_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_IMMEDIATE_INPUT_ROUTER_H_ |
| 7 | 7 |
| 8 #include <queue> | 8 #include <queue> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 InputEventAckState ack_result, | 119 InputEventAckState ack_result, |
| 120 const ui::LatencyInfo& latency_info); | 120 const ui::LatencyInfo& latency_info); |
| 121 | 121 |
| 122 // Called by ProcessInputEventAck() to process a keyboard event ack message. | 122 // Called by ProcessInputEventAck() to process a keyboard event ack message. |
| 123 void ProcessKeyboardAck(WebKit::WebInputEvent::Type type, | 123 void ProcessKeyboardAck(WebKit::WebInputEvent::Type type, |
| 124 InputEventAckState ack_result); | 124 InputEventAckState ack_result); |
| 125 | 125 |
| 126 // Called by ProcessInputEventAck() to process a wheel event ack message. | 126 // Called by ProcessInputEventAck() to process a wheel event ack message. |
| 127 // This could result in a task being posted to allow additional wheel | 127 // This could result in a task being posted to allow additional wheel |
| 128 // input messages to be coalesced. | 128 // input messages to be coalesced. |
| 129 void ProcessWheelAck(InputEventAckState ack_result); | 129 void ProcessWheelAck(InputEventAckState ack_result, |
| 130 const ui::LatencyInfo& latency); |
| 130 | 131 |
| 131 // Called by ProcessInputEventAck() to process a gesture event ack message. | 132 // Called by ProcessInputEventAck() to process a gesture event ack message. |
| 132 // This validates the gesture for suppression of touchpad taps and sends one | 133 // This validates the gesture for suppression of touchpad taps and sends one |
| 133 // previously queued coalesced gesture if it exists. | 134 // previously queued coalesced gesture if it exists. |
| 134 void ProcessGestureAck(WebKit::WebInputEvent::Type, | 135 void ProcessGestureAck(WebKit::WebInputEvent::Type, |
| 135 InputEventAckState ack_result); | 136 InputEventAckState ack_result, |
| 137 const ui::LatencyInfo& latency); |
| 136 | 138 |
| 137 // Called on ProcessInputEventAck() to process a touch event ack message. | 139 // Called on ProcessInputEventAck() to process a touch event ack message. |
| 138 // This can result in a gesture event being generated and sent back to the | 140 // This can result in a gesture event being generated and sent back to the |
| 139 // renderer. | 141 // renderer. |
| 140 void ProcessTouchAck(InputEventAckState ack_result, | 142 void ProcessTouchAck(InputEventAckState ack_result, |
| 141 const ui::LatencyInfo& latency_info); | 143 const ui::LatencyInfo& latency); |
| 142 | 144 |
| 143 void HandleGestureScroll( | 145 void HandleGestureScroll( |
| 144 const GestureEventWithLatencyInfo& gesture_event); | 146 const GestureEventWithLatencyInfo& gesture_event); |
| 145 | 147 |
| 146 int routing_id() const { return routing_id_; } | 148 int routing_id() const { return routing_id_; } |
| 147 | 149 |
| 148 | 150 |
| 149 RenderProcessHost* process_; | 151 RenderProcessHost* process_; |
| 150 InputRouterClient* client_; | 152 InputRouterClient* client_; |
| 151 InputAckHandler* ack_handler_; | 153 InputAckHandler* ack_handler_; |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 | 207 |
| 206 scoped_ptr<TouchEventQueue> touch_event_queue_; | 208 scoped_ptr<TouchEventQueue> touch_event_queue_; |
| 207 scoped_ptr<GestureEventFilter> gesture_event_filter_; | 209 scoped_ptr<GestureEventFilter> gesture_event_filter_; |
| 208 | 210 |
| 209 DISALLOW_COPY_AND_ASSIGN(ImmediateInputRouter); | 211 DISALLOW_COPY_AND_ASSIGN(ImmediateInputRouter); |
| 210 }; | 212 }; |
| 211 | 213 |
| 212 } // namespace content | 214 } // namespace content |
| 213 | 215 |
| 214 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_IMMEDIATE_INPUT_ROUTER_H_ | 216 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_IMMEDIATE_INPUT_ROUTER_H_ |
| OLD | NEW |