Add named script handler to edge

This commit is contained in:
Tobias Taschner
2021-02-26 21:51:15 +01:00
parent 140e9825b7
commit 2d007ff3f1
3 changed files with 31 additions and 1 deletions

View File

@@ -38,6 +38,7 @@ public:
wxString m_pendingURL;
int m_pendingContextMenuEnabled;
int m_pendingAccessToDevToolsEnabled;
wxString m_scriptMsgHandlerName;
// WebView Events tokens
EventRegistrationToken m_navigationStartingToken = { };

View File

@@ -90,6 +90,8 @@ public:
virtual bool IsAccessToDevToolsEnabled() const wxOVERRIDE;
virtual bool RunScript(const wxString& javascript, wxString* output = NULL) const wxOVERRIDE;
virtual bool AddScriptMessageHandler(const wxString& name) wxOVERRIDE;
virtual bool RemoveScriptMessageHandler(const wxString& name) wxOVERRIDE;
virtual void RegisterHandler(wxSharedPtr<wxWebViewHandler> handler) wxOVERRIDE;