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 a65e97a2bc7dcd53064d381554803e1b8223d798..792151a3acfb3586f3bbffd344d79bd065f8e62d 100644 |
--- a/content/browser/renderer_host/render_view_host.cc |
+++ b/content/browser/renderer_host/render_view_host.cc |
@@ -684,6 +684,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) |
@@ -983,6 +985,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) { |