[webkit-changes] [WebKit/WebKit] 757525: Implement several new `UIAsyncTextInput` / `UIAsyn...
Wenson Hsieh
noreply at github.com
Tue Nov 14 20:17:21 PST 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 7575255c4d4d29755ed87522053153c46f7b456c
https://github.com/WebKit/WebKit/commit/7575255c4d4d29755ed87522053153c46f7b456c
Author: Wenson Hsieh <wenson_hsieh at apple.com>
Date: 2023-11-14 (Tue, 14 Nov 2023)
Changed paths:
M Source/WebKit/Platform/spi/ios/UIKitSPI.h
M Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm
Log Message:
-----------
Implement several new `UIAsyncTextInput` / `UIAsyncTextInputClient` APIs
https://bugs.webkit.org/show_bug.cgi?id=264753
rdar://118393726
Reviewed by Megan Gardner.
Implement these four methods on `UIAsyncTextInput` and `UIAsyncTextInputClient`:
```
- (void)adjustSelection:(UIDirectionalTextRange)range completionHandler:(void (^)(void))completionHandler;
- (BOOL)selectionAtDocumentStart;
- (void)transposeCharacters;
- (BOOL)shouldSuppressEditMenu;
```
...and refactor their existing private and internal UITextInput counterparts to call into
these new methods.
* Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm:
(-[WKContentView _selectionClipRect]):
(-[WKContentView canPerformAction:withSender:]):
(-[WKContentView _selectionAtDocumentStart]):
(-[WKContentView _transpose]):
(-[WKContentView _shouldSuppressSelectionCommands]):
(-[WKContentView _internalAdjustSelectionWithOffset:lengthDelta:completionHandler:]):
(-[WKContentView adjustSelectionWithDelta:completionHandler:]):
(-[WKContentView adjustSelection:completionHandler:]):
(-[WKContentView selectionClipRect]):
(-[WKContentView transposeCharacters]):
(-[WKContentView selectionAtDocumentStart]):
(-[WKContentView shouldSuppressEditMenu]):
(-[WKContentView _selectionClipRectInternal]): Deleted.
Canonical link: https://commits.webkit.org/270746@main
More information about the webkit-changes
mailing list