| Index: content/browser/frame_host/render_frame_host_impl.cc
|
| diff --git a/content/browser/frame_host/render_frame_host_impl.cc b/content/browser/frame_host/render_frame_host_impl.cc
|
| index 8807340a3ba21f27905707c46ef4fbd788ad706c..cfb23aa14090f6e6c1a8689fe4c12d17bbbc65ee 100644
|
| --- a/content/browser/frame_host/render_frame_host_impl.cc
|
| +++ b/content/browser/frame_host/render_frame_host_impl.cc
|
| @@ -331,6 +331,7 @@ bool RenderFrameHostImpl::OnMessageReceived(const IPC::Message &msg) {
|
| OnAccessibilityLocationChanges)
|
| IPC_MESSAGE_HANDLER(AccessibilityHostMsg_FindInPageResult,
|
| OnAccessibilityFindInPageResult)
|
| + IPC_MESSAGE_HANDLER(FrameHostMsg_ToggleFullscreen, OnToggleFullscreen)
|
| #if defined(OS_MACOSX) || defined(OS_ANDROID)
|
| IPC_MESSAGE_HANDLER(FrameHostMsg_ShowPopup, OnShowPopup)
|
| IPC_MESSAGE_HANDLER(FrameHostMsg_HidePopup, OnHidePopup)
|
| @@ -1120,6 +1121,17 @@ void RenderFrameHostImpl::OnAccessibilityFindInPageResult(
|
| }
|
| }
|
|
|
| +void RenderFrameHostImpl::OnToggleFullscreen(bool enter_fullscreen) {
|
| + if (enter_fullscreen)
|
| + delegate_->EnterFullscreenMode(GetLastCommittedURL().GetOrigin());
|
| + else
|
| + delegate_->ExitFullscreenMode();
|
| +
|
| + // The previous call might change the fullscreen state. We need to make sure
|
| + // the renderer is aware of that, which is done via the resize message.
|
| + render_view_host_->WasResized();
|
| +}
|
| +
|
| #if defined(OS_MACOSX) || defined(OS_ANDROID)
|
| void RenderFrameHostImpl::OnShowPopup(
|
| const FrameHostMsg_ShowPopup_Params& params) {
|
|
|