adding events to notify fullscreen state

This commit is contained in:
deepak1556 2015-05-17 02:31:30 +05:30
parent ddda8e4197
commit f2d91bc53c
5 changed files with 24 additions and 0 deletions

View file

@ -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(