From e8371824bdddc8783231bdf11f66a5b37013a19c Mon Sep 17 00:00:00 2001 From: Tobias Taschner Date: Sun, 28 Feb 2021 20:48:01 +0100 Subject: [PATCH] Disable new methods for webkit1 --- include/wx/gtk/webview_webkit.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/wx/gtk/webview_webkit.h b/include/wx/gtk/webview_webkit.h index d9e728b331..0b9a1939f8 100644 --- a/include/wx/gtk/webview_webkit.h +++ b/include/wx/gtk/webview_webkit.h @@ -78,8 +78,10 @@ public: virtual wxString GetPageText() const wxOVERRIDE; virtual void Print() wxOVERRIDE; virtual bool IsBusy() const wxOVERRIDE; +#if wxUSE_WEBVIEW_WEBKIT2 virtual void EnableAccessToDevTools(bool enable = true) wxOVERRIDE; virtual bool IsAccessToDevToolsEnabled() const wxOVERRIDE; +#endif void SetZoomType(wxWebViewZoomType) wxOVERRIDE; wxWebViewZoomType GetZoomType() const wxOVERRIDE; @@ -117,11 +119,13 @@ public: virtual void ClearSelection() wxOVERRIDE; virtual bool RunScript(const wxString& javascript, wxString* output = NULL) const wxOVERRIDE; +#if wxUSE_WEBVIEW_WEBKIT2 virtual bool AddScriptMessageHandler(const wxString& name) wxOVERRIDE; virtual bool RemoveScriptMessageHandler(const wxString& name) wxOVERRIDE; virtual bool AddUserScript(const wxString& javascript, wxWebViewUserScriptInjectionTime injectionTime = wxWEBVIEW_INJECT_AT_DOCUMENT_START) wxOVERRIDE; virtual void RemoveAllUserScripts() wxOVERRIDE; +#endif //Virtual Filesystem Support virtual void RegisterHandler(wxSharedPtr handler) wxOVERRIDE;