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)
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

index ef901a2fafb57f9da46af4a65432a48312ad9e71..49f77271a58cb6ca853704e3d8c9f821921106b8 100644 (file)
@@ -1,3 +1,27 @@
+2015-10-27  Anders Carlsson  <andersca@apple.com>
+
+        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:
+
 2015-10-28  Anders Carlsson  <andersca@apple.com>
 
         Stop using ContextMenuItem::shareMenuItem in the UI process