Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: af208143c8139503872785ff9385e75ad0ed5411 https://github.com/WebKit/WebKit/commit/af208143c8139503872785ff9385e75ad0ed5411 Author: Vitaly Dyachkov <vit...@igalia.com> Date: 2023-06-29 (Thu, 29 Jun 2023)
Changed paths: A Source/WebKit/Shared/API/c/wpe/WKEventWPE.cpp A Source/WebKit/Shared/API/c/wpe/WKEventWPE.h M Source/WebKit/SourcesWPE.txt A Source/WebKit/UIProcess/API/C/wpe/WKPagePrivateWPE.cpp A Source/WebKit/UIProcess/API/C/wpe/WKPagePrivateWPE.h M Tools/TestWebKitAPI/PlatformWebView.h M Tools/TestWebKitAPI/glib/TestExpectations.json M Tools/TestWebKitAPI/wpe/PlatformWebViewWPE.cpp Log Message: ----------- [WPE] Implement `PlatformWebView` key press and button clicks simulation methods https://bugs.webkit.org/show_bug.cgi?id=258665 Reviewed by Miguel Gomez. In fact, this is a copy of the Playstation port implementation with some minor changes. We are extending the `WKPage` API with a couple of functions that can handle keyboard and mouse events. These API events are then converted to `NativeWebKeyboardEvent` and `NativeWebMouseEvent` respectively and sent to `WebPageProxy' for handling. * Source/WebKit/Shared/API/c/wpe/WKEventWPE.cpp: Added. (WKKeyboardEventMake): (WKMouseEventMake): (WKWheelEventMake): * Source/WebKit/Shared/API/c/wpe/WKEventWPE.h: Added. * Source/WebKit/SourcesWPE.txt: * Source/WebKit/UIProcess/API/C/wpe/WKPagePrivateWPE.cpp: Added. (WKPageHandleKeyboardEvent): (WKPageHandleMouseEvent): * Source/WebKit/UIProcess/API/C/wpe/WKPagePrivateWPE.h: Added. * Tools/TestWebKitAPI/PlatformWebView.h: * Tools/TestWebKitAPI/glib/TestExpectations.json: * Tools/TestWebKitAPI/wpe/PlatformWebViewWPE.cpp: (TestWebKitAPI::PlatformWebView::simulateSpacebarKeyPress): (TestWebKitAPI::PlatformWebView::simulateAltKeyPress): (TestWebKitAPI::PlatformWebView::simulateRightClick): (TestWebKitAPI::PlatformWebView::simulateButtonClick): (TestWebKitAPI::PlatformWebView::simulateMouseMove): Canonical link: https://commits.webkit.org/265620@main _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes