summaryrefslogtreecommitdiff
path: root/src/core/api/qwebenginepage.h
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2021-04-30 17:15:57 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2021-06-03 02:40:25 +0200
commit82fe139dae5205a1683fb2b344c5dc867597c443 (patch)
treeeeae61e1f34ebbc8536ebc2681d43de8dfb6e475 /src/core/api/qwebenginepage.h
parent5a0b312214ac182749040dac7ca09610c2124fbd (diff)
downloadqtwebengine-82fe139dae5205a1683fb2b344c5dc867597c443.tar.gz
Move createWindow to a signal
Ports QQuickWebEngineNewViewRequest to QtWebEngineCore. [ChangeLog][QtWebEngineQuick][WebEngineView] WebEngineView::NewViewRequested is now handled with WebEngineView::acceptAsNewView() instead of with WebEngineNewViewRequest::openIn(). Task-number: QTBUG-74587 Change-Id: I9b27128948076e13f2c228458e1e7491df12153d Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Michal Klocek <michal.klocek@qt.io>
Diffstat (limited to 'src/core/api/qwebenginepage.h')
-rw-r--r--src/core/api/qwebenginepage.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/api/qwebenginepage.h b/src/core/api/qwebenginepage.h
index d1838e51c..c0c970207 100644
--- a/src/core/api/qwebenginepage.h
+++ b/src/core/api/qwebenginepage.h
@@ -64,6 +64,7 @@ class QWebEngineClientCertificateSelection;
class QWebEngineFindTextResult;
class QWebEngineFullScreenRequest;
class QWebEngineHistory;
+class QWebEngineNewWindowRequest;
class QWebEnginePage;
class QWebEnginePagePrivate;
class QWebEngineProfile;
@@ -320,6 +321,8 @@ public:
bool isVisible() const;
void setVisible(bool visible);
+ void acceptAsNewWindow(QWebEngineNewWindowRequest &request);
+
static QWebEnginePage* fromDownloadRequest(QWebEngineDownloadRequest * request);
Q_SIGNALS:
@@ -343,6 +346,7 @@ Q_SIGNALS:
void renderProcessTerminated(RenderProcessTerminationStatus terminationStatus, int exitCode);
void certificateError(const QWebEngineCertificateError &certificateError);
+ void newWindowRequested(QWebEngineNewWindowRequest &request);
// Ex-QWebFrame signals
void titleChanged(const QString &title);