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.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/core/web_contents_adapter.cpp') diff --git a/src/core/web_contents_adapter.cpp b/src/core/web_contents_adapter.cpp index 3dcef4ba4..258feb92b 100644 --- a/src/core/web_contents_adapter.cpp +++ b/src/core/web_contents_adapter.cpp @@ -55,6 +55,8 @@ #include "web_contents_delegate_qt.h" #include "web_contents_view_qt.h" #include "web_engine_context.h" +#include "web_engine_settings.h" +#include "web_engine_visited_links_manager.h" #include "base/values.h" #include "content/browser/renderer_host/render_view_host_impl.h" @@ -69,6 +71,7 @@ #include "content/public/common/url_constants.h" #include "ui/shell_dialogs/selected_file_info.h" #include "third_party/WebKit/public/web/WebFindOptions.h" +#include "webkit/common/webpreferences.h" #include #include @@ -686,6 +689,12 @@ void WebContentsAdapter::stopFinding() d->webContents->GetRenderViewHost()->StopFinding(content::STOP_FIND_ACTION_KEEP_SELECTION); } +void WebContentsAdapter::updateWebPreferences(const WebPreferences & webPreferences) +{ + Q_D(WebContentsAdapter); + d->webContents->GetRenderViewHost()->UpdateWebkitPreferences(webPreferences); +} + void WebContentsAdapter::wasShown() { Q_D(WebContentsAdapter); -- cgit v1.2.3