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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 | 186 |
187 base::string16 RenderWidgetHostViewGuest::GetSelectedText() const { | 187 base::string16 RenderWidgetHostViewGuest::GetSelectedText() const { |
188 return platform_view_->GetSelectedText(); | 188 return platform_view_->GetSelectedText(); |
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( | |
197 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, | |
198 int gpu_host_id) { | |
199 NOTREACHED(); | |
200 } | |
201 | |
202 void RenderWidgetHostViewGuest::AcceleratedSurfacePostSubBuffer( | |
203 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, | |
204 int gpu_host_id) { | |
205 NOTREACHED(); | |
206 } | |
207 | |
208 void RenderWidgetHostViewGuest::OnSwapCompositorFrame( | 196 void RenderWidgetHostViewGuest::OnSwapCompositorFrame( |
209 uint32 output_surface_id, | 197 uint32 output_surface_id, |
210 scoped_ptr<cc::CompositorFrame> frame) { | 198 scoped_ptr<cc::CompositorFrame> frame) { |
211 if (!guest_) | 199 if (!guest_) |
212 return; | 200 return; |
213 | 201 |
214 last_scroll_offset_ = frame->metadata.root_scroll_offset; | 202 last_scroll_offset_ = frame->metadata.root_scroll_offset; |
215 guest_->SwapCompositorFrame(output_surface_id, | 203 guest_->SwapCompositorFrame(output_surface_id, |
216 host_->GetProcess()->GetID(), | 204 host_->GetProcess()->GetID(), |
217 host_->GetRoutingID(), | 205 host_->GetRoutingID(), |
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
604 } | 592 } |
605 | 593 |
606 if (blink::WebInputEvent::isGestureEventType(event->type)) { | 594 if (blink::WebInputEvent::isGestureEventType(event->type)) { |
607 host_->ForwardGestureEvent( | 595 host_->ForwardGestureEvent( |
608 *static_cast<const blink::WebGestureEvent*>(event)); | 596 *static_cast<const blink::WebGestureEvent*>(event)); |
609 return; | 597 return; |
610 } | 598 } |
611 } | 599 } |
612 | 600 |
613 } // namespace content | 601 } // namespace content |
OLD | NEW |