| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/render_widget_host_impl.h" | 5 #include "content/browser/renderer_host/render_widget_host_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 2083 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2094 } | 2094 } |
| 2095 | 2095 |
| 2096 void RenderWidgetHostImpl::OnGestureEventAck( | 2096 void RenderWidgetHostImpl::OnGestureEventAck( |
| 2097 const WebKit::WebGestureEvent& event, | 2097 const WebKit::WebGestureEvent& event, |
| 2098 InputEventAckState ack_result) { | 2098 InputEventAckState ack_result) { |
| 2099 const bool processed = (INPUT_EVENT_ACK_STATE_CONSUMED == ack_result); | 2099 const bool processed = (INPUT_EVENT_ACK_STATE_CONSUMED == ack_result); |
| 2100 if (overscroll_controller_) | 2100 if (overscroll_controller_) |
| 2101 overscroll_controller_->ReceivedEventACK(event, processed); | 2101 overscroll_controller_->ReceivedEventACK(event, processed); |
| 2102 | 2102 |
| 2103 if (view_) | 2103 if (view_) |
| 2104 view_->GestureEventAck(event.type); | 2104 view_->GestureEventAck(event.type, ack_result); |
| 2105 } | 2105 } |
| 2106 | 2106 |
| 2107 void RenderWidgetHostImpl::OnTouchEventAck( | 2107 void RenderWidgetHostImpl::OnTouchEventAck( |
| 2108 const TouchEventWithLatencyInfo& event, | 2108 const TouchEventWithLatencyInfo& event, |
| 2109 InputEventAckState ack_result) { | 2109 InputEventAckState ack_result) { |
| 2110 ComputeTouchLatency(event.latency); | 2110 ComputeTouchLatency(event.latency); |
| 2111 if (view_) | 2111 if (view_) |
| 2112 view_->ProcessAckedTouchEvent(event, ack_result); | 2112 view_->ProcessAckedTouchEvent(event, ack_result); |
| 2113 } | 2113 } |
| 2114 | 2114 |
| (...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2468 int process_id = (b->first.second >> 32) & 0xffffffff; | 2468 int process_id = (b->first.second >> 32) & 0xffffffff; |
| 2469 RenderWidgetHost* rwh = | 2469 RenderWidgetHost* rwh = |
| 2470 RenderWidgetHost::FromID(process_id, routing_id); | 2470 RenderWidgetHost::FromID(process_id, routing_id); |
| 2471 if (!rwh) | 2471 if (!rwh) |
| 2472 continue; | 2472 continue; |
| 2473 RenderWidgetHostImpl::From(rwh)->FrameSwapped(latency_info); | 2473 RenderWidgetHostImpl::From(rwh)->FrameSwapped(latency_info); |
| 2474 } | 2474 } |
| 2475 } | 2475 } |
| 2476 | 2476 |
| 2477 } // namespace content | 2477 } // namespace content |
| OLD | NEW |