Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
More of <rdar://problem/8613727> and https://bugs.webkit.org/show_bug…
….cgi?id=50042 WK2 Context Menu Items need a user data object and a client callback for selection. Reviewed by Dan Bernstein. * Shared/API/c/WKContextMenuItem.cpp: (WKContextMenuItemGetUserData): (WKContextMenuItemSetUserData): * Shared/API/c/WKContextMenuItem.h: * Shared/WebContextMenuItem.cpp: (WebKit::WebContextMenuItem::userData): (WebKit::WebContextMenuItem::setUserData): * Shared/WebContextMenuItem.h: * Shared/WebContextMenuItemData.cpp: (WebKit::WebContextMenuItemData::userData): (WebKit::WebContextMenuItemData::setUserData): * Shared/WebContextMenuItemData.h: * UIProcess/API/C/WKPage.h: * UIProcess/WebPageContextMenuClient.cpp: (WebKit::WebPageContextMenuClient::customContextMenuItemSelected): Added for WK2 apps to get a callback. * UIProcess/WebPageContextMenuClient.h: * UIProcess/WebPageProxy.cpp: (WebKit::WebPageProxy::contextMenuItemSelected): * UIProcess/mac/WebContextMenuProxyMac.mm: (-[WebUserDataWrapper initWithUserData:WebKit::]): Add an "APIObject" user data wrapper class to associate with the NSMenuItem. (-[WebUserDataWrapper WebKit::]): (-[WebMenuTarget forwardContextMenuAction:]): Include the user data object in the created ContextMenuItemData. (WebKit::nsMenuItemVector): Canonical link: https://commits.webkit.org/63167@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@72707 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
with
131 additions
and 0 deletions.
- +36 −0 WebKit2/ChangeLog
- +10 −0 WebKit2/Shared/API/c/WKContextMenuItem.cpp
- +3 −0 WebKit2/Shared/API/c/WKContextMenuItem.h
- +10 −0 WebKit2/Shared/WebContextMenuItem.cpp
- +3 −0 WebKit2/Shared/WebContextMenuItem.h
- +11 −0 WebKit2/Shared/WebContextMenuItemData.cpp
- +6 −0 WebKit2/Shared/WebContextMenuItemData.h
- +2 −0 WebKit2/UIProcess/API/C/WKPage.h
- +9 −0 WebKit2/UIProcess/WebPageContextMenuClient.cpp
- +1 −0 WebKit2/UIProcess/WebPageContextMenuClient.h
- +6 −0 WebKit2/UIProcess/WebPageProxy.cpp
- +34 −0 WebKit2/UIProcess/mac/WebContextMenuProxyMac.mm
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
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
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
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