Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[WPE] Rework touch-based gesture controller
https://bugs.webkit.org/show_bug.cgi?id=226456 Patch by Zan Dobersek <zdobersek@igalia.com> on 2021-06-18 Reviewed by Alejandro G. Castro. Rename WPE's ScrollGestureController to TouchGestureController since now it also handles production of touch-based click events. TouchGestureController now internally manages all the related state, tracking the touch interaction and determining whether it progresses into a scrolling gesture or whether, upon finishing, it should be translated into a simple click event. In PageClientImpl, any unhandled event is pushed into TouchGestureController and a variant of different outcomes is returned. No-event result is ignored, and click or axis events are dispatched as appropriate. In WPEView, where the touch events arrive into the engine, we keep the shortcut where touch events are piped directly into the controller if said controller is already gesturing scrolling behavior. In that case the touch events are not dispatched into the engine, with the exception of touch-up events which are, to provide matching closure for the touch-down events. * SourcesWPE.txt: * UIProcess/API/wpe/PageClientImpl.cpp: (WebKit::PageClientImpl::doneWithTouchEvent): * UIProcess/API/wpe/TouchGestureController.cpp: Renamed from Source/WebKit/UIProcess/API/wpe/ScrollGestureController.cpp. (WebKit::TouchGestureController::handleEvent): * UIProcess/API/wpe/TouchGestureController.h: Renamed from Source/WebKit/UIProcess/API/wpe/ScrollGestureController.h. (WebKit::TouchGestureController::gesturedEvent const): * UIProcess/API/wpe/WPEView.cpp: (WKWPE::View::View): (WKWPE::m_backend): * UIProcess/API/wpe/WPEView.h: (WKWPE::View::touchGestureController const): (WKWPE::View::scrollGestureController const): Deleted. Canonical link: https://commits.webkit.org/238957@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@279037 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
commit-queue@webkit.org
committed
Jun 18, 2021
1 parent
0afd994
commit 5395db4296d98e1f34f83af192bf2001b3269034
Showing
7 changed files
with
209 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.