[Qt] [WK2] Expose web view classes to QML
authorcaio.oliveira@openbossa.org <caio.oliveira@openbossa.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 3 Aug 2011 14:25:23 +0000 (14:25 +0000)
committercaio.oliveira@openbossa.org <caio.oliveira@openbossa.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 3 Aug 2011 14:25:23 +0000 (14:25 +0000)
commitd788eab193d6f960ed607c145249dfb789e3cf7e
tree31b46c5f3880aedaf9d8a2e26132b4b56acfaf67
parent465a22ba986a5581fa2b3bba1ac38178db4ed416
[Qt] [WK2] Expose web view classes to QML
https://bugs.webkit.org/show_bug.cgi?id=65339

Reviewed by Benjamin Poulain.

.:

* Source/WebKit.pro: Include QML plugin subdir in the build system for WK2.

Source/WebKit2:

This patch also uses QuickTest from QtDeclarative to provide the basic autotest
infrastructure for the exposed elements.

* UIProcess/API/qt/qmlplugin/plugin.cpp: Added.
(WebKit2QmlPlugin::registerTypes):
* UIProcess/API/qt/qmlplugin/qmldir: Added.
* UIProcess/API/qt/qmlplugin/qmlplugin.pro: Added.
* UIProcess/API/qt/qtouchwebpage.h: Expose load() to QML environment.
* UIProcess/API/qt/qtouchwebview.h: Since QTouchWebPage* doesn't change once set
in the constructor, we mark the page property as CONSTANT. This avoid QML
warnings for not having a NOTIFY signal for the property change.

* UIProcess/API/qt/tests/tests.pro:
* UIProcess/API/qt/tests/qmltests/DesktopWebView/tst_properties.qml: Added.
* UIProcess/API/qt/tests/qmltests/TouchWebView/tst_properties.qml: Added.
* UIProcess/API/qt/tests/qmltests/common/test1.html: Added.
* UIProcess/API/qt/tests/qmltests/qmltests.pro: Added.
* UIProcess/API/qt/tests/qmltests/tst_qmltests.cpp: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@92277 268f45cc-cd09-0410-ab3c-d52691b4dbfc
14 files changed:
ChangeLog
Source/WebKit.pro
Source/WebKit2/ChangeLog
Source/WebKit2/UIProcess/API/qt/qmlplugin/plugin.cpp [new file with mode: 0644]
Source/WebKit2/UIProcess/API/qt/qmlplugin/qmldir [new file with mode: 0644]
Source/WebKit2/UIProcess/API/qt/qmlplugin/qmlplugin.pro [new file with mode: 0644]
Source/WebKit2/UIProcess/API/qt/qtouchwebpage.h
Source/WebKit2/UIProcess/API/qt/qtouchwebview.h
Source/WebKit2/UIProcess/API/qt/tests/qmltests/DesktopWebView/tst_properties.qml [new file with mode: 0644]
Source/WebKit2/UIProcess/API/qt/tests/qmltests/TouchWebView/tst_properties.qml [new file with mode: 0644]
Source/WebKit2/UIProcess/API/qt/tests/qmltests/common/test1.html [new file with mode: 0644]
Source/WebKit2/UIProcess/API/qt/tests/qmltests/qmltests.pro [new file with mode: 0644]
Source/WebKit2/UIProcess/API/qt/tests/qmltests/tst_qmltests.cpp [new file with mode: 0644]
Source/WebKit2/UIProcess/API/qt/tests/tests.pro