summaryrefslogtreecommitdiffstats
path: root/src/core/web_contents_adapter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/web_contents_adapter.cpp')
-rw-r--r--src/core/web_contents_adapter.cpp9
1 files changed, 9 insertions, 0 deletions
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 <QDir>
#include <QGuiApplication>
@@ -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);