Apply suggestions from code review
Co-authored-by: VZ <vz-github@zeitlins.org>
This commit is contained in:
@@ -431,7 +431,8 @@ public:
|
|||||||
@event{EVT_WEBVIEW_FULL_SCREEN_CHANGED(id, func)}
|
@event{EVT_WEBVIEW_FULL_SCREEN_CHANGED(id, func)}
|
||||||
Process a @c EVT_WEBVIEW_FULL_SCREEN_CHANGED event, generated when
|
Process a @c EVT_WEBVIEW_FULL_SCREEN_CHANGED event, generated when
|
||||||
the page wants to enter or leave fullscreen. Use GetInt to get the status.
|
the page wants to enter or leave fullscreen. Use GetInt to get the status.
|
||||||
Currently only implemented for the edge and WebKit2GTK+ backend.
|
Currently only implemented for the edge and WebKit2GTK+ backend
|
||||||
|
and is only available in wxWidgets 3.1.5 or later.
|
||||||
@endEventTable
|
@endEventTable
|
||||||
|
|
||||||
@since 2.9.3
|
@since 2.9.3
|
||||||
|
@@ -310,7 +310,7 @@ HRESULT wxWebViewEdgeImpl::OnContainsFullScreenElementChanged(ICoreWebView2* WXU
|
|||||||
return hr;
|
return hr;
|
||||||
|
|
||||||
wxWebViewEvent event(wxEVT_WEBVIEW_FULLSCREEN_CHANGED, m_ctrl->GetId(),
|
wxWebViewEvent event(wxEVT_WEBVIEW_FULLSCREEN_CHANGED, m_ctrl->GetId(),
|
||||||
m_ctrl->GetCurrentURL(), "");
|
m_ctrl->GetCurrentURL(), wxString());
|
||||||
event.SetEventObject(m_ctrl);
|
event.SetEventObject(m_ctrl);
|
||||||
event.SetInt(containsFullscreenEvent);
|
event.SetInt(containsFullscreenEvent);
|
||||||
m_ctrl->HandleWindowEvent(event);
|
m_ctrl->HandleWindowEvent(event);
|
||||||
|
Reference in New Issue
Block a user