Apply suggestions from code review
Co-Authored-By: VZ <vz-github@zeitlins.org>
This commit is contained in:
@@ -758,7 +758,7 @@
|
|||||||
|
|
||||||
// Use the Edge (Chromium) wxWebView backend (Requires WebView2 SDK)
|
// Use the Edge (Chromium) wxWebView backend (Requires WebView2 SDK)
|
||||||
//
|
//
|
||||||
// Default is 0
|
// Default is 0 because WebView2 is not always available, set it to 1 if you do have it.
|
||||||
//
|
//
|
||||||
// Recommended setting: 1 when building for Windows with WebView2 SDK
|
// Recommended setting: 1 when building for Windows with WebView2 SDK
|
||||||
#define wxUSE_WEBVIEW_EDGE 0
|
#define wxUSE_WEBVIEW_EDGE 0
|
||||||
@@ -1556,4 +1556,3 @@
|
|||||||
#define wxUSE_THEME_MONO 0
|
#define wxUSE_THEME_MONO 0
|
||||||
#define wxUSE_THEME_WIN32 0
|
#define wxUSE_THEME_WIN32 0
|
||||||
|
|
||||||
|
|
||||||
|
@@ -449,7 +449,7 @@ public:
|
|||||||
wxSharedPtr<wxWebViewFactory> factory);
|
wxSharedPtr<wxWebViewFactory> factory);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Allows to check if a specific backend is currently available
|
Allows to check if a specific backend is currently available.
|
||||||
|
|
||||||
@since 3.1.4
|
@since 3.1.4
|
||||||
*/
|
*/
|
||||||
|
@@ -91,7 +91,7 @@ void wxWebView::RegisterFactory(const wxString& backend,
|
|||||||
bool wxWebView::IsBackendAvailable(const wxString& backend)
|
bool wxWebView::IsBackendAvailable(const wxString& backend)
|
||||||
{
|
{
|
||||||
wxStringWebViewFactoryMap::iterator iter = FindFactory(backend);
|
wxStringWebViewFactoryMap::iterator iter = FindFactory(backend);
|
||||||
return (iter != m_factoryMap.end());
|
return iter != m_factoryMap.end();
|
||||||
}
|
}
|
||||||
|
|
||||||
// static
|
// static
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
// Name: source/msw/webview_edge.cpp
|
// Name: src/msw/webview_edge.cpp
|
||||||
// Purpose: wxMSW Edge Chromium wxWebView backend implementation
|
// Purpose: wxMSW Edge Chromium wxWebView backend implementation
|
||||||
// Author: Markus Pingel
|
// Author: Markus Pingel
|
||||||
// Created: 2019-12-15
|
// Created: 2019-12-15
|
||||||
@@ -62,7 +62,7 @@ bool wxWebViewEdge::IsAvailable()
|
|||||||
ms_isAvailable = 1;
|
ms_isAvailable = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
return (ms_isAvailable == 1);
|
return ms_isAvailable == 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wxWebViewEdge::Initialize()
|
bool wxWebViewEdge::Initialize()
|
||||||
|
Reference in New Issue
Block a user