[Qt] Mock DeviceOrientation client for DRT
authordiegohcg@webkit.org <diegohcg@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 11 Dec 2010 18:49:09 +0000 (18:49 +0000)
committerdiegohcg@webkit.org <diegohcg@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 11 Dec 2010 18:49:09 +0000 (18:49 +0000)
commit567432aed74b45aa9561aa5eeae3d8b6e8399827
tree6e915496b59bc833d3d7f1d170756fc0e5316d22
parent047105211d993d1dd40e8b560e1567544a627c10
[Qt] Mock DeviceOrientation client for DRT
https://bugs.webkit.org/show_bug.cgi?id=47490

Reviewed by Kenneth Rohde Christiansen.

WebCore:

* WebCore.pro:

WebKit/qt:

* WebCoreSupport/DeviceOrientationClientMockQt.cpp: Added.
(WebCore::DeviceOrientationClientMockQt::client):
(WebCore::DeviceOrientationClientMockQt::DeviceOrientationClientMockQt):
(WebCore::DeviceOrientationClientMockQt::~DeviceOrientationClientMockQt):
(WebCore::DeviceOrientationClientMockQt::setController):
(WebCore::DeviceOrientationClientMockQt::startUpdating):
(WebCore::DeviceOrientationClientMockQt::stopUpdating):
(WebCore::DeviceOrientationClientMockQt::lastOrientation):
(WebCore::DeviceOrientationClientMockQt::deviceOrientationControllerDestroyed):
(WebCore::DeviceOrientationClientMockQt::setOrientation):
* WebCoreSupport/DeviceOrientationClientMockQt.h: Added.
* WebCoreSupport/DeviceOrientationClientQt.cpp:
* WebCoreSupport/DeviceOrientationProviderQt.cpp:
(WebCore::DeviceOrientationProviderQt::DeviceOrientationProviderQt):
(WebCore::DeviceOrientationProviderQt::~DeviceOrientationProviderQt):
(WebCore::DeviceOrientationProviderQt::changeDeviceOrientation):
* WebCoreSupport/DeviceOrientationProviderQt.h:
* WebCoreSupport/DumpRenderTreeSupportQt.cpp:
(DumpRenderTreeSupportQt::activeMockDeviceOrientationClient):
(DumpRenderTreeSupportQt::removeMockDeviceOrientation):
(DumpRenderTreeSupportQt::setMockDeviceOrientation):
* WebCoreSupport/DumpRenderTreeSupportQt.h:

WebKitTools:

* DumpRenderTree/qt/DumpRenderTreeQt.cpp:
(WebCore::DumpRenderTree::DumpRenderTree):
(WebCore::DumpRenderTree::~DumpRenderTree):
* DumpRenderTree/qt/LayoutTestControllerQt.cpp:
(LayoutTestController::setMockDeviceOrientation):

LayoutTests:

* platform/qt/Skipped:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@73862 268f45cc-cd09-0410-ab3c-d52691b4dbfc
15 files changed:
LayoutTests/ChangeLog
LayoutTests/platform/qt/Skipped
WebCore/ChangeLog
WebCore/WebCore.pro
WebKit/qt/ChangeLog
WebKit/qt/WebCoreSupport/DeviceOrientationClientMockQt.cpp [new file with mode: 0644]
WebKit/qt/WebCoreSupport/DeviceOrientationClientMockQt.h [new file with mode: 0644]
WebKit/qt/WebCoreSupport/DeviceOrientationClientQt.cpp
WebKit/qt/WebCoreSupport/DeviceOrientationProviderQt.cpp
WebKit/qt/WebCoreSupport/DeviceOrientationProviderQt.h
WebKit/qt/WebCoreSupport/DumpRenderTreeSupportQt.cpp
WebKit/qt/WebCoreSupport/DumpRenderTreeSupportQt.h
WebKitTools/ChangeLog
WebKitTools/DumpRenderTree/qt/DumpRenderTreeQt.cpp
WebKitTools/DumpRenderTree/qt/LayoutTestControllerQt.cpp