Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(576)

Side by Side Diff: content/browser/renderer_host/render_widget_host_impl.cc

Issue 20990009: Handle root layer fling Java-side in android_webview. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix findbugs Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 2089 matching lines...) Expand 10 before | Expand all | Expand 10 after
2100 } 2100 }
2101 2101
2102 void RenderWidgetHostImpl::OnGestureEventAck( 2102 void RenderWidgetHostImpl::OnGestureEventAck(
2103 const WebKit::WebGestureEvent& event, 2103 const WebKit::WebGestureEvent& event,
2104 InputEventAckState ack_result) { 2104 InputEventAckState ack_result) {
2105 const bool processed = (INPUT_EVENT_ACK_STATE_CONSUMED == ack_result); 2105 const bool processed = (INPUT_EVENT_ACK_STATE_CONSUMED == ack_result);
2106 if (overscroll_controller_) 2106 if (overscroll_controller_)
2107 overscroll_controller_->ReceivedEventACK(event, processed); 2107 overscroll_controller_->ReceivedEventACK(event, processed);
2108 2108
2109 if (view_) 2109 if (view_)
2110 view_->GestureEventAck(event.type); 2110 view_->GestureEventAck(event.type, ack_result);
2111 } 2111 }
2112 2112
2113 void RenderWidgetHostImpl::OnTouchEventAck( 2113 void RenderWidgetHostImpl::OnTouchEventAck(
2114 const TouchEventWithLatencyInfo& event, 2114 const TouchEventWithLatencyInfo& event,
2115 InputEventAckState ack_result) { 2115 InputEventAckState ack_result) {
2116 ComputeTouchLatency(event.latency); 2116 ComputeTouchLatency(event.latency);
2117 if (view_) 2117 if (view_)
2118 view_->ProcessAckedTouchEvent(event, ack_result); 2118 view_->ProcessAckedTouchEvent(event, ack_result);
2119 } 2119 }
2120 2120
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after
2476 int process_id = (b->first.second >> 32) & 0xffffffff; 2476 int process_id = (b->first.second >> 32) & 0xffffffff;
2477 RenderWidgetHost* rwh = 2477 RenderWidgetHost* rwh =
2478 RenderWidgetHost::FromID(process_id, routing_id); 2478 RenderWidgetHost::FromID(process_id, routing_id);
2479 if (!rwh) 2479 if (!rwh)
2480 continue; 2480 continue;
2481 RenderWidgetHostImpl::From(rwh)->FrameSwapped(latency_info); 2481 RenderWidgetHostImpl::From(rwh)->FrameSwapped(latency_info);
2482 } 2482 }
2483 } 2483 }
2484 2484
2485 } // namespace content 2485 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/android/content_view_core_impl.cc ('k') | content/browser/renderer_host/render_widget_host_view_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698