| 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 2217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2228 | 2228 |
| 2229 bool RenderWidgetHostImpl::ShouldForwardTouchEvent() const { | 2229 bool RenderWidgetHostImpl::ShouldForwardTouchEvent() const { |
| 2230 return input_router_->ShouldForwardTouchEvent(); | 2230 return input_router_->ShouldForwardTouchEvent(); |
| 2231 } | 2231 } |
| 2232 | 2232 |
| 2233 bool RenderWidgetHostImpl::ShouldForwardGestureEvent( | 2233 bool RenderWidgetHostImpl::ShouldForwardGestureEvent( |
| 2234 const GestureEventWithLatencyInfo& gesture_event) const { | 2234 const GestureEventWithLatencyInfo& gesture_event) const { |
| 2235 return input_router_->ShouldForwardGestureEvent(gesture_event); | 2235 return input_router_->ShouldForwardGestureEvent(gesture_event); |
| 2236 } | 2236 } |
| 2237 | 2237 |
| 2238 bool RenderWidgetHostImpl::HasQueuedGestureEvents() const { | |
| 2239 return input_router_->HasQueuedGestureEvents(); | |
| 2240 } | |
| 2241 | |
| 2242 void RenderWidgetHostImpl::StartUserGesture() { | 2238 void RenderWidgetHostImpl::StartUserGesture() { |
| 2243 OnUserGesture(); | 2239 OnUserGesture(); |
| 2244 } | 2240 } |
| 2245 | 2241 |
| 2246 void RenderWidgetHostImpl::Stop() { | 2242 void RenderWidgetHostImpl::Stop() { |
| 2247 Send(new ViewMsg_Stop(GetRoutingID())); | 2243 Send(new ViewMsg_Stop(GetRoutingID())); |
| 2248 } | 2244 } |
| 2249 | 2245 |
| 2250 void RenderWidgetHostImpl::SetBackground(const SkBitmap& background) { | 2246 void RenderWidgetHostImpl::SetBackground(const SkBitmap& background) { |
| 2251 Send(new ViewMsg_SetBackground(GetRoutingID(), background)); | 2247 Send(new ViewMsg_SetBackground(GetRoutingID(), background)); |
| (...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2567 int process_id = (b->first.second >> 32) & 0xffffffff; | 2563 int process_id = (b->first.second >> 32) & 0xffffffff; |
| 2568 RenderWidgetHost* rwh = | 2564 RenderWidgetHost* rwh = |
| 2569 RenderWidgetHost::FromID(process_id, routing_id); | 2565 RenderWidgetHost::FromID(process_id, routing_id); |
| 2570 if (!rwh) | 2566 if (!rwh) |
| 2571 continue; | 2567 continue; |
| 2572 RenderWidgetHostImpl::From(rwh)->FrameSwapped(latency_info); | 2568 RenderWidgetHostImpl::From(rwh)->FrameSwapped(latency_info); |
| 2573 } | 2569 } |
| 2574 } | 2570 } |
| 2575 | 2571 |
| 2576 } // namespace content | 2572 } // namespace content |
| OLD | NEW |