X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b64b4e70f1db0c53683327dc062548e8cf984810..0fe8a1b6ca95414cdffcb8120e7d6bdf44bf571d:/src/common/webview.cpp?ds=sidebyside diff --git a/src/common/webview.cpp b/src/common/webview.cpp index dbf877979f..8c69bb9275 100644 --- a/src/common/webview.cpp +++ b/src/common/webview.cpp @@ -42,28 +42,21 @@ wxWebView* wxWebView::New(wxWebViewBackend backend) { switch (backend) { - #if defined(wxUSE_WEBVIEW_WEBKIT) && defined(__WXOSX__) - case wxWEB_VIEW_BACKEND_OSX_WEBKIT: - return new wxOSXWebKitCtrl(); - #endif - - #if defined(wxUSE_WEBVIEW_WEBKIT) && defined(__WXGTK__) - case wxWEB_VIEW_BACKEND_GTK_WEBKIT: - return new wxWebViewWebKit(); + #if defined(wxUSE_WEBVIEW_WEBKIT) && \ + (defined(__WXGTK__) || defined(__WXOSX__)) + case wxWEB_VIEW_BACKEND_WEBKIT: + return new wxWebViewWebKit(); #endif #if wxUSE_WEBVIEW_IE - case wxWEB_VIEW_BACKEND_IE: - return new wxWebViewIE(); + case wxWEB_VIEW_BACKEND_IE: + return new wxWebViewIE(); #endif case wxWEB_VIEW_BACKEND_DEFAULT: - #if defined(wxUSE_WEBVIEW_WEBKIT) && defined(__WXOSX__) - return new wxOSXWebKitCtrl(); - #endif - - #if defined(wxUSE_WEBVIEW_WEBKIT) && defined(__WXGTK__) + #if defined(wxUSE_WEBVIEW_WEBKIT) && \ + (defined(__WXGTK__) || defined(__WXOSX__)) return new wxWebViewWebKit(); #endif @@ -89,30 +82,21 @@ wxWebView* wxWebView::New(wxWindow* parent, { switch (backend) { - #if defined(wxUSE_WEBVIEW_WEBKIT) && defined(__WXOSX__) - case wxWEB_VIEW_BACKEND_OSX_WEBKIT: - return new wxOSXWebKitCtrl(parent, id, url, pos, size, style, - name); - #endif - - #if defined(wxUSE_WEBVIEW_WEBKIT) && defined(__WXGTK__) - case wxWEB_VIEW_BACKEND_GTK_WEBKIT: - return new wxWebViewWebKit(parent, id, url, pos, size, style, - name); + #if defined(wxUSE_WEBVIEW_WEBKIT) && \ + (defined(__WXGTK__) || defined(__WXOSX__)) + case wxWEB_VIEW_BACKEND_WEBKIT: + return new wxWebViewWebKit(parent, id, url, pos, size, style, name); #endif #if wxUSE_WEBVIEW_IE - case wxWEB_VIEW_BACKEND_IE: - return new wxWebViewIE(parent, id, url, pos, size, style, name); + case wxWEB_VIEW_BACKEND_IE: + return new wxWebViewIE(parent, id, url, pos, size, style, name); #endif case wxWEB_VIEW_BACKEND_DEFAULT: - #if defined(wxUSE_WEBVIEW_WEBKIT) && defined(__WXOSX__) - return new wxOSXWebKitCtrl(parent, id, url, pos, size, style, name); - #endif - - #if defined(wxUSE_WEBVIEW_WEBKIT) && defined(__WXGTK__) + #if defined(wxUSE_WEBVIEW_WEBKIT) && \ + (defined(__WXGTK__) || defined(__WXOSX__)) return new wxWebViewWebKit(parent, id, url, pos, size, style, name); #endif