| 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 "base/auto_reset.h" | 7 #include "base/auto_reset.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/metrics/histogram.h" | 9 #include "base/metrics/histogram.h" |
| 10 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
| (...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 } | 291 } |
| 292 | 292 |
| 293 void InputRouterImpl::OnTouchEventAck(const TouchEventWithLatencyInfo& event, | 293 void InputRouterImpl::OnTouchEventAck(const TouchEventWithLatencyInfo& event, |
| 294 InputEventAckState ack_result) { | 294 InputEventAckState ack_result) { |
| 295 ack_handler_->OnTouchEventAck(event, ack_result); | 295 ack_handler_->OnTouchEventAck(event, ack_result); |
| 296 } | 296 } |
| 297 | 297 |
| 298 void InputRouterImpl::OnGestureEventAck( | 298 void InputRouterImpl::OnGestureEventAck( |
| 299 const GestureEventWithLatencyInfo& event, | 299 const GestureEventWithLatencyInfo& event, |
| 300 InputEventAckState ack_result) { | 300 InputEventAckState ack_result) { |
| 301 touch_event_queue_->OnGestureEventAck(event, ack_result); |
| 301 ProcessAckForOverscroll(event.event, ack_result); | 302 ProcessAckForOverscroll(event.event, ack_result); |
| 302 ack_handler_->OnGestureEventAck(event, ack_result); | 303 ack_handler_->OnGestureEventAck(event, ack_result); |
| 303 } | 304 } |
| 304 | 305 |
| 305 bool InputRouterImpl::SendSelectRange(scoped_ptr<IPC::Message> message) { | 306 bool InputRouterImpl::SendSelectRange(scoped_ptr<IPC::Message> message) { |
| 306 DCHECK(message->type() == InputMsg_SelectRange::ID); | 307 DCHECK(message->type() == InputMsg_SelectRange::ID); |
| 307 if (select_range_pending_) { | 308 if (select_range_pending_) { |
| 308 next_selection_range_ = message.Pass(); | 309 next_selection_range_ = message.Pass(); |
| 309 return true; | 310 return true; |
| 310 } | 311 } |
| (...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 719 break; | 720 break; |
| 720 } | 721 } |
| 721 } | 722 } |
| 722 | 723 |
| 723 bool InputRouterImpl::IsInOverscrollGesture() const { | 724 bool InputRouterImpl::IsInOverscrollGesture() const { |
| 724 OverscrollController* controller = client_->GetOverscrollController(); | 725 OverscrollController* controller = client_->GetOverscrollController(); |
| 725 return controller && controller->overscroll_mode() != OVERSCROLL_NONE; | 726 return controller && controller->overscroll_mode() != OVERSCROLL_NONE; |
| 726 } | 727 } |
| 727 | 728 |
| 728 } // namespace content | 729 } // namespace content |
| OLD | NEW |