From 37fcb1517cf41066215a3c552c2021773bb1fd63 Mon Sep 17 00:00:00 2001 From: Pierre Rossi Date: Thu, 15 May 2014 16:46:38 +0200 Subject: Ground work for Settings/Preferences Core interface to expose toggling some of the WebPreferences for now and most probably some of the WebRuntimeFeatures soon. The whole dummy settings business is meant to keep things from breaking too much when bisecting, because it is assumed that there are always valid settings for a given adapterClient. Change-Id: Ic0a62bcb5af8c0254436dc770b43cde5016c3bbd Reviewed-by: Allan Sandfeld Jensen --- src/core/web_contents_adapter_client.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/core/web_contents_adapter_client.h') diff --git a/src/core/web_contents_adapter_client.h b/src/core/web_contents_adapter_client.h index 2dffb8fb5..e0ff25124 100644 --- a/src/core/web_contents_adapter_client.h +++ b/src/core/web_contents_adapter_client.h @@ -58,6 +58,7 @@ class RenderWidgetHostViewQtDelegate; class RenderWidgetHostViewQtDelegateClient; class WebContentsAdapter; class WebContentsDelegateQt; +class WebEngineSettings; // FIXME: make this ref-counted and implicitely shared and expose as public API maybe ? class WebEngineContextMenuData { @@ -175,6 +176,7 @@ public: virtual void javaScriptConsoleMessage(JavaScriptConsoleMessageLevel level, const QString& message, int lineNumber, const QString& sourceID) = 0; virtual void authenticationRequired(const QUrl &requestUrl, const QString &realm, bool isProxy, const QString &challengingHost, QString *outUser, QString *outPassword) = 0; virtual void runMediaAccessPermissionRequest(const QUrl &securityOrigin, MediaRequestFlags requestFlags) = 0; + virtual WebEngineSettings *webEngineSettings() const = 0; }; #endif // WEB_CONTENTS_ADAPTER_CLIENT_H -- cgit v1.2.3