Changeset 73862 in webkit
- Timestamp:
- Dec 11, 2010 10:49:09 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r73861 r73862 1 2010-10-11 Diego Gonzalez <diegohcg@webkit.org> 2 3 Reviewed by Kenneth Rohde Christiansen. 4 5 [Qt] Mock DeviceOrientation client for DRT 6 https://bugs.webkit.org/show_bug.cgi?id=47490 7 8 * platform/qt/Skipped: 9 1 10 2010-12-11 Pavel Feldman <pfeldman@chromium.org> 2 11 -
trunk/LayoutTests/platform/qt/Skipped
r73789 r73862 75 75 # This test is for clients that choose to make the missing plugin indicator a button 76 76 plugins/clicking-missing-plugin-fires-delegate.html 77 78 # =========================================================================== #79 # Feature not supported... yet80 # =========================================================================== #81 82 # This port doesn't support DeviceMotion or DeviceOrientation.83 fast/dom/DeviceMotion84 fast/dom/DeviceOrientation85 fast/dom/Window/window-properties-device-orientation.html86 77 87 78 # IndexedDB is not yet enabled. … … 3055 3046 fast/dom/stripNullFromTextNodes.html 3056 3047 fast/dom/wrapper-classes.html 3048 fast/dom/Window/window-properties-device-orientation.html 3057 3049 fast/dynamic/002.html 3058 3050 fast/dynamic/004.html -
trunk/WebCore/ChangeLog
r73860 r73862 1 2010-10-11 Diego Gonzalez <diegohcg@webkit.org> 2 3 Reviewed by Kenneth Rohde Christiansen. 4 5 [Qt] Mock DeviceOrientation client for DRT 6 https://bugs.webkit.org/show_bug.cgi?id=47490 7 8 * WebCore.pro: 9 1 10 2010-12-11 Joone Hur <joone@kldp.org> 2 11 -
trunk/WebCore/WebCore.pro
r73806 r73862 3419 3419 ../WebKit/qt/WebCoreSupport/DeviceMotionProviderQt.h \ 3420 3420 ../WebKit/qt/WebCoreSupport/DeviceOrientationClientQt.h \ 3421 ../WebKit/qt/WebCoreSupport/DeviceOrientationClientMockQt.h \ 3421 3422 ../WebKit/qt/WebCoreSupport/DeviceOrientationProviderQt.h \ 3422 3423 bindings/generic/RuntimeEnabledFeatures.h … … 3425 3426 ../WebKit/qt/WebCoreSupport/DeviceMotionProviderQt.cpp \ 3426 3427 ../WebKit/qt/WebCoreSupport/DeviceOrientationClientQt.cpp \ 3428 ../WebKit/qt/WebCoreSupport/DeviceOrientationClientMockQt.cpp \ 3427 3429 ../WebKit/qt/WebCoreSupport/DeviceOrientationProviderQt.cpp \ 3428 3430 bindings/generic/RuntimeEnabledFeatures.cpp -
trunk/WebKit/qt/ChangeLog
r73789 r73862 1 2010-10-11 Diego Gonzalez <diegohcg@webkit.org> 2 3 Reviewed by Kenneth Rohde Christiansen. 4 5 [Qt] Mock DeviceOrientation client for DRT 6 https://bugs.webkit.org/show_bug.cgi?id=47490 7 8 * WebCoreSupport/DeviceOrientationClientMockQt.cpp: Added. 9 (WebCore::DeviceOrientationClientMockQt::client): 10 (WebCore::DeviceOrientationClientMockQt::DeviceOrientationClientMockQt): 11 (WebCore::DeviceOrientationClientMockQt::~DeviceOrientationClientMockQt): 12 (WebCore::DeviceOrientationClientMockQt::setController): 13 (WebCore::DeviceOrientationClientMockQt::startUpdating): 14 (WebCore::DeviceOrientationClientMockQt::stopUpdating): 15 (WebCore::DeviceOrientationClientMockQt::lastOrientation): 16 (WebCore::DeviceOrientationClientMockQt::deviceOrientationControllerDestroyed): 17 (WebCore::DeviceOrientationClientMockQt::setOrientation): 18 * WebCoreSupport/DeviceOrientationClientMockQt.h: Added. 19 * WebCoreSupport/DeviceOrientationClientQt.cpp: 20 * WebCoreSupport/DeviceOrientationProviderQt.cpp: 21 (WebCore::DeviceOrientationProviderQt::DeviceOrientationProviderQt): 22 (WebCore::DeviceOrientationProviderQt::~DeviceOrientationProviderQt): 23 (WebCore::DeviceOrientationProviderQt::changeDeviceOrientation): 24 * WebCoreSupport/DeviceOrientationProviderQt.h: 25 * WebCoreSupport/DumpRenderTreeSupportQt.cpp: 26 (DumpRenderTreeSupportQt::activeMockDeviceOrientationClient): 27 (DumpRenderTreeSupportQt::removeMockDeviceOrientation): 28 (DumpRenderTreeSupportQt::setMockDeviceOrientation): 29 * WebCoreSupport/DumpRenderTreeSupportQt.h: 30 1 31 2010-12-10 Krithigassree Sambamurthy <krithigassree.sambamurthy@nokia.com> 2 32 -
trunk/WebKit/qt/WebCoreSupport/DeviceOrientationClientQt.cpp
r69024 r73862 21 21 #include "DeviceOrientationClientQt.h" 22 22 23 #include "DeviceOrientationClientMockQt.h" 23 24 #include "DeviceOrientationController.h" 24 25 #include "DeviceOrientationProviderQt.h" -
trunk/WebKit/qt/WebCoreSupport/DeviceOrientationProviderQt.cpp
r69024 r73862 21 21 #include "DeviceOrientationProviderQt.h" 22 22 23 #include "DeviceOrientationClientMockQt.h" 24 23 25 namespace WebCore { 24 26 … … 27 29 m_rotation.addFilter(this); 28 30 m_orientation = DeviceOrientation::create(); 31 32 if (DeviceOrientationClientMockQt::mockIsActive) 33 activeClientMock(); 29 34 } 30 35 31 36 DeviceOrientationProviderQt::~DeviceOrientationProviderQt() 32 37 { 38 disconnect(); 33 39 } 34 40 … … 64 70 } 65 71 72 void DeviceOrientationProviderQt::changeDeviceOrientation(DeviceOrientation* orientation) 73 { 74 m_orientation = orientation; 75 } 76 77 void DeviceOrientationProviderQt::activeClientMock() 78 { 79 connect(DeviceOrientationClientMockQt::client(), SIGNAL(mockOrientationChanged(DeviceOrientation*)), SLOT(changeDeviceOrientation(DeviceOrientation*))); 80 } 81 66 82 } 67 83 -
trunk/WebKit/qt/WebCoreSupport/DeviceOrientationProviderQt.h
r69024 r73862 49 49 void deviceOrientationChanged(DeviceOrientation*); 50 50 51 public Q_SLOTS: 52 void changeDeviceOrientation(DeviceOrientation*); 53 51 54 private: 55 void activeClientMock(); 56 52 57 RefPtr<DeviceOrientation> m_orientation; 53 58 QRotationSensor m_rotation; -
trunk/WebKit/qt/WebCoreSupport/DumpRenderTreeSupportQt.cpp
r73789 r73862 30 30 #include "ContextMenuClientQt.h" 31 31 #include "ContextMenuController.h" 32 #include "DeviceOrientation.h" 33 #include "DeviceOrientationClientMockQt.h" 32 34 #include "Editor.h" 33 35 #include "EditorClientQt.h" … … 694 696 } 695 697 698 void DumpRenderTreeSupportQt::activeMockDeviceOrientationClient(bool b) 699 { 700 #if ENABLE(DEVICE_ORIENTATION) 701 DeviceOrientationClientMockQt::mockIsActive = b; 702 #endif 703 } 704 705 void DumpRenderTreeSupportQt::removeMockDeviceOrientation() 706 { 707 #if ENABLE(DEVICE_ORIENTATION) 708 DeviceOrientationClientMockQt* client = DeviceOrientationClientMockQt::client(); 709 delete client; 710 #endif 711 } 712 713 void DumpRenderTreeSupportQt::setMockDeviceOrientation(bool canProvideAlpha, double alpha, bool canProvideBeta, double beta, bool canProvideGamma, double gamma) 714 { 715 #if ENABLE(DEVICE_ORIENTATION) 716 DeviceOrientationClientMockQt::client()->setOrientation(canProvideAlpha, alpha, canProvideBeta, beta, canProvideGamma, gamma); 717 #endif 718 } 719 696 720 void DumpRenderTreeSupportQt::setMockGeolocationPosition(double latitude, double longitude, double accuracy) 697 721 { -
trunk/WebKit/qt/WebCoreSupport/DumpRenderTreeSupportQt.h
r73789 r73862 95 95 static void resetOriginAccessWhiteLists(); 96 96 97 static void activeMockDeviceOrientationClient(bool b); 98 static void removeMockDeviceOrientation(); 99 static void setMockDeviceOrientation(bool canProvideAlpha, double alpha, bool canProvideBeta, double beta, bool canProvideGamma, double gamma); 100 97 101 static void setMockGeolocationPosition(double latitude, double longitude, double accuracy); 98 102 static void setMockGeolocationError(int errorCode, const QString& message); -
trunk/WebKitTools/ChangeLog
r73859 r73862 1 2010-10-11 Diego Gonzalez <diegohcg@webkit.org> 2 3 Reviewed by Kenneth Rohde Christiansen. 4 5 [Qt] Mock DeviceOrientation client for DRT 6 https://bugs.webkit.org/show_bug.cgi?id=47490 7 8 * DumpRenderTree/qt/DumpRenderTreeQt.cpp: 9 (WebCore::DumpRenderTree::DumpRenderTree): 10 (WebCore::DumpRenderTree::~DumpRenderTree): 11 * DumpRenderTree/qt/LayoutTestControllerQt.cpp: 12 (LayoutTestController::setMockDeviceOrientation): 13 1 14 2010-12-11 Philippe Normand <pnormand@igalia.com> 2 15 -
trunk/WebKitTools/DumpRenderTree/qt/DumpRenderTreeQt.cpp
r73789 r73862 421 421 422 422 DumpRenderTreeSupportQt::overwritePluginDirectories(); 423 423 DumpRenderTreeSupportQt::activeMockDeviceOrientationClient(true); 424 424 QWebSettings::enablePersistentStorage(m_persistentStoragePath); 425 425 … … 497 497 delete m_mainView; 498 498 delete m_stdin; 499 DumpRenderTreeSupportQt::removeMockDeviceOrientation(); 499 500 } 500 501 -
trunk/WebKitTools/DumpRenderTree/qt/LayoutTestControllerQt.cpp
r73789 r73862 751 751 void LayoutTestController::setMockDeviceOrientation(bool canProvideAlpha, double alpha, bool canProvideBeta, double beta, bool canProvideGamma, double gamma) 752 752 { 753 // FIXME: Implement for DeviceOrientation layout tests. 754 // See https://bugs.webkit.org/show_bug.cgi?id=30335. 753 DumpRenderTreeSupportQt::setMockDeviceOrientation(canProvideAlpha, alpha, canProvideBeta, beta, canProvideGamma, gamma); 755 754 } 756 755
Note: See TracChangeset
for help on using the changeset viewer.