diff options
author | Balazs Egedi <egedib@inf.u-szeged.hu> | 2022-02-18 13:04:19 +0100 |
---|---|---|
committer | Kirill Burtsev <kirill.burtsev@qt.io> | 2022-05-04 03:00:16 +0200 |
commit | 828ee197647a7462c10243c0261e7bced9bbcb65 (patch) | |
tree | 4c6bc198ea33a753e6af4efa736741ea10cea280 /src/core/web_contents_adapter.cpp | |
parent | 57a38f05d9a0898bffa077a5caaf48fde370cb02 (diff) |
Quick: Add support for replacing touch handles with delegates
Task-number: QTBUG-85043
Change-Id: I1c87aff352e07eb309d5ba8747b9e50a191d478e
Reviewed-by: Michal Klocek <michal.klocek@qt.io>
Diffstat (limited to 'src/core/web_contents_adapter.cpp')
-rw-r--r-- | src/core/web_contents_adapter.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/web_contents_adapter.cpp b/src/core/web_contents_adapter.cpp index 6206d846f..45dfd1017 100644 --- a/src/core/web_contents_adapter.cpp +++ b/src/core/web_contents_adapter.cpp @@ -1787,6 +1787,14 @@ void WebContentsAdapter::resetSelection() } } +void WebContentsAdapter::resetTouchSelectionController() +{ + CHECK_INITIALIZED(); + unselect(); + if (auto rwhv = static_cast<RenderWidgetHostViewQt *>(m_webContents->GetRenderWidgetHostView())) + rwhv->resetTouchSelectionController(); +} + WebContentsAdapterClient::RenderProcessTerminationStatus WebContentsAdapterClient::renderProcessExitStatus(int terminationStatus) { auto status = WebContentsAdapterClient::RenderProcessTerminationStatus(-1); |