summaryrefslogtreecommitdiffstats
path: root/src/core/web_contents_delegate_qt.h
diff options
context:
space:
mode:
authorSzabolcs David <davidsz@inf.u-szeged.hu>2023-07-29 16:22:30 +0200
committerSzabolcs David <davidsz@inf.u-szeged.hu>2023-08-02 06:19:12 +0000
commit6b46b4503d3672852b4bf590dd276ff4003b26c8 (patch)
tree8b080a5bb2c426b863db5c0e7a3b5ee089705abd /src/core/web_contents_delegate_qt.h
parent5dd2670d66f568b3c688853df1dbc6f785ee9df4 (diff)
Apply WebEngineSettings to guest views
Animated scrolling is always enabled in the PDF viewer and can't be disabled by the settings of the embedding web view. The guest view is still not present at the time when we normally apply settings to the main WebContents, it is only possible after it was properly attached. Pick-to: 6.6 Change-Id: I6b2c99f67ad90bf028b7299280a9a8b0f31e9f65 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/core/web_contents_delegate_qt.h')
-rw-r--r--src/core/web_contents_delegate_qt.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/web_contents_delegate_qt.h b/src/core/web_contents_delegate_qt.h
index cce1578be..68649eaa8 100644
--- a/src/core/web_contents_delegate_qt.h
+++ b/src/core/web_contents_delegate_qt.h
@@ -127,6 +127,9 @@ public:
void ResourceLoadComplete(content::RenderFrameHost* render_frame_host,
const content::GlobalRequestID& request_id,
const blink::mojom::ResourceLoadInfo& resource_load_info) override;
+ void InnerWebContentsAttached(content::WebContents *inner_web_contents,
+ content::RenderFrameHost *render_frame_host,
+ bool is_full_page) override;
void didFailLoad(const QUrl &url, int errorCode, const QString &errorDescription);
void overrideWebPreferences(content::WebContents *, blink::web_pref::WebPreferences*);