| 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 void ProcessInputEventAck(WebKit::WebInputEvent::Type event_type, | 111 void ProcessInputEventAck(WebKit::WebInputEvent::Type event_type, |
| 112 InputEventAckState ack_result, | 112 InputEventAckState ack_result, |
| 113 const ui::LatencyInfo& latency_info); | 113 const ui::LatencyInfo& latency_info); |
| 114 | 114 |
| 115 // Called by ProcessInputEventAck() to process a keyboard event ack message. | 115 // Called by ProcessInputEventAck() to process a keyboard event ack message. |
| 116 void ProcessKeyboardAck(int type, InputEventAckState ack_result); | 116 void ProcessKeyboardAck(int type, InputEventAckState ack_result); |
| 117 | 117 |
| 118 // Called by ProcessInputEventAck() to process a wheel event ack message. | 118 // Called by ProcessInputEventAck() to process a wheel event ack message. |
| 119 // This could result in a task being posted to allow additional wheel | 119 // This could result in a task being posted to allow additional wheel |
| 120 // input messages to be coalesced. | 120 // input messages to be coalesced. |
| 121 void ProcessWheelAck(InputEventAckState ack_result); | 121 void ProcessWheelAck(InputEventAckState ack_result, |
| 122 const ui::LatencyInfo& latency); |
| 122 | 123 |
| 123 // Called by ProcessInputEventAck() to process a gesture event ack message. | 124 // Called by ProcessInputEventAck() to process a gesture event ack message. |
| 124 // This validates the gesture for suppression of touchpad taps and sends one | 125 // This validates the gesture for suppression of touchpad taps and sends one |
| 125 // previously queued coalesced gesture if it exists. | 126 // previously queued coalesced gesture if it exists. |
| 126 void ProcessGestureAck(int type, InputEventAckState ack_result); | 127 void ProcessGestureAck(int type, |
| 128 InputEventAckState ack_result, |
| 129 const ui::LatencyInfo& latency); |
| 127 | 130 |
| 128 // Called on ProcessInputEventAck() to process a touch event ack message. | 131 // Called on ProcessInputEventAck() to process a touch event ack message. |
| 129 // This can result in a gesture event being generated and sent back to the | 132 // This can result in a gesture event being generated and sent back to the |
| 130 // renderer. | 133 // renderer. |
| 131 void ProcessTouchAck(InputEventAckState ack_result, | 134 void ProcessTouchAck(InputEventAckState ack_result, |
| 132 const ui::LatencyInfo& latency_info); | 135 const ui::LatencyInfo& latency); |
| 133 | 136 |
| 134 void HandleGestureScroll( | 137 void HandleGestureScroll( |
| 135 const GestureEventWithLatencyInfo& gesture_event); | 138 const GestureEventWithLatencyInfo& gesture_event); |
| 136 | 139 |
| 137 int routing_id() const { return routing_id_; } | 140 int routing_id() const { return routing_id_; } |
| 138 | 141 |
| 139 | 142 |
| 140 RenderProcessHost* process_; | 143 RenderProcessHost* process_; |
| 141 InputRouterClient* client_; | 144 InputRouterClient* client_; |
| 142 InputAckHandler* ack_handler_; | 145 InputAckHandler* ack_handler_; |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 | 203 |
| 201 scoped_ptr<TouchEventQueue> touch_event_queue_; | 204 scoped_ptr<TouchEventQueue> touch_event_queue_; |
| 202 scoped_ptr<GestureEventFilter> gesture_event_filter_; | 205 scoped_ptr<GestureEventFilter> gesture_event_filter_; |
| 203 | 206 |
| 204 DISALLOW_COPY_AND_ASSIGN(ImmediateInputRouter); | 207 DISALLOW_COPY_AND_ASSIGN(ImmediateInputRouter); |
| 205 }; | 208 }; |
| 206 | 209 |
| 207 } // namespace content | 210 } // namespace content |
| 208 | 211 |
| 209 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_IMMEDIATE_INPUT_ROUTER_H_ | 212 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_IMMEDIATE_INPUT_ROUTER_H_ |
| OLD | NEW |