[webkit-changes] [WebKit/WebKit] 380571: [iOS] Support text selection and interaction using...

Wenson Hsieh noreply at github.com
Mon Nov 6 16:25:42 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 3805718abdffd5643d6513d874002e19e6d061af
      https://github.com/WebKit/WebKit/commit/3805718abdffd5643d6513d874002e19e6d061af
  Author: Wenson Hsieh <wenson_hsieh at apple.com>
  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




More information about the webkit-changes mailing list