summaryrefslogtreecommitdiffstats
path: root/src/webenginequick/api/qquickwebengineview_p_p.h
diff options
context:
space:
mode:
authorPeter Varga <pvarga@inf.u-szeged.hu>2021-07-13 17:56:05 +0200
committerPeter Varga <pvarga@inf.u-szeged.hu>2021-07-20 17:06:20 +0200
commit9c663f51c63f7661edcc604ce89171b3f037543d (patch)
tree402291f9e6e6cfccb814dd5a323c4b6de53e7a4a /src/webenginequick/api/qquickwebengineview_p_p.h
parent4a81478a493f337b516af8995e0f41e79f15c33c (diff)
Get rid of Quick's TestSupport API
- Moved TestInputContext and TestInputEvent APIs to tst_qmltests. - Removed loadVisuallyCommitted and use Item.grabToImage to check if page is rendered. - Removed windowCloseRejected signal and use a hidden callback instead. Pick-to: 6.2 Change-Id: Ica6e4c6017426e0171d738a6a59afa557c786698 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
Diffstat (limited to 'src/webenginequick/api/qquickwebengineview_p_p.h')
-rw-r--r--src/webenginequick/api/qquickwebengineview_p_p.h18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/webenginequick/api/qquickwebengineview_p_p.h b/src/webenginequick/api/qquickwebengineview_p_p.h
index 4f07ce909..da0d79d60 100644
--- a/src/webenginequick/api/qquickwebengineview_p_p.h
+++ b/src/webenginequick/api/qquickwebengineview_p_p.h
@@ -80,10 +80,6 @@ class QWebEngineContextMenuRequest;
class QWebEngineFindTextResult;
class QWebEngineHistory;
-#if QT_CONFIG(webenginequick_testsupport)
-class QQuickWebEngineTestSupport;
-#endif
-
class Q_WEBENGINEQUICK_PRIVATE_EXPORT QQuickWebEngineViewPrivate : public QtWebEngineCore::WebContentsAdapterClient
{
public:
@@ -113,7 +109,6 @@ public:
QColor backgroundColor() const override;
void loadStarted(QWebEngineLoadingInfo info) override;
void loadCommitted() override;
- void didFirstVisuallyNonEmptyPaint() override;
void loadFinished(QWebEngineLoadingInfo info) override;
void focusContainer() override;
void unhandledKeyEvent(QKeyEvent *event) override;
@@ -168,9 +163,6 @@ public:
QtWebEngineCore::WebContentsAdapter *webContentsAdapter() override;
void printRequested() override;
void findTextFinished(const QWebEngineFindTextResult &result) override;
-
- void didCompositorFrameSwap();
-
void updateAction(QQuickWebEngineView::WebAction) const;
void adoptWebContents(QtWebEngineCore::WebContentsAdapter *webContents);
void setProfile(QQuickWebEngineProfile *profile);
@@ -186,9 +178,6 @@ public:
QSharedPointer<QtWebEngineCore::WebContentsAdapter> adapter;
QScopedPointer<QWebEngineHistory> m_history;
QScopedPointer<QQuickWebEngineSettings> m_settings;
-#if QT_CONFIG(webenginequick_testsupport)
- QQuickWebEngineTestSupport *m_testSupport;
-#endif
QQmlComponent *contextMenuExtraItems;
QUrl m_url;
QString m_html;
@@ -212,18 +201,11 @@ public:
bool profileInitialized() const;
private:
- enum LoadVisuallyCommittedState {
- NotCommitted,
- DidFirstVisuallyNonEmptyPaint,
- DidFirstCompositorFrameSwap
- };
-
QScopedPointer<QtWebEngineCore::UIDelegatesManager> m_uIDelegatesManager;
QColor m_backgroundColor;
qreal m_zoomFactor;
bool m_profileInitialized;
QWebEngineContextMenuRequest *m_contextMenuRequest;
- LoadVisuallyCommittedState m_loadVisuallyCommittedState = NotCommitted;
QScopedPointer<QQuickWebEngineScriptCollection> m_scriptCollection;
QQuickWebEngineFaviconProvider *m_faviconProvider = nullptr;
};