-
steveblock@google.com authored
Reviewed by Jeremy Orlow. Provide bindings for DeviceOrientation https://bugs.webkit.org/show_bug.cgi?id=39210 Adds ENABLE_DEVICE_ORIENTATION to XCode project file, always disabled. * Configurations/FeatureDefines.xcconfig: 2010-05-20 Steve Block <steveblock@google.com> Reviewed by Jeremy Orlow. Provide bindings for DeviceOrientation https://bugs.webkit.org/show_bug.cgi?id=39210 Adds ENABLE_DEVICE_ORIENTATION to VisualStudio project files, always disabled. * win/tools/vsprops/FeatureDefines.vsprops: * win/tools/vsprops/FeatureDefinesCairo.vsprops: 2010-05-20 Steve Block <steveblock@google.com> Reviewed by Jeremy Orlow. Provide bindings for DeviceOrientation https://bugs.webkit.org/show_bug.cgi?id=39210 Adds ENABLE_DEVICE_ORIENTATION to XCode project file, always disabled. * Configurations/FeatureDefines.xcconfig: 2010-05-20 Steve Block <steveblock@google.com> Reviewed by Jeremy Orlow. Provide bindings for DeviceOrientation https://bugs.webkit.org/show_bug.cgi?id=39210 Tests: fast/dom/DeviceOrientation/window-property.html fast/dom/Window/window-properties-on-device-orientation.html Adds bindings for DeviceOrientation as defined in http://dev.w3.org/geo/api/spec-source-orientation.html This is guarded by ENABLE(DEVICE_ORIENTATION) which is currently disabled on all platforms but Android. * Android.derived.jscbindings.mk: * Android.derived.v8bindings.mk: * Android.mk: * Configurations/FeatureDefines.xcconfig: * DerivedSources.cpp: * DerivedSources.make: * GNUmakefile.am: * WebCore.gypi: * WebCore.pri: * WebCore.pro: * WebCore.xcodeproj/project.pbxproj: * bindings/js/JSEventCustom.cpp: (WebCore::toJS): * bindings/v8/custom/V8EventCustom.cpp: (WebCore::toV8): * dom/DeviceOrientationEvent.cpp: Added. (WebCore::DeviceOrientationEvent::DeviceOrientationEvent): (WebCore::DeviceOrientationEvent::initDeviceOrientationEvent): * dom/DeviceOrientationEvent.h: Added. (WebCore::DeviceOrientationEvent::create): (WebCore::DeviceOrientationEvent::alpha): (WebCore::DeviceOrientationEvent::beta): (WebCore::DeviceOrientationEvent::gamma): (WebCore::DeviceOrientationEvent::isDeviceOrientationEvent): * dom/DeviceOrientationEvent.idl: Added. * dom/Event.cpp: (WebCore::Event::isDeviceOrientationEvent): * dom/Event.h: * dom/EventNames.h: * page/DOMWindow.h: * page/DOMWindow.idl: 2010-05-20 Steve Block <steveblock@google.com> Reviewed by Jeremy Orlow. Provide bindings for DeviceOrientation https://bugs.webkit.org/show_bug.cgi?id=39210 Modifies existing fast/dom/Window tests to skip window.ondeviceorientation until it is widely supported. Adds new fast/dom/Window/window-properties-on-device-orientation.html to test type and presence of window.ondeviceorientation. Adds new fast/dom/DeviceOrientation directory and initial test. Adds all DeviceOrientation tests to all skipped lists. * fast/dom/DeviceOrientation: Added. * fast/dom/DeviceOrientation/script-tests: Added. * fast/dom/DeviceOrientation/script-tests/TEMPLATE.html: Added. * fast/dom/DeviceOrientation/script-tests/window-property.js: Added. (hasOnDeviceOrientationProperty): * fast/dom/DeviceOrientation/window-property-expected.txt: Added. * fast/dom/DeviceOrientation/window-property.html: Added. * fast/dom/Window/script-tests/window-property-descriptors.js: * fast/dom/Window/window-properties-on-device-orientation-expected.txt: Added. * fast/dom/Window/window-properties-on-device-orientation.html: Added. * fast/dom/Window/window-properties.html: * platform/chromium/test_expectations.txt: * platform/gtk/Skipped: * platform/mac/Skipped: * platform/qt/Skipped: * platform/win/Skipped: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@59847 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2f4e6fc9