| Index: content/browser/web_contents/web_contents_view_guest.cc
|
| diff --git a/content/browser/web_contents/web_contents_view_guest.cc b/content/browser/web_contents/web_contents_view_guest.cc
|
| index efa92bdc0ee4ae7421bf6e52c1c51dc31371b905..4a0dd1a348145029a345b5969360c574a2c7f559 100644
|
| --- a/content/browser/web_contents/web_contents_view_guest.cc
|
| +++ b/content/browser/web_contents/web_contents_view_guest.cc
|
| @@ -76,8 +76,8 @@ ContextMenuParams WebContentsViewGuest::ConvertContextMenuParams(
|
| // We need to add |offset| of the guest from the embedder to position the
|
| // menu properly.
|
| gfx::Rect embedder_bounds;
|
| - guest_->embedder_web_contents()->GetView()->GetContainerBounds(
|
| - &embedder_bounds);
|
| + static_cast<WebContentsImpl*>(guest_->embedder_web_contents())->GetView()->
|
| + GetContainerBounds(&embedder_bounds);
|
| gfx::Rect guest_bounds;
|
| GetContainerBounds(&guest_bounds);
|
|
|
| @@ -90,7 +90,8 @@ ContextMenuParams WebContentsViewGuest::ConvertContextMenuParams(
|
|
|
| void WebContentsViewGuest::GetContainerBounds(gfx::Rect* out) const {
|
| // We need embedder container's bounds to calculate our bounds.
|
| - guest_->embedder_web_contents()->GetView()->GetContainerBounds(out);
|
| + static_cast<WebContentsImpl*>(guest_->embedder_web_contents())->GetView()->
|
| + GetContainerBounds(out);
|
| gfx::Point guest_coordinates = guest_->GetScreenCoordinates(gfx::Point());
|
| out->Offset(guest_coordinates.x(), guest_coordinates.y());
|
| out->set_size(size_);
|
| @@ -230,7 +231,8 @@ void WebContentsViewGuest::StartDragging(
|
| const gfx::ImageSkia& image,
|
| const gfx::Vector2d& image_offset,
|
| const DragEventSourceInfo& event_info) {
|
| - WebContentsImpl* embedder_web_contents = guest_->embedder_web_contents();
|
| + WebContentsImpl* embedder_web_contents = static_cast<WebContentsImpl*>(
|
| + guest_->embedder_web_contents());
|
| embedder_web_contents->GetBrowserPluginEmbedder()->StartDrag(guest_);
|
| RenderViewHostImpl* embedder_render_view_host =
|
| static_cast<RenderViewHostImpl*>(
|
|
|