Implement user agent access for GTK

This commit is contained in:
Tobias Taschner
2021-03-16 15:37:37 +01:00
parent 18f5b01cc6
commit 7f7191066b
2 changed files with 17 additions and 0 deletions

View File

@@ -81,6 +81,7 @@ public:
#if wxUSE_WEBVIEW_WEBKIT2
virtual void EnableAccessToDevTools(bool enable = true) wxOVERRIDE;
virtual bool IsAccessToDevToolsEnabled() const wxOVERRIDE;
virtual bool SetUserAgent(const wxString& userAgent) wxOVERRIDE;
#endif
void SetZoomType(wxWebViewZoomType) wxOVERRIDE;
@@ -176,6 +177,7 @@ private:
#endif
WebKitWebView *m_web_view;
wxString m_customUserAgent;
int m_historyLimit;
wxVector<wxSharedPtr<wxWebViewHandler> > m_handlerList;