[webkit-changes] [WebKit/WebKit] 423bb8: Adopt new drag and context menu interaction classe...

Wenson Hsieh noreply at github.com
Sat Dec 9 10:52:00 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 423bb847e3d8c73a62ee314f81a9d30fa6a20da9
      https://github.com/WebKit/WebKit/commit/423bb847e3d8c73a62ee314f81a9d30fa6a20da9
  Author: Wenson Hsieh <wenson_hsieh at apple.com>
  Date:   2023-12-09 (Sat, 09 Dec 2023)

  Changed paths:
    M Source/WebKit/UIProcess/ios/WKContentViewInteraction.h
    M Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm

  Log Message:
  -----------
  Adopt new drag and context menu interaction classes from ServiceExtensions
https://bugs.webkit.org/show_bug.cgi?id=266077
rdar://119380896

Reviewed by Megan Gardner.

Replace the following with classes from ServiceExtensions, if available, and use WKSE-prefixed type
defines to stage adoption:

```
_UIContextMenuAsyncConfiguration    →   WKSEContextMenuConfiguration
_UIAsyncDragInteraction             →   WKSEDragInteraction
_UIAsyncDragInteractionDelegate     →   WKSEDragInteractionDelegate
```

Additionally, remove several soft-linked symbols from UIKit, which were only necessary for staging.
These symbols have existed in their targeted SDKs for a while now, so we can now explicitly link
against them.

* Source/WebKit/UIProcess/ios/WKContentViewInteraction.h:
* Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm:
(-[WKContentView _shouldUseUIContextMenuAsyncConfiguration]):
(-[WKContentView _deferKeyEventToInputMethodEditing:]):
(-[WKContentView _interpretKeyEvent:isCharEvent:]):
(-[WKContentView _dragInteractionClass]):
(-[WKContentView setUpDragAndDropInteractions]):
(-[WKContentView dragInteraction:prepareDragSession:completion:]):
(-[WKContentView dragInteraction:itemsForAddingToSession:forTouchAtPoint:completion:]):
(-[WKContentView _asyncDragInteraction:prepareDragSession:completion:]):
(-[WKContentView _asyncDragInteraction:itemsForAddingToSession:withTouchAtPoint:completion:]):
(-[WKContentView contextMenuInteraction:configurationForMenuAtLocation:]):

Canonical link: https://commits.webkit.org/271809@main




More information about the webkit-changes mailing list