Stub out more of the context menu SPI
authorandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 28 Oct 2015 22:52:14 +0000 (22:52 +0000)
committerandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 28 Oct 2015 22:52:14 +0000 (22:52 +0000)
commit228ffb9c51b17c3bfd212b7562c1fb312e0c0985
treeb6acf84ab3620fb0dd02f21e9489fe46a1037186
parente532ab6dab22e97b5da70b7dbb7bec4c624d1b52
Stub out more of the context menu SPI
https://bugs.webkit.org/show_bug.cgi?id=150606

Reviewed by Dan Bernstein.

Add a delegate method that will allow the client to modify the menu. Also,
add an empty _WKContextMenuElementInfo class and its _WKElementInfo superclass.

* UIProcess/API/Cocoa/WKUIDelegatePrivate.h:
* UIProcess/API/Cocoa/_WKContextMenuElementInfo.h: Added.
* UIProcess/API/Cocoa/_WKContextMenuElementInfo.mm: Added.
* UIProcess/API/Cocoa/_WKElementInfo.h: Added.
* UIProcess/API/Cocoa/_WKElementInfo.mm: Added.
* UIProcess/Cocoa/UIDelegate.h:
* UIProcess/Cocoa/UIDelegate.mm:
(WebKit::UIDelegate::setDelegate):
(WebKit::UIDelegate::ContextMenuClient::menuFromProposedMenu):
(WebKit::UIDelegate::UIClient::createNewPage):
* UIProcess/mac/WebContextMenuProxyMac.mm:
(WebKit::WebContextMenuProxyMac::showContextMenu):
* WebKit2.xcodeproj/project.pbxproj:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@191698 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit2/ChangeLog