-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[UIAsyncTextInput] Adopt new unprefixed responder action names
https://bugs.webkit.org/show_bug.cgi?id=265117 rdar://118631896 Reviewed by Megan Gardner. Adopt the following unprefixed responder action selector names: `-_addShortcut:` → `-addShortcut:` `-_define:` → `-define:` `-_promptForReplace:` → `-promptForReplace:` `-_share:` → `-share:` `-_translate:` → `-translate:` `-_transliterateChinese:` → `-transliterateChinese:` `-_findSelected:` → `-findSelected:` ...while maintaining compatibility with the legacy, underscore-prefixed versions. * Source/WebKit/Platform/spi/ios/UIKitSPI.h: * Source/WebKit/UIProcess/ios/WKContentViewInteraction.h: * Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm: (-[WKContentView _lookupForWebView:]): Since `-_lookup:` was only used as an alias for `_define:`, there's no new, unprefixed name that corresponds to this selector. Instead, we simply call through to `-defineForWebView:`. (-[WKContentView defineForWebView:]): (-[WKContentView _shareForWebView:]): (-[WKContentView shareForWebView:]): (-[WKContentView _translateForWebView:]): (-[WKContentView translateForWebView:]): (-[WKContentView _addShortcutForWebView:]): (-[WKContentView addShortcutForWebView:]): (-[WKContentView _promptForReplaceForWebView:]): (-[WKContentView promptForReplaceForWebView:]): Add the corresponding unprefixed `-actionForWebView:` methods on the content view as well, and make the legacy underscore-prefixed methods wrap these new names (while release asserting that the async text input feature flag is disabled). (-[WKContentView _transliterateChineseForWebView:]): (-[WKContentView transliterateChineseForWebView:]): (-[WKContentView canPerformActionForWebView:withSender:]): (-[WKContentView _defineForWebView:]): (-[WKContentView _findSelectedForWebView:]): (-[WKContentView findSelectedForWebView:]): Canonical link: https://commits.webkit.org/271119@main
- Loading branch information
Showing
3 changed files
with
81 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters