Index: content/browser/renderer_host/render_view_host.cc |
diff --git a/content/browser/renderer_host/render_view_host.cc b/content/browser/renderer_host/render_view_host.cc |
index 2376d887da51e22987dc3f71df514e1fe0a1a0a8..f0a93f814fbdb4845769bc5d2dc42ebd6978b77a 100644 |
--- a/content/browser/renderer_host/render_view_host.cc |
+++ b/content/browser/renderer_host/render_view_host.cc |
@@ -672,6 +672,8 @@ bool RenderViewHost::OnMessageReceived(const IPC::Message& msg) { |
IPC_MESSAGE_HANDLER(ViewHostMsg_DocumentOnLoadCompletedInMainFrame, |
OnMsgDocumentOnLoadCompletedInMainFrame) |
IPC_MESSAGE_HANDLER(ViewHostMsg_ContextMenu, OnMsgContextMenu) |
+ IPC_MESSAGE_HANDLER(ViewHostMsg_ToggleFullscreen, |
+ OnMsgToggleFullscreen) |
IPC_MESSAGE_HANDLER(ViewHostMsg_OpenURL, OnMsgOpenURL) |
IPC_MESSAGE_HANDLER(ViewHostMsg_DidContentsPreferredSizeChange, |
OnMsgDidContentsPreferredSizeChange) |
@@ -961,6 +963,11 @@ void RenderViewHost::OnMsgContextMenu(const ContextMenuParams& params) { |
view->ShowContextMenu(validated_params); |
} |
+void RenderViewHost::OnMsgToggleFullscreen(bool enter_fullscreen) { |
+ DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
+ delegate_->ToggleFullscreenMode(enter_fullscreen); |
+} |
+ |
void RenderViewHost::OnMsgOpenURL(const GURL& url, |
const GURL& referrer, |
WindowOpenDisposition disposition) { |