Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: 0af20f269c8d2afd0298c7200ae15b25124a3065 https://github.com/WebKit/WebKit/commit/0af20f269c8d2afd0298c7200ae15b25124a3065 Author: Richard Robinson <richard_robins...@apple.com> Date: 2024-06-18 (Tue, 18 Jun 2024)
Changed paths: M Source/WebCore/PAL/pal/spi/cocoa/WritingToolsSPI.h M Source/WebKit/SourcesCocoa.txt M Source/WebKit/UIProcess/API/Cocoa/WKWebView.mm M Source/WebKit/UIProcess/API/Cocoa/WKWebViewConfiguration.mm M Source/WebKit/UIProcess/API/Cocoa/WKWebViewConfigurationPrivate.h M Source/WebKit/UIProcess/API/Cocoa/WKWebViewInternal.h M Source/WebKit/UIProcess/API/mac/WKWebViewMac.mm A Source/WebKit/UIProcess/Cocoa/PlatformWritingToolsUtilities.h A Source/WebKit/UIProcess/Cocoa/PlatformWritingToolsUtilities.mm M Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm M Source/WebKit/UIProcess/mac/WebViewImpl.mm M Source/WebKit/WebKit.xcodeproj/project.pbxproj M Tools/TestWebKitAPI/Tests/WebKitCocoa/UnifiedTextReplacement.mm Log Message: ----------- [Writing Tools] Refactor Writing Tools type conversion methods to be in their own file https://bugs.webkit.org/show_bug.cgi?id=275599 rdar://130054970 Reviewed by Aditya Keerthi. * Source/WebKit/SourcesCocoa.txt: * Source/WebKit/UIProcess/API/Cocoa/WKWebView.mm: (-[WKWebView wantsWritingToolsInlineEditing]): (-[WKWebView willBeginWritingToolsSession:requestContexts:]): (-[WKWebView didBeginWritingToolsSession:contexts:]): (-[WKWebView proofreadingSession:didReceiveSuggestions:processedRange:inContext:finished:]): (-[WKWebView proofreadingSession:didUpdateState:forSuggestionWithUUID:inContext:]): (-[WKWebView didEndWritingToolsSession:accepted:]): (-[WKWebView compositionSession:didReceiveText:replacementRange:inContext:finished:]): (-[WKWebView writingToolsSession:didReceiveAction:]): (-[WKWebView _textReplacementSession:updateState:forReplacementWithUUID:]): (convert): Deleted. (-[WKWebView _wantsCompleteUnifiedTextReplacementBehavior]): Deleted. * Source/WebKit/UIProcess/API/Cocoa/WKWebViewConfiguration.mm: (-[WKWebViewConfiguration setWritingToolsBehavior:]): (-[WKWebViewConfiguration writingToolsBehavior]): (convertToPlatform): Deleted. (convertToWeb): Deleted. (-[WKWebViewConfiguration _setUnifiedTextReplacementBehavior:]): Deleted. (-[WKWebViewConfiguration _unifiedTextReplacementBehavior]): Deleted. (convert): Deleted. * Source/WebKit/UIProcess/API/Cocoa/WKWebViewConfigurationPrivate.h: * Source/WebKit/UIProcess/API/Cocoa/WKWebViewInternal.h: * Source/WebKit/UIProcess/API/mac/WKWebViewMac.mm: (-[WKWebView _web_wantsCompleteUnifiedTextReplacementBehavior]): * Source/WebKit/UIProcess/Cocoa/PlatformWritingToolsUtilities.h: Added. * Source/WebKit/UIProcess/Cocoa/PlatformWritingToolsUtilities.mm: Added. (WebKit::convertToPlatformWritingToolsBehavior): (WebKit::convertToPlatformTextSuggestionState): (WebKit::convertToPlatformContext): (WebKit::convertToWebWritingToolsBehavior): (WebKit::convertToWebTextSuggestionState): (WebKit::convertToWebAction): (WebKit::convertToWebSessionType): (WebKit::convertToWebCompositionSessionType): (WebKit::convertToWebContext): (WebKit::convertToWebSession): (WebKit::convertToWebTextSuggestion): * Source/WebKit/UIProcess/mac/WebViewImpl.mm: (WebKit::WebViewImpl::selectionDidChange): (WebKit::WebViewImpl::canHandleSwapCharacters const): (WebKit::WebViewImpl::handleContextMenuSwapCharacters): (WebKit::showSwapCharactersViewRelativeToRectOfView): Deleted. (WebKit::scheduleShowSwapCharactersViewForSelectionRectOfView): Deleted. (WebKit::webViewCanHandleSwapCharacters): Deleted. * Source/WebKit/WebKit.xcodeproj/project.pbxproj: Canonical link: https://commits.webkit.org/280134@main To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes