Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 3805718abdffd5643d6513d874002e19e6d061af
      
https://github.com/WebKit/WebKit/commit/3805718abdffd5643d6513d874002e19e6d061af
  Author: Wenson Hsieh <[email protected]>
  Date:   2023-11-06 (Mon, 06 Nov 2023)

  Changed paths:
    M Source/WebKit/Platform/spi/ios/UIKitSPI.h
    M Source/WebKit/UIProcess/ios/WKTextInteractionWrapper.mm

  Log Message:
  -----------
  [iOS] Support text selection and interaction using UIAsyncTextInteraction
https://bugs.webkit.org/show_bug.cgi?id=264094
rdar://117857833

Reviewed by Aditya Keerthi.

Implement the remaining set of methods on `WKTextInteractionWrapper`, in the 
case where the wrapper
is backed by `UIAsyncTextInteraction`. This enables basic text interactions 
(such as multi-tap,
range adjustment, and tap-and-half gestures), as well as context menu 
interactions for links and
images in the page, and finally the ability to temporarily suppress the text 
selection when we're
either inside of a hidden editable container, or while the selection is inside 
of a scrolling
overflow container.

Depends on the changes in rdar://117831560 as well.

* Source/WebKit/Platform/spi/ios/UIKitSPI.h:
* Source/WebKit/UIProcess/ios/WKTextInteractionWrapper.mm:
(-[WKTextInteractionWrapper activateSelection]):
(-[WKTextInteractionWrapper deactivateSelection]):
(-[WKTextInteractionWrapper selectionChanged]):
(-[WKTextInteractionWrapper setGestureRecognizers]):
(-[WKTextInteractionWrapper willStartScrollingOverflow]):
(-[WKTextInteractionWrapper didEndScrollingOverflow]):
(-[WKTextInteractionWrapper willStartScrollingOrZooming]):
(-[WKTextInteractionWrapper didEndScrollingOrZooming]):
(-[WKTextInteractionWrapper contextMenuInteraction]):
(-[WKTextInteractionWrapper setExternalContextMenuInteractionDelegate:]):

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


_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to