adding events to notify fullscreen state
This commit is contained in:
parent
ddda8e4197
commit
f2d91bc53c
5 changed files with 24 additions and 0 deletions
|
@ -700,10 +700,14 @@ void NativeWindow::RendererResponsive(content::WebContents* source) {
|
|||
void NativeWindow::EnterFullscreenModeForTab(content::WebContents* source,
|
||||
const GURL& origin) {
|
||||
SetHtmlApiFullscreen(true);
|
||||
FOR_EACH_OBSERVER(NativeWindowObserver, observers_,
|
||||
OnWindowEnterHtmlFullScreen());
|
||||
}
|
||||
|
||||
void NativeWindow::ExitFullscreenModeForTab(content::WebContents* source) {
|
||||
SetHtmlApiFullscreen(false);
|
||||
FOR_EACH_OBSERVER(NativeWindowObserver, observers_,
|
||||
OnWindowLeaveHtmlFullScreen());
|
||||
}
|
||||
|
||||
bool NativeWindow::IsFullscreenForTabOrPending(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue