Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: a23a4ecb4da553f47c7b375b4b2c58355559842d
https://github.com/WebKit/WebKit/commit/a23a4ecb4da553f47c7b375b4b2c58355559842d
Author: Abrar Rahman Protyasha <[email protected]>
Date: 2026-01-22 (Thu, 22 Jan 2026)
Changed paths:
M Source/WebKit/SourcesCocoa.txt
A Source/WebKit/UIProcess/mac/WKAppKitGestureController.h
A Source/WebKit/UIProcess/mac/WKAppKitGestureController.mm
R Source/WebKit/UIProcess/mac/WKPanGestureController.h
R Source/WebKit/UIProcess/mac/WKPanGestureController.mm
M Source/WebKit/UIProcess/mac/WebViewImpl.h
M Source/WebKit/UIProcess/mac/WebViewImpl.mm
M Source/WebKit/WebKit.xcodeproj/project.pbxproj
Log Message:
-----------
[AppKit Gestures] WKPanGestureController should accommodate other gesture
types
https://bugs.webkit.org/show_bug.cgi?id=305994
rdar://168626611
Reviewed by Aditya Keerthi.
Currently, WKPanGestureController owns and maintains a single
NSPanGestureRecognizer instance. Moving forward, we would like to adopt
more AppKit gesture recognizers, and this necessitates a unified
component responsible for setting up the recognizers, their
relationships, and implementing any relevant gesture recognizer delegate
methods.
To achieve this, we rename WKPanGestureController to
WKAppKitGestureController. This evolution reflects its upcoming role as
the controller for all AppKit gesture recognizers under WKWebView.
* Source/WebKit/SourcesCocoa.txt:
* Source/WebKit/UIProcess/mac/WKAppKitGestureController.h: Renamed from
Source/WebKit/UIProcess/mac/WKPanGestureController.h.
* Source/WebKit/UIProcess/mac/WKAppKitGestureController.mm: Renamed from
Source/WebKit/UIProcess/mac/WKPanGestureController.mm.
(translationInView):
(toWheelEventPhase):
(velocityInView):
(toRawPlatformDelta):
(-[WKAppKitGestureController configureForScrolling:]):
(-[WKAppKitGestureController initWithPage:viewImpl:]):
(-[WKAppKitGestureController enableGesturesIfNeeded]):
(-[WKAppKitGestureController enablePanGestureIfNeeded]):
(-[WKAppKitGestureController panGestureRecognized:]):
(-[WKAppKitGestureController sendWheelEventForGesture:]):
(-[WKAppKitGestureController startMomentumIfNeededForGesture:]):
(-[WKAppKitGestureController interruptMomentumIfNeeded]):
* Source/WebKit/UIProcess/mac/WebViewImpl.h:
* Source/WebKit/UIProcess/mac/WebViewImpl.mm:
(WebKit::m_flagsChangedEventMonitorTrackingArea):
(WebKit::WebViewImpl::preferencesDidChange):
* Source/WebKit/WebKit.xcodeproj/project.pbxproj:
Canonical link: https://commits.webkit.org/306026@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications