[EFL][WK2] Implement pan and flick gesture.
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 16 Sep 2013 12:51:40 +0000 (12:51 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 16 Sep 2013 12:51:40 +0000 (12:51 +0000)
commit43003743040d15a77b770d9929187b5f8bf209d9
treeb30bff270287878e3b0752cb48e6dfb4e2358feb
parentfc45f9d421bb50a59490065aa31336b0cd3ed208
[EFL][WK2] Implement pan and flick gesture.
https://bugs.webkit.org/show_bug.cgi?id=107101

Patch by Eunmi Lee <eunmi15.lee@samsung.com> on 2013-09-16
Reviewed by Gyuyoung Kim.

Implement pan gesture to scroll page by movement of point and stop
scrolling smoothly using ease-in-out-quad algorithm after touched
point is removed from the screen.

Use Ecore_Animator in order to process movement once per each framing
time slot instead of processing all movement.

* PlatformEfl.cmake:
* UIProcess/API/efl/EwkView.cpp:
(EwkView::scrollBy):
* UIProcess/API/efl/EwkView.h:
* UIProcess/API/efl/GestureRecognizer.cpp:
(WebKit::GestureHandler::view):
(WebKit::GestureHandler::GestureHandler):
(WebKit::GestureHandler::~GestureHandler):
(WebKit::GestureHandler::reset):
(WebKit::GestureHandler::panAnimatorCallback):
(WebKit::GestureHandler::handlePanStarted):
(WebKit::GestureHandler::handlePan):
(WebKit::GestureHandler::handlePanFinished):
(WebKit::GestureHandler::flickAnimatorCallback):
(WebKit::GestureHandler::handleFlick):
(WebKit::GestureRecognizer::noGesture):
(WebKit::GestureRecognizer::reset):
* UIProcess/efl/EasingCurves.cpp: Added.
(WebKit::easeInOutQuad):
* UIProcess/efl/EasingCurves.h: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@155852 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit2/ChangeLog
Source/WebKit2/PlatformEfl.cmake
Source/WebKit2/UIProcess/API/efl/EwkView.cpp
Source/WebKit2/UIProcess/API/efl/EwkView.h
Source/WebKit2/UIProcess/API/efl/GestureRecognizer.cpp
Source/WebKit2/UIProcess/efl/EasingCurves.cpp [new file with mode: 0644]
Source/WebKit2/UIProcess/efl/EasingCurves.h [new file with mode: 0644]