Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: a6b52a527fa8c975792b3aba92e6dcf8981e8af3
https://github.com/WebKit/WebKit/commit/a6b52a527fa8c975792b3aba92e6dcf8981e8af3
Author: Phipson Lee <[email protected]>
Date: 2025-04-25 (Fri, 25 Apr 2025)
Changed paths:
M Source/WebCore/page/DragActions.h
M Source/WebCore/page/EventHandler.h
M Source/WebCore/page/ios/EventHandlerIOS.mm
M Source/WebKit/Scripts/webkit/messages.py
M Source/WebKit/WebProcess/WebPage/ios/WebPageIOS.mm
M Source/WebKitLegacy/mac/WebView/WebView.mm
Log Message:
-----------
Add Delayed State to Drag and Drop
https://bugs.webkit.org/show_bug.cgi?id=291284
rdar://149980307
Reviewed by Wenson Hsieh and Ada Chan.
Changes the return type of `tryToBeginDragAtPoint` and arg type of
`didHandleDragStartRequest` and
`didHandleAdditionalDragItemsRequest` from a bool to an enum. This is intended
to handle potential cases (in
subsequent PRs) where the web or model process needs to perform some
asynchronous actions before completing
the request. As a result, we need to add a `delayed` state to the request,
telling the UI Process that the
drag and drop start request has not been completed but has not ended or begun
yet either.
* Source/WebCore/page/DragActions.h:
* Source/WebCore/page/EventHandler.h:
* Source/WebCore/page/ios/EventHandlerIOS.mm:
(WebCore::EventHandler::tryToBeginDragAtPoint):
* Source/WebKit/Scripts/webkit/messages.py:
(headers_for_type):
* Source/WebKit/WebProcess/WebPage/ios/WebPageIOS.mm:
(WebKit::WebPage::requestDragStart):
(WebKit::WebPage::requestAdditionalItemsForDragSession):
* Source/WebKitLegacy/mac/WebView/WebView.mm:
(-[WebView _requestStartDataInteraction:globalPosition:]):
Canonical link: https://commits.webkit.org/294125@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes