Source/WebKit/gtk/webkit/webkitwebview.cpp
WebKitWebViewViewMode webkit_web_view_get_view_mode(WebKitWebView* webView)
{
    g_return_val_if_fail(WEBKIT_IS_WEB_VIEW(webView), WEBKIT_WEB_VIEW_VIEW_MODE_WINDOWED);

    Page* page = core(webView);
    Page::ViewMode mode = page->viewMode();

    if (mode == Page::ViewModeFloating)
        return WEBKIT_WEB_VIEW_VIEW_MODE_FLOATING;

    if (mode == Page::ViewModeFullscreen)
        return WEBKIT_WEB_VIEW_VIEW_MODE_FULLSCREEN;

    if (mode == Page::ViewModeMaximized)
        return WEBKIT_WEB_VIEW_VIEW_MODE_MAXIMIZED;

    if (mode == Page::ViewModeMinimized)
        return WEBKIT_WEB_VIEW_VIEW_MODE_MINIMIZED;

    return WEBKIT_WEB_VIEW_VIEW_MODE_WINDOWED;
}
/**
 * webkit_web_view_get_view_mode:
 * @webView: the #WebKitWebView to obtain the view mode from
 *
 * Gets the value of the view-mode property of the
 * #WebKitWebView. Check the property's documentation for more
 * information.
 *
 * Return value: the %WebKitWebViewViewMode currently set for the
 * #WebKitWebView.
 *
 * Since: 1.3.4
 */
@webView: the #WebKitWebView to obtain the view mode from

Gets the value of the view-mode property of the
#WebKitWebView. Check the property's documentation for more
information.

Return value: the %WebKitWebViewViewMode currently set for the
#WebKitWebView.


@webView : the #WebKitWebView to obtain the view mode from Gets the value of the view - mode property of the #WebKitWebView . Check the property ' s documentation for more information . Return value : the %WebKitWebViewViewMode currently set for the #WebKitWebView .
WebKitWebViewViewMode webkit_web_view_get_view_mode(WebKitWebView* webView)
{
    g_return_val_if_fail(WEBKIT_IS_WEB_VIEW(webView), WEBKIT_WEB_VIEW_VIEW_MODE_WINDOWED);
    Page* page = core(webView);
    Page::ViewMode mode = page->viewMode();
    if (mode == Page::ViewModeFloating)
        return WEBKIT_WEB_VIEW_VIEW_MODE_FLOATING;
    if (mode == Page::ViewModeFullscreen)
        return WEBKIT_WEB_VIEW_VIEW_MODE_FULLSCREEN;
    if (mode == Page::ViewModeMaximized)
        return WEBKIT_WEB_VIEW_VIEW_MODE_MAXIMIZED;
    if (mode == Page::ViewModeMinimized)
        return WEBKIT_WEB_VIEW_VIEW_MODE_MINIMIZED;
    return WEBKIT_WEB_VIEW_VIEW_MODE_WINDOWED;
}
WebKitWebViewViewMode webkit_web_view_get_view_mode ( WebKitWebView * webView ) { g_return_val_if_fail ( WEBKIT_IS_WEB_VIEW ( webView ) , WEBKIT_WEB_VIEW_VIEW_MODE_WINDOWED ) ; Page * page = core ( webView ) ; Page :: ViewMode mode = page -> viewMode ( ) ; if ( mode == Page :: ViewModeFloating ) return WEBKIT_WEB_VIEW_VIEW_MODE_FLOATING ; if ( mode == Page :: ViewModeFullscreen ) return WEBKIT_WEB_VIEW_VIEW_MODE_FULLSCREEN ; if ( mode == Page :: ViewModeMaximized ) return WEBKIT_WEB_VIEW_VIEW_MODE_MAXIMIZED ; if ( mode == Page :: ViewModeMinimized ) return WEBKIT_WEB_VIEW_VIEW_MODE_MINIMIZED ; return WEBKIT_WEB_VIEW_VIEW_MODE_WINDOWED ; }
webkit_web_view_get_view_mode:
 @webView: the #WebKitWebView to obtain the view mode from
webkit_web_view_get_view_mode : @webView : the #WebKitWebView to obtain the view mode from