| 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 | 8 |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 output_stream_validator_.Validate(touch_event); | 287 output_stream_validator_.Validate(touch_event); |
| 288 } | 288 } |
| 289 | 289 |
| 290 void InputRouterImpl::OnGestureEventAck( | 290 void InputRouterImpl::OnGestureEventAck( |
| 291 const GestureEventWithLatencyInfo& event, | 291 const GestureEventWithLatencyInfo& event, |
| 292 InputEventAckState ack_result) { | 292 InputEventAckState ack_result) { |
| 293 touch_event_queue_.OnGestureEventAck(event, ack_result); | 293 touch_event_queue_.OnGestureEventAck(event, ack_result); |
| 294 ack_handler_->OnGestureEventAck(event, ack_result); | 294 ack_handler_->OnGestureEventAck(event, ack_result); |
| 295 } | 295 } |
| 296 | 296 |
| 297 void InputRouterImpl::ForwardGestureEvent(const blink::WebGestureEvent& event) { | 297 void InputRouterImpl::ForwardGestureEventWithLatencyInfo( |
| 298 client_->ForwardGestureEvent(event); | 298 const blink::WebGestureEvent& event, |
| 299 const ui::LatencyInfo& latency_info) { |
| 300 client_->ForwardGestureEventWithLatencyInfo(event, latency_info); |
| 299 } | 301 } |
| 300 | 302 |
| 301 void InputRouterImpl::SendMouseWheelEventImmediately( | 303 void InputRouterImpl::SendMouseWheelEventImmediately( |
| 302 const MouseWheelEventWithLatencyInfo& wheel_event) { | 304 const MouseWheelEventWithLatencyInfo& wheel_event) { |
| 303 FilterAndSendWebInputEvent(wheel_event.event, wheel_event.latency); | 305 FilterAndSendWebInputEvent(wheel_event.event, wheel_event.latency); |
| 304 } | 306 } |
| 305 | 307 |
| 306 void InputRouterImpl::OnMouseWheelEventAck( | 308 void InputRouterImpl::OnMouseWheelEventAck( |
| 307 const MouseWheelEventWithLatencyInfo& event, | 309 const MouseWheelEventWithLatencyInfo& event, |
| 308 InputEventAckState ack_result) { | 310 InputEventAckState ack_result) { |
| (...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 637 | 639 |
| 638 flush_requested_ = false; | 640 flush_requested_ = false; |
| 639 client_->DidFlush(); | 641 client_->DidFlush(); |
| 640 } | 642 } |
| 641 | 643 |
| 642 void InputRouterImpl::SetFrameTreeNodeId(int frameTreeNodeId) { | 644 void InputRouterImpl::SetFrameTreeNodeId(int frameTreeNodeId) { |
| 643 frame_tree_node_id_ = frameTreeNodeId; | 645 frame_tree_node_id_ = frameTreeNodeId; |
| 644 } | 646 } |
| 645 | 647 |
| 646 } // namespace content | 648 } // namespace content |
| OLD | NEW |