[webkit-changes] [WebKit/WebKit] c68d90: [tvOS] Enable context menu interactions
Aditya Keerthi
noreply at github.com
Sun Jun 2 22:53:35 PDT 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: c68d90d36bff2ea11118181b9d6a4caf0a74f4f9
https://github.com/WebKit/WebKit/commit/c68d90d36bff2ea11118181b9d6a4caf0a74f4f9
Author: Aditya Keerthi <akeerthi at apple.com>
Date: 2024-06-02 (Sun, 02 Jun 2024)
Changed paths:
M Source/WTF/wtf/PlatformUse.h
M Source/WebKit/Platform/spi/ios/UIKitSPI.h
M Source/WebKit/UIProcess/API/Cocoa/_WKElementAction.mm
M Source/WebKit/UIProcess/ios/WKContentViewInteraction.h
M Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm
Log Message:
-----------
[tvOS] Enable context menu interactions
https://bugs.webkit.org/show_bug.cgi?id=274982
rdar://128564046
Reviewed by Richard Robinson.
Enable `USE(UICONTEXTMENU)` on tvOS as platform support exists.
Decouple `USE(UICONTEXTMENU)` from `HAVE(LINK_PREVIEW)` and
`ENABLE(DATA_DETECTION)`. Context menus are used to support those features, but
can also be used for other things.
* Source/WTF/wtf/PlatformUse.h:
* Source/WebKit/Platform/spi/ios/UIKitSPI.h:
* Source/WebKit/UIProcess/API/Cocoa/_WKElementAction.mm:
(+[_WKElementAction imageForElementActionType:]):
(elementActionTypeToUIActionIdentifier):
(uiActionIdentifierToElementActionType):
* Source/WebKit/UIProcess/ios/WKContentViewInteraction.h:
* Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm:
(-[WKContentView _shouldUseContextMenus]):
(-[WKContentView positionInformationHasImageOverlayDataDetector]):
(-[WKContentView _createTargetedContextMenuHintPreviewIfPossible]):
Canonical link: https://commits.webkit.org/279636@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list