| 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) { |
| 293 client_->ForwardGestureEvent(event); |
| 294 } |
| 295 |
| 292 void InputRouterImpl::SendMouseWheelEventImmediately( | 296 void InputRouterImpl::SendMouseWheelEventImmediately( |
| 293 const MouseWheelEventWithLatencyInfo& wheel_event) { | 297 const MouseWheelEventWithLatencyInfo& wheel_event) { |
| 294 FilterAndSendWebInputEvent(wheel_event.event, wheel_event.latency); | 298 FilterAndSendWebInputEvent(wheel_event.event, wheel_event.latency); |
| 295 } | 299 } |
| 296 | 300 |
| 297 void InputRouterImpl::OnMouseWheelEventAck( | 301 void InputRouterImpl::OnMouseWheelEventAck( |
| 298 const MouseWheelEventWithLatencyInfo& event, | 302 const MouseWheelEventWithLatencyInfo& event, |
| 299 InputEventAckState ack_result) { | 303 InputEventAckState ack_result) { |
| 300 ack_handler_->OnWheelEventAck(event, ack_result); | 304 ack_handler_->OnWheelEventAck(event, ack_result); |
| 301 } | 305 } |
| (...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 638 | 642 |
| 639 flush_requested_ = false; | 643 flush_requested_ = false; |
| 640 client_->DidFlush(); | 644 client_->DidFlush(); |
| 641 } | 645 } |
| 642 | 646 |
| 643 void InputRouterImpl::SetFrameTreeNodeId(int frameTreeNodeId) { | 647 void InputRouterImpl::SetFrameTreeNodeId(int frameTreeNodeId) { |
| 644 frame_tree_node_id_ = frameTreeNodeId; | 648 frame_tree_node_id_ = frameTreeNodeId; |
| 645 } | 649 } |
| 646 | 650 |
| 647 } // namespace content | 651 } // namespace content |
| OLD | NEW |