summaryrefslogtreecommitdiffstats
path: root/src/core/web_contents_adapter.h
diff options
context:
space:
mode:
authorJocelyn Turcotte <jocelyn.turcotte@digia.com>2014-01-15 19:00:59 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-01-22 08:45:02 +0100
commite6b846f3800eed35d31a45122f7f8c3215dc38ef (patch)
treed8a167d8671fde146d3e0fafab3cb98e1a21fb56 /src/core/web_contents_adapter.h
parent0d85992198886cfb2b55087bcf9fe2acb9da84de (diff)
Implement QWebEnginePage::setHtml and setContent
Load a generated data: URL to carry the data. This is not as efficient as it could be but the behavior matches and this should be fine for now. Change-Id: I26ad2e5976025a3044fb03f066074ce6dd34e575 Reviewed-by: Pierre Rossi <pierre.rossi@gmail.com>
Diffstat (limited to 'src/core/web_contents_adapter.h')
-rw-r--r--src/core/web_contents_adapter.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/web_contents_adapter.h b/src/core/web_contents_adapter.h
index 1f00b4b12..c4c25c8a5 100644
--- a/src/core/web_contents_adapter.h
+++ b/src/core/web_contents_adapter.h
@@ -74,6 +74,7 @@ public:
void stop();
void reload();
void load(const QUrl&);
+ void setContent(const QByteArray &data, const QString &mimeType, const QUrl &baseUrl);
QUrl activeUrl() const;
QString pageTitle() const;