| Summary: | [GTK] Allow sending precise mouse wheel events in LayoutTests | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Chris Lord <clord> | ||||||
| Component: | Tools / Tests | Assignee: | Chris Lord <clord> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | berto, cdumez, cgarcia, darin, ews-watchlist, gustavo, mcatanzaro, mrobinson, sihui_liu, simon.fraser, thorton, webkit-bug-importer | ||||||
| Priority: | P2 | Keywords: | InRadar | ||||||
| Version: | WebKit Nightly Build | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Bug Depends on: | |||||||||
| Bug Blocks: | 229037 | ||||||||
| Attachments: |
|
||||||||
|
Description
Chris Lord
2021-09-21 02:55:43 PDT
Created attachment 438799 [details]
Patch
Thanks for the patch. If this patch contains new public API please make sure it follows the guidelines for new WebKit2 GTK+ API. See https://trac.webkit.org/wiki/WebKitGTK/AddingNewWebKit2API Comment on attachment 438799 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=438799&action=review > Source/WebKit/UIProcess/API/gtk/WebKitWebViewBaseInternal.h:48 > +WK_EXPORT void webkitWebViewBaseSetWheelEventsArePrecise(WebKitWebViewBase*, bool); HasPreciseDeltas > Tools/WebKitTestRunner/EventSenderProxy.h:66 > + void setMouseWheelIsPrecise(bool); I think setMouseWheelHasPreciseDeltas() would be a better name. > Tools/WebKitTestRunner/InjectedBundle/Bindings/EventSendingController.idl:41 > + undefined setMouseWheelIsPrecise(boolean isPrecise); setMouseWheelHasPreciseDeltas > Tools/WebKitTestRunner/InjectedBundle/EventSendingController.cpp:382 > + WKBundlePageForceRepaint(InjectedBundle::singleton().page()->page()); // Triggers a scrolling tree commit. This is a weird thing to do here, and could affect test behavior. > Tools/WebKitTestRunner/InjectedBundle/EventSendingController.h:61 > + void setMouseWheelIsPrecise(bool); setMouseWheelHasPreciseDeltas Created attachment 438936 [details]
Patch
(In reply to Simon Fraser (smfr) from comment #3) > Comment on attachment 438799 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=438799&action=review > > > Source/WebKit/UIProcess/API/gtk/WebKitWebViewBaseInternal.h:48 > > +WK_EXPORT void webkitWebViewBaseSetWheelEventsArePrecise(WebKitWebViewBase*, bool); > > HasPreciseDeltas > > > Tools/WebKitTestRunner/EventSenderProxy.h:66 > > + void setMouseWheelIsPrecise(bool); > > I think setMouseWheelHasPreciseDeltas() would be a better name. > > > Tools/WebKitTestRunner/InjectedBundle/Bindings/EventSendingController.idl:41 > > + undefined setMouseWheelIsPrecise(boolean isPrecise); > > setMouseWheelHasPreciseDeltas > > > Tools/WebKitTestRunner/InjectedBundle/EventSendingController.cpp:382 > > + WKBundlePageForceRepaint(InjectedBundle::singleton().page()->page()); // Triggers a scrolling tree commit. > > This is a weird thing to do here, and could affect test behavior. > > > Tools/WebKitTestRunner/InjectedBundle/EventSendingController.h:61 > > + void setMouseWheelIsPrecise(bool); > > setMouseWheelHasPreciseDeltas All sounds good, I went with the shorter setWheelHasPreciseDeltas, but don't mind changing it if you don't like that. Committed r282952 (242042@main): <https://commits.webkit.org/242042@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 438936 [details]. |