void WebViewEfl::exitFullScreen() { if (!m_ewkView || !m_hasRequestedFullScreen) return; m_hasRequestedFullScreen = false; WebFullScreenManagerProxy* manager = m_page->fullScreenManager(); manager->willExitFullScreen(); m_ewkView->exitFullScreen(); manager->didExitFullScreen(); }
void WebViewEfl::enterFullScreen() { if (!m_ewkView || m_hasRequestedFullScreen) return; m_hasRequestedFullScreen = true; WebFullScreenManagerProxy* manager = m_page->fullScreenManager(); manager->willEnterFullScreen(); m_ewkView->enterFullScreen(); manager->didEnterFullScreen(); }
void webkitWebViewBaseExitFullScreen(WebKitWebViewBase* webkitWebViewBase) { #if ENABLE(FULLSCREEN_API) WebKitWebViewBasePrivate* priv = webkitWebViewBase->priv; if (!priv->fullScreenModeActive) return; if (!priv->fullScreenClient.willExitFullScreen()) return; WebFullScreenManagerProxy* fullScreenManagerProxy = priv->pageProxy->fullScreenManager(); fullScreenManagerProxy->willExitFullScreen(); GtkWidget* topLevelWindow = gtk_widget_get_toplevel(GTK_WIDGET(webkitWebViewBase)); if (gtk_widget_is_toplevel(topLevelWindow)) gtk_window_unfullscreen(GTK_WINDOW(topLevelWindow)); fullScreenManagerProxy->didExitFullScreen(); priv->fullScreenModeActive = false; #endif }