check if window is html or forced fullscreen

This commit is contained in:
deepak1556 2015-05-19 14:06:19 +05:30
parent f2d91bc53c
commit 0dcf061dc1
6 changed files with 35 additions and 4 deletions

View file

@ -221,6 +221,7 @@ void WebContents::EnterFullscreenModeForTab(content::WebContents* source,
if (window) {
window->SetHtmlApiFullscreen(true);
source->GetRenderViewHost()->WasResized();
Emit("enter-html-full-screen");
}
}
@ -229,6 +230,7 @@ void WebContents::ExitFullscreenModeForTab(content::WebContents* source) {
if (window) {
window->SetHtmlApiFullscreen(false);
source->GetRenderViewHost()->WasResized();
Emit("leave-html-full-screen");
}
}