2010-07-22 Kim Grönholm <kim.1.gronholm@nokia.com> master
authorKim Grönholm <kim.1.gronholm@nokia.com>
Thu, 22 Jul 2010 22:09:26 +0000 (01:09 +0300)
committerKim Grönholm <kimpura@kimpura-desktop.(none)>
Thu, 22 Jul 2010 22:10:32 +0000 (01:10 +0300)
commit4f3f980e0274338e2c7301766a1a136bce9ff29c
tree2925d7f3c6e8974d6eaa9cf6748b0150d26e05a5
parent53a49702d6d79e36e43109ccab3a8304ba82947f
2010-07-22  Kim Grönholm  <kim.1.gronholm@nokia.com>

        Reviewed by NOBODY (OOPS!).

        Generate TransformAction events from touch gestures
        https://bugs.webkit.org/show_bug.cgi?id=39979

        Enabling transformaction events to be generated from multi-touch
        gestures by adding gesture handling machinery and eventhandler hooks.

        Test: fast/events/transformaction/basic-transformaction-events.html
        Tests basic single- and multi-touch sequences and the corresponding
        TransformAction events that are generated.

        A manual test can be found from:
        https://bug-39757-attachments.webkit.org/attachment.cgi?id=57226

        * WebCore.pro:
        * page/EventHandler.cpp:
        (WebCore::hasTransformActionEventListener):
        (WebCore::EventHandler::handleTouchEvent):
        * page/EventHandler.h:
        * page/TouchGestureHandler.cpp: Added.
        (WebCore::TouchGestureHandler::TouchGestureHandler):
        (WebCore::TouchGestureHandler::updateRefreshNeededState):
        (WebCore::TouchGestureHandler::updateTouchPoints):
        (WebCore::TouchGestureHandler::reset):
        (WebCore::TouchGestureHandler::calcAngle):
        (WebCore::TouchGestureHandler::diffAngle):
        (WebCore::TouchGestureHandler::calcPos):
        (WebCore::TouchGestureHandler::calcDistance):
        * page/TouchGestureHandler.h: Added.
        (WebCore::TouchGestureHandler::translateX):
        (WebCore::TouchGestureHandler::translateY):
        (WebCore::TouchGestureHandler::pos):
        (WebCore::TouchGestureHandler::screenPos):
        (WebCore::TouchGestureHandler::scale):
        (WebCore::TouchGestureHandler::rotate):
LayoutTests/ChangeLog
LayoutTests/fast/events/transformaction/basic-transformaction-events-expected.txt [new file with mode: 0644]
LayoutTests/fast/events/transformaction/basic-transformaction-events.html [new file with mode: 0644]
LayoutTests/fast/events/transformaction/resources/basic-transformaction-events.js [new file with mode: 0644]
WebCore/ChangeLog
WebCore/WebCore.pro
WebCore/page/EventHandler.cpp
WebCore/page/EventHandler.h
WebCore/page/TouchGestureHandler.cpp [new file with mode: 0644]
WebCore/page/TouchGestureHandler.h [new file with mode: 0644]