Implement script message for WKWebView backend

This commit is contained in:
Tobias Taschner
2021-02-15 18:13:57 +01:00
parent edcaf5210e
commit a7ff7a8012
4 changed files with 57 additions and 0 deletions

View File

@@ -182,6 +182,7 @@ public:
virtual void RegisterHandler(wxSharedPtr<wxWebViewHandler> handler) = 0;
virtual void Reload(wxWebViewReloadFlags flags = wxWEBVIEW_RELOAD_DEFAULT) = 0;
virtual bool RunScript(const wxString& javascript, wxString* output = NULL) const = 0;
virtual void AddScriptMessageHandler(const wxString& name) { }
virtual void SetEditable(bool enable = true) = 0;
void SetPage(const wxString& html, const wxString& baseUrl)
{