Fix EOL issues
This commit is contained in:
@@ -1191,11 +1191,11 @@ void WebFrame::OnRunScriptArrayWithEmulationLevel(wxCommandEvent& WXUNUSED(evt))
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void WebFrame::OnRunScriptMessage(wxCommandEvent & evt)
|
void WebFrame::OnRunScriptMessage(wxCommandEvent & evt)
|
||||||
{
|
{
|
||||||
RunScript("window.wx.postMessage('This is a web message');");
|
RunScript("window.wx.postMessage('This is a web message');");
|
||||||
}
|
}
|
||||||
|
|
||||||
void WebFrame::OnRunScriptCustom(wxCommandEvent& WXUNUSED(evt))
|
void WebFrame::OnRunScriptCustom(wxCommandEvent& WXUNUSED(evt))
|
||||||
{
|
{
|
||||||
wxTextEntryDialog dialog
|
wxTextEntryDialog dialog
|
||||||
@@ -1210,9 +1210,9 @@ void WebFrame::OnRunScriptCustom(wxCommandEvent& WXUNUSED(evt))
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
RunScript(dialog.GetValue());
|
RunScript(dialog.GetValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
void WebFrame::OnAddUserScript(wxCommandEvent & WXUNUSED(evt))
|
void WebFrame::OnAddUserScript(wxCommandEvent & WXUNUSED(evt))
|
||||||
{
|
{
|
||||||
wxString userScript = "window.wx_test_var = 'wxWidgets webview sample';";
|
wxString userScript = "window.wx_test_var = 'wxWidgets webview sample';";
|
||||||
wxTextEntryDialog dialog
|
wxTextEntryDialog dialog
|
||||||
|
@@ -440,7 +440,7 @@ HRESULT wxWebViewEdgeImpl::OnWebViewCreated(HRESULT result, ICoreWebView2Control
|
|||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxWebViewEdgeImpl::UpdateWebMessageHandler()
|
void wxWebViewEdgeImpl::UpdateWebMessageHandler()
|
||||||
{
|
{
|
||||||
wxCOMPtr<ICoreWebView2Settings> settings(GetSettings());
|
wxCOMPtr<ICoreWebView2Settings> settings(GetSettings());
|
||||||
if (!settings)
|
if (!settings)
|
||||||
@@ -856,11 +856,11 @@ bool wxWebViewEdge::RemoveScriptMessageHandler(const wxString& WXUNUSED(name))
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
HRESULT wxWebViewEdgeImpl::OnAddScriptToExecuteOnDocumentedCreatedCompleted(HRESULT errorCode, LPCWSTR id)
|
HRESULT wxWebViewEdgeImpl::OnAddScriptToExecuteOnDocumentedCreatedCompleted(HRESULT errorCode, LPCWSTR id)
|
||||||
{
|
{
|
||||||
if (SUCCEEDED(errorCode))
|
if (SUCCEEDED(errorCode))
|
||||||
m_userScriptIds.push_back(id);
|
m_userScriptIds.push_back(id);
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wxWebViewEdge::AddUserScript(const wxString& javascript,
|
bool wxWebViewEdge::AddUserScript(const wxString& javascript,
|
||||||
|
Reference in New Issue
Block a user