blink::WebScreenInfo screen_info;
rwh->GetWebScreenInfo(&screen_info);
screen_info.orientationAngle = orientation;
+ WebContentsImpl& contents_impl =
+ static_cast<WebContentsImpl&>(*web_contents_);
ViewMsg_Resize_Params params;
params.screen_info = screen_info;
+ params.new_size =
+ gfx::Size(screen_info.rect.width, screen_info.rect.height);
+ params.is_fullscreen = contents_impl.IsFullscreenForCurrentTab();
rwh->Send(new ViewMsg_Resize(rwh->GetRoutingID(), params));
rwhv->UpdateScreenInfo(rwhv->GetNativeView());
- WebContentsImpl& contents_impl = static_cast<WebContentsImpl&>(*web_contents_);
contents_impl.screen_orientation_dispatcher_host()->OnOrientationChange();
}