本文整理汇总了C++中WebFullScreenManagerProxy类的典型用法代码示例。如果您正苦于以下问题:C++ WebFullScreenManagerProxy类的具体用法?C++ WebFullScreenManagerProxy怎么用?C++ WebFullScreenManagerProxy使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了WebFullScreenManagerProxy类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: exitFullScreen
void WebViewEfl::exitFullScreen()
{
if (!m_ewkView || !m_hasRequestedFullScreen)
return;
m_hasRequestedFullScreen = false;
WebFullScreenManagerProxy* manager = m_page->fullScreenManager();
manager->willExitFullScreen();
m_ewkView->exitFullScreen();
manager->didExitFullScreen();
}
开发者ID:,项目名称:,代码行数:12,代码来源:
示例2: enterFullScreen
void WebViewEfl::enterFullScreen()
{
if (!m_ewkView || m_hasRequestedFullScreen)
return;
m_hasRequestedFullScreen = true;
WebFullScreenManagerProxy* manager = m_page->fullScreenManager();
manager->willEnterFullScreen();
m_ewkView->enterFullScreen();
manager->didEnterFullScreen();
}
开发者ID:,项目名称:,代码行数:12,代码来源:
示例3: webkitWebViewBaseExitFullScreen
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
}
开发者ID:chenbk85,项目名称:webkit2-wincairo,代码行数:20,代码来源:WebKitWebViewBase.cpp
注:本文中的WebFullScreenManagerProxy类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论