From 1fcd7970e07a0ecab206224824d1c71488fc19e9 Mon Sep 17 00:00:00 2001 From: Jocelyn Turcotte Date: Wed, 15 Jan 2014 19:10:22 +0100 Subject: Implement QWebEnginePage::toHtml and toPlainText Those methods are now made asynchronous and need to be given a callback to handle the result. Update the code in the browser and fancybrowser examples using std::bind when using C++11 or tr1::bind with C++03 (which should be available with compilers on platforms that we support). Add a (currently failing) earlyToHtml test to make sure that an empty page doesn't crash because of a possibly incomplete attachment of the QtRenderViewObserver. Change-Id: I3ab7cb6f25b91b584dd80df5e4e9ad1e3214348e Reviewed-by: Pierre Rossi --- src/webengine/api/qquickwebengineview_p_p.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/webengine') diff --git a/src/webengine/api/qquickwebengineview_p_p.h b/src/webengine/api/qquickwebengineview_p_p.h index 96632904c..87c0a092b 100644 --- a/src/webengine/api/qquickwebengineview_p_p.h +++ b/src/webengine/api/qquickwebengineview_p_p.h @@ -139,6 +139,8 @@ public: virtual void javascriptDialog(QSharedPointer) Q_DECL_OVERRIDE; virtual void runFileChooser(FileChooserMode, const QString &defaultFileName, const QStringList &acceptedMimeTypes) Q_DECL_OVERRIDE; virtual void didRunJavaScript(const QVariant&, quint64) Q_DECL_OVERRIDE { } + virtual void didFetchDocumentMarkup(const QString&, quint64) Q_DECL_OVERRIDE { } + virtual void didFetchDocumentInnerText(const QString&, quint64) Q_DECL_OVERRIDE { } void setDevicePixelRatio(qreal); -- cgit v1.2.3