Simplify context menu handling on Windows
authorandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 21 Oct 2015 23:54:32 +0000 (23:54 +0000)
committerandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 21 Oct 2015 23:54:32 +0000 (23:54 +0000)
commit81bc842742a6c7b1a03eee451ec34f9efdec8f07
treea1133682f019412c40ca5b485ec5ee68b078a31d
parent6a75fa71b18e8cae826ebfcda5ff3a246c323523
Simplify context menu handling on Windows
https://bugs.webkit.org/show_bug.cgi?id=150423

Reviewed by Tim Horton.

Instead of converting a ContextMenu to a HMENU, then back to a ContextMenu, and then back to a HMENU again
just convert it once right before showing it and let the UIDelegate return a new menu at at time where we don't
have to convert it back.

* WebCoreSupport/WebContextMenuClient.cpp:
(WebContextMenuClient::customizeMenu):
* WebView.cpp:
(WebView::createContextMenu):
(WebView::handleContextMenuEvent):
* WebView.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@191413 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit/win/ChangeLog
Source/WebKit/win/WebCoreSupport/WebContextMenuClient.cpp
Source/WebKit/win/WebView.cpp
Source/WebKit/win/WebView.h