[Qt][WK2] Private non-QtQuick API
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 30 Jun 2012 04:18:40 +0000 (04:18 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 30 Jun 2012 04:18:40 +0000 (04:18 +0000)
commitd62be1b449d0d65f2cf83ae8327fd6c622087053
treef149effa5eadfd5a6bdda2988011cb5b357deaf1
parent207277d986380fb7f8e5245c88710f54d3c87324
[Qt][WK2] Private non-QtQuick API
https://bugs.webkit.org/show_bug.cgi?id=84532

.:

Patch by Luiz Agostini <luiz.agostini@nokia.com> on 2012-06-29
Reviewed by Noam Rosenthal.

API tests for QRawWebView.

* Source/tests.pri:

Source/WebKit2:

Patch by Luiz Agostini <luiz.agostini@nokia.com> on 2012-06-29
Reviewed by Noam Rosenthal.

Adding new private non-QtQuick API. This new C++ API makes it possible
to have control over the lower levels of WebKit without going via QML.

This is a first version of the API, enough to show pages on the screen.
Many features are not implemented.

* Target.pri:
* UIProcess/API/qt/raw/qrawwebview.cpp: Added.
* UIProcess/API/qt/raw/qrawwebview_p.h: Added.
* UIProcess/API/qt/raw/qrawwebview_p_p.h: Added.

The tests for the new API are pixel tests. They use QRawWebView to load
html files and generate images, and them compare those images to the ones
in UIProcess/API/qt/tests/html/resources.

* UIProcess/API/qt/tests/html/bluesquare.html: Added.
* UIProcess/API/qt/tests/html/redsquare.html: Added.
* UIProcess/API/qt/tests/html/resources/qwkview_noBackground1.png: Added.
* UIProcess/API/qt/tests/html/resources/qwkview_noBackground3.png: Added.
* UIProcess/API/qt/tests/html/resources/qwkview_paint.png: Added.
* UIProcess/API/qt/tests/qrawwebview/qrawwebview.pro: Added.
* UIProcess/API/qt/tests/qrawwebview/tst_qrawwebview.cpp: Added.

Tools:

MiniBrowserRaw is an usage example for the QRawWebView API.
It is only an example and is not fully implemented.

Patch by Luiz Agostini <luiz.agostini@nokia.com> on 2012-06-29
Reviewed by Noam Rosenthal.

* MiniBrowser/qt/raw/DerivedSources.pri: Added.
* MiniBrowser/qt/raw/MiniBrowserRaw.pro: Added.
* MiniBrowser/qt/raw/Target.pri: Added.
* MiniBrowser/qt/raw/View.cpp: Added.
* MiniBrowser/qt/raw/View.h: Added.
* Scripts/webkitpy/style/checker.py:
* Tools.pro:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@121620 268f45cc-cd09-0410-ab3c-d52691b4dbfc
22 files changed:
ChangeLog
Source/WebKit2/ChangeLog
Source/WebKit2/Target.pri
Source/WebKit2/UIProcess/API/qt/raw/qrawwebview.cpp [new file with mode: 0644]
Source/WebKit2/UIProcess/API/qt/raw/qrawwebview_p.h [new file with mode: 0644]
Source/WebKit2/UIProcess/API/qt/raw/qrawwebview_p_p.h [new file with mode: 0644]
Source/WebKit2/UIProcess/API/qt/tests/html/bluesquare.html [new file with mode: 0644]
Source/WebKit2/UIProcess/API/qt/tests/html/redsquare.html [new file with mode: 0644]
Source/WebKit2/UIProcess/API/qt/tests/html/resources/qwkview_noBackground1.png [new file with mode: 0644]
Source/WebKit2/UIProcess/API/qt/tests/html/resources/qwkview_noBackground3.png [new file with mode: 0644]
Source/WebKit2/UIProcess/API/qt/tests/html/resources/qwkview_paint.png [new file with mode: 0644]
Source/WebKit2/UIProcess/API/qt/tests/qrawwebview/qrawwebview.pro [new file with mode: 0644]
Source/WebKit2/UIProcess/API/qt/tests/qrawwebview/tst_qrawwebview.cpp [new file with mode: 0644]
Source/tests.pri
Tools/ChangeLog
Tools/MiniBrowser/qt/raw/DerivedSources.pri [new file with mode: 0644]
Tools/MiniBrowser/qt/raw/MiniBrowserRaw.pro [new file with mode: 0644]
Tools/MiniBrowser/qt/raw/Target.pri [new file with mode: 0644]
Tools/MiniBrowser/qt/raw/View.cpp [new file with mode: 0644]
Tools/MiniBrowser/qt/raw/View.h [new file with mode: 0644]
Tools/Scripts/webkitpy/style/checker.py
Tools/Tools.pro