2010-07-22 Kim Grönholm <kim.1.gronholm@nokia.com>
authorKim Grönholm <kim.1.gronholm@nokia.com>
Thu, 22 Jul 2010 21:04:35 +0000 (00:04 +0300)
committerKim Grönholm <kimpura@kimpura-desktop.(none)>
Thu, 22 Jul 2010 21:09:02 +0000 (00:09 +0300)
commit53a49702d6d79e36e43109ccab3a8304ba82947f
tree51dfbf05e0fed824a36eb622ad23aeea2bc1ed6f
parent0e3debb80e20c22574bce964684073ebf8b414ae
2010-07-22  Kim Grönholm  <kim.1.gronholm@nokia.com>

        Reviewed by NOBODY (OOPS!).

        Add TransformActionEvent support
        https://bugs.webkit.org/show_bug.cgi?id=39757

        Added only the necessary TransformAction event interfaces and not e.g.
        any eventhandler hooks that generate and dispatch them.

        Test: fast/events/transformaction/create-transformaction-event.html
        More tests will be added with the machinery that generates and
        dispatches these events.

        * Android.derived.jscbindings.mk:
        * Android.derived.v8bindings.mk:
        * Android.mk:
        * CMakeLists.txt:
        * DerivedSources.cpp:
        * DerivedSources.make:
        * GNUmakefile.am:
        * WebCore.gypi:
        * WebCore.pri:
        * WebCore.pro:
        * bindings/generic/RuntimeEnabledFeatures.cpp:
        * bindings/generic/RuntimeEnabledFeatures.h:
        (WebCore::RuntimeEnabledFeatures::transformactionEnabled):
        (WebCore::RuntimeEnabledFeatures::setTransformActionEnabled):
        (WebCore::RuntimeEnabledFeatures::ontransformactionstartEnabled):
        (WebCore::RuntimeEnabledFeatures::ontransformactionupdateEnabled):
        (WebCore::RuntimeEnabledFeatures::ontransformactionendEnabled):
        * bindings/js/JSEventCustom.cpp:
        (WebCore::toJS):
        * bindings/v8/custom/V8EventCustom.cpp:
        (WebCore::toV8):
        * dom/Document.cpp:
        (WebCore::Document::createEvent):
        (WebCore::Document::addListenerTypeIfNeeded):
        * dom/Document.h:
        (WebCore::Document::):
        * dom/Document.idl:
        * dom/Element.h:
        * dom/Element.idl:
        * dom/Event.cpp:
        (WebCore::Event::isTransformActionEvent):
        (WebCore::Event::fromUserGesture):
        * dom/Event.h:
        * dom/EventNames.h:
        * dom/TransformActionEvent.cpp: Added.
        (WebCore::TransformActionEvent::TransformActionEvent):
        (WebCore::TransformActionEvent::initTransformActionEvent):
        * dom/TransformActionEvent.h: Added.
        (WebCore::TransformActionEvent::create):
        (WebCore::TransformActionEvent::translateX):
        (WebCore::TransformActionEvent::translateY):
        (WebCore::TransformActionEvent::translateSpeedX):
        (WebCore::TransformActionEvent::translateSpeedY):
        (WebCore::TransformActionEvent::scale):
        (WebCore::TransformActionEvent::scaleSpeed):
        (WebCore::TransformActionEvent::rotate):
        (WebCore::TransformActionEvent::rotateSpeed):
        (WebCore::TransformActionEvent::TransformActionEvent):
        (WebCore::TransformActionEvent::isTransformActionEvent):
        * dom/TransformActionEvent.idl: Added.
        * html/HTMLAttributeNames.in:
        * html/HTMLElement.cpp:
        (WebCore::HTMLElement::parseMappedAttribute):
        * page/DOMWindow.h:
        * page/DOMWindow.idl:
41 files changed:
LayoutTests/ChangeLog
LayoutTests/fast/events/transformaction/create-transformaction-event-expected.txt [new file with mode: 0644]
LayoutTests/fast/events/transformaction/create-transformaction-event.html [new file with mode: 0644]
LayoutTests/fast/events/transformaction/resources/create-transformaction-event.js [new file with mode: 0644]
LayoutTests/platform/gtk/Skipped
LayoutTests/platform/mac/Skipped
LayoutTests/platform/qt/fast/dom/Window/window-properties-expected.txt
LayoutTests/platform/qt/fast/dom/Window/window-property-descriptors-expected.txt
LayoutTests/platform/qt/fast/dom/prototype-inheritance-expected.txt
LayoutTests/platform/qt/fast/js/global-constructors-expected.txt
LayoutTests/platform/win/Skipped
WebCore/Android.derived.jscbindings.mk
WebCore/Android.derived.v8bindings.mk
WebCore/Android.mk
WebCore/CMakeLists.txt
WebCore/ChangeLog
WebCore/DerivedSources.cpp
WebCore/DerivedSources.make
WebCore/GNUmakefile.am
WebCore/WebCore.gypi
WebCore/WebCore.pri
WebCore/WebCore.pro
WebCore/bindings/generic/RuntimeEnabledFeatures.cpp
WebCore/bindings/generic/RuntimeEnabledFeatures.h
WebCore/bindings/js/JSEventCustom.cpp
WebCore/bindings/v8/custom/V8EventCustom.cpp
WebCore/dom/Document.cpp
WebCore/dom/Document.h
WebCore/dom/Document.idl
WebCore/dom/Element.h
WebCore/dom/Element.idl
WebCore/dom/Event.cpp
WebCore/dom/Event.h
WebCore/dom/EventNames.h
WebCore/dom/TransformActionEvent.cpp [new file with mode: 0644]
WebCore/dom/TransformActionEvent.h [new file with mode: 0644]
WebCore/dom/TransformActionEvent.idl [new file with mode: 0644]
WebCore/html/HTMLAttributeNames.in
WebCore/html/HTMLElement.cpp
WebCore/page/DOMWindow.h
WebCore/page/DOMWindow.idl