| 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 #include "content/browser/renderer_host/input/input_router_impl.h" | 5 #include "content/browser/renderer_host/input/input_router_impl.h" |
| 6 | 6 |
| 7 #include <math.h> | 7 #include <math.h> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
| (...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 282 output_stream_validator_.Validate(touch_event); | 282 output_stream_validator_.Validate(touch_event); |
| 283 } | 283 } |
| 284 | 284 |
| 285 void InputRouterImpl::OnGestureEventAck( | 285 void InputRouterImpl::OnGestureEventAck( |
| 286 const GestureEventWithLatencyInfo& event, | 286 const GestureEventWithLatencyInfo& event, |
| 287 InputEventAckState ack_result) { | 287 InputEventAckState ack_result) { |
| 288 touch_event_queue_.OnGestureEventAck(event, ack_result); | 288 touch_event_queue_.OnGestureEventAck(event, ack_result); |
| 289 ack_handler_->OnGestureEventAck(event, ack_result); | 289 ack_handler_->OnGestureEventAck(event, ack_result); |
| 290 } | 290 } |
| 291 | 291 |
| 292 void InputRouterImpl::ForwardGestureEvent(const blink::WebGestureEvent& event) { | 292 void InputRouterImpl::ForwardGestureEventWithLatencyInfo( |
| 293 client_->ForwardGestureEvent(event); | 293 const blink::WebGestureEvent& event, |
| 294 const ui::LatencyInfo& latency_info) { |
| 295 client_->ForwardGestureEventWithLatencyInfo(event, latency_info); |
| 294 } | 296 } |
| 295 | 297 |
| 296 void InputRouterImpl::SendMouseWheelEventImmediately( | 298 void InputRouterImpl::SendMouseWheelEventImmediately( |
| 297 const MouseWheelEventWithLatencyInfo& wheel_event) { | 299 const MouseWheelEventWithLatencyInfo& wheel_event) { |
| 298 FilterAndSendWebInputEvent(wheel_event.event, wheel_event.latency); | 300 FilterAndSendWebInputEvent(wheel_event.event, wheel_event.latency); |
| 299 } | 301 } |
| 300 | 302 |
| 301 void InputRouterImpl::OnMouseWheelEventAck( | 303 void InputRouterImpl::OnMouseWheelEventAck( |
| 302 const MouseWheelEventWithLatencyInfo& event, | 304 const MouseWheelEventWithLatencyInfo& event, |
| 303 InputEventAckState ack_result) { | 305 InputEventAckState ack_result) { |
| (...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 633 | 635 |
| 634 flush_requested_ = false; | 636 flush_requested_ = false; |
| 635 client_->DidFlush(); | 637 client_->DidFlush(); |
| 636 } | 638 } |
| 637 | 639 |
| 638 void InputRouterImpl::SetFrameTreeNodeId(int frameTreeNodeId) { | 640 void InputRouterImpl::SetFrameTreeNodeId(int frameTreeNodeId) { |
| 639 frame_tree_node_id_ = frameTreeNodeId; | 641 frame_tree_node_id_ = frameTreeNodeId; |
| 640 } | 642 } |
| 641 | 643 |
| 642 } // namespace content | 644 } // namespace content |
| OLD | NEW |