check if window is html or forced fullscreen
This commit is contained in:
parent
f2d91bc53c
commit
0dcf061dc1
6 changed files with 35 additions and 4 deletions
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue