mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
check if window is html or forced fullscreen
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user