| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "base/bind_helpers.h" | 5 #include "base/bind_helpers.h" |
| 6 #include "base/command_line.h" | 6 #include "base/command_line.h" |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
| 9 #include "content/browser/browser_plugin/browser_plugin_guest.h" | 9 #include "content/browser/browser_plugin/browser_plugin_guest.h" |
| 10 #include "content/browser/frame_host/render_widget_host_view_guest.h" | 10 #include "content/browser/frame_host/render_widget_host_view_guest.h" |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 } | 189 } |
| 190 | 190 |
| 191 void RenderWidgetHostViewGuest::SetTooltipText( | 191 void RenderWidgetHostViewGuest::SetTooltipText( |
| 192 const base::string16& tooltip_text) { | 192 const base::string16& tooltip_text) { |
| 193 platform_view_->SetTooltipText(tooltip_text); | 193 platform_view_->SetTooltipText(tooltip_text); |
| 194 } | 194 } |
| 195 | 195 |
| 196 void RenderWidgetHostViewGuest::AcceleratedSurfaceBuffersSwapped( | 196 void RenderWidgetHostViewGuest::AcceleratedSurfaceBuffersSwapped( |
| 197 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, | 197 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, |
| 198 int gpu_host_id) { | 198 int gpu_host_id) { |
| 199 if (!guest_) | 199 NOTREACHED(); |
| 200 return; | |
| 201 | |
| 202 FrameMsg_BuffersSwapped_Params guest_params; | |
| 203 guest_params.size = params.size; | |
| 204 guest_params.mailbox = params.mailbox; | |
| 205 guest_params.gpu_route_id = params.route_id; | |
| 206 guest_params.gpu_host_id = gpu_host_id; | |
| 207 guest_->SendMessageToEmbedder( | |
| 208 new BrowserPluginMsg_BuffersSwapped(guest_->browser_plugin_instance_id(), | |
| 209 guest_params)); | |
| 210 } | 200 } |
| 211 | 201 |
| 212 void RenderWidgetHostViewGuest::AcceleratedSurfacePostSubBuffer( | 202 void RenderWidgetHostViewGuest::AcceleratedSurfacePostSubBuffer( |
| 213 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, | 203 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, |
| 214 int gpu_host_id) { | 204 int gpu_host_id) { |
| 215 NOTREACHED(); | 205 NOTREACHED(); |
| 216 } | 206 } |
| 217 | 207 |
| 218 void RenderWidgetHostViewGuest::OnSwapCompositorFrame( | 208 void RenderWidgetHostViewGuest::OnSwapCompositorFrame( |
| 219 uint32 output_surface_id, | 209 uint32 output_surface_id, |
| (...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 604 } | 594 } |
| 605 | 595 |
| 606 if (blink::WebInputEvent::isGestureEventType(event->type)) { | 596 if (blink::WebInputEvent::isGestureEventType(event->type)) { |
| 607 host_->ForwardGestureEvent( | 597 host_->ForwardGestureEvent( |
| 608 *static_cast<const blink::WebGestureEvent*>(event)); | 598 *static_cast<const blink::WebGestureEvent*>(event)); |
| 609 return; | 599 return; |
| 610 } | 600 } |
| 611 } | 601 } |
| 612 | 602 |
| 613 } // namespace content | 603 } // namespace content |
| OLD | NEW |