[Qt][WK2] Implement loadHtml API for QQuickWebView
authorjesus@webkit.org <jesus@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 21 Nov 2011 17:15:52 +0000 (17:15 +0000)
committerjesus@webkit.org <jesus@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 21 Nov 2011 17:15:52 +0000 (17:15 +0000)
commit4347e2359dbf261d34f52068ce3a319df9345442
treeef5673ea370d6aceb6a917d96b49c0b62d230dd4
parente0410a4ca24f38043593ac244bad2191d1205f70
[Qt][WK2] Implement loadHtml API for QQuickWebView
https://bugs.webkit.org/show_bug.cgi?id=72161

Reviewed by Simon Hausmann.

Implement QQuickWebView::loadHtml that calls QtWebPageProxy::loadHTMLString.
This function will use WKPageLoadHTMLString in order to load HTML from a given string.

* UIProcess/API/qt/qquickwebview.cpp:
(QQuickWebView::loadHtml):
* UIProcess/API/qt/qquickwebview.h:
* UIProcess/API/qt/tests/qmltests/WebView/tst_loadHtml.qml: Added.
* UIProcess/API/qt/tests/qmltests/DesktopBehavior/tst_loadHtml.qml: Added.
* UIProcess/API/qt/tests/qmltests/qmltests.pro:
* UIProcess/qt/QtWebPageProxy.cpp:
(QtWebPageProxy::loadHTMLString):
* UIProcess/qt/QtWebPageProxy.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@100923 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit2/ChangeLog
Source/WebKit2/UIProcess/API/qt/qquickwebview.cpp
Source/WebKit2/UIProcess/API/qt/qquickwebview_p.h
Source/WebKit2/UIProcess/API/qt/tests/qmltests/DesktopBehavior/tst_loadHtml.qml [new file with mode: 0644]
Source/WebKit2/UIProcess/API/qt/tests/qmltests/WebView/tst_loadHtml.qml [new file with mode: 0644]
Source/WebKit2/UIProcess/API/qt/tests/qmltests/qmltests.pro
Source/WebKit2/UIProcess/qt/QtWebPageProxy.cpp
Source/WebKit2/UIProcess/qt/QtWebPageProxy.h