Add identifier strings for a bunch of context menu items
authorandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 13 Nov 2015 23:37:39 +0000 (23:37 +0000)
committerandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 13 Nov 2015 23:37:39 +0000 (23:37 +0000)
commit9ce3e05fda071f2bc4485df4c8ab0af3329afbd3
treebaa7d6b609f95212e803569b4413f91ce97ec5fe
parentc6d4f4e4d9faf0753e8f1040b3f5366c366c32a9
Add identifier strings for a bunch of context menu items
https://bugs.webkit.org/show_bug.cgi?id=151272

Reviewed by Dan Bernstein.

Source/WebCore:

Have NSMenuItem conform to NSUserInterfaceItemIdentification.

* platform/spi/mac/NSMenuSPI.h:

Source/WebKit2:

* UIProcess/API/Cocoa/WKMenuItemIdentifiers.mm: Added.
* UIProcess/API/Cocoa/WKMenuItemIdentifiersPrivate.h: Added.
* UIProcess/mac/WebContextMenuProxyMac.mm:
(WebKit::menuItemIdentifier):
(WebKit::WebContextMenuProxyMac::createShareMenuItem):
(WebKit::WebContextMenuProxyMac::createContextMenuItem):
* WebKit2.xcodeproj/project.pbxproj:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@192445 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/platform/spi/mac/NSMenuSPI.h
Source/WebKit2/ChangeLog
Source/WebKit2/UIProcess/API/Cocoa/WKMenuItemIdentifiers.mm [new file with mode: 0644]
Source/WebKit2/UIProcess/API/Cocoa/WKMenuItemIdentifiersPrivate.h [new file with mode: 0644]
Source/WebKit2/UIProcess/mac/WebContextMenuProxyMac.mm
Source/WebKit2/WebKit2.xcodeproj/project.pbxproj