Add RenderFrameHost as parameter to WebContentsDelegate::HandleContextMenu

1472696
This commit is contained in:
deepak1556 2019-02-27 13:19:59 +05:30 committed by Samuel Attard
parent 0bae707995
commit 66128a7152
2 changed files with 4 additions and 2 deletions

View file

@ -669,7 +669,8 @@ void WebContents::RendererResponsive(
observer.OnRendererResponsive();
}
bool WebContents::HandleContextMenu(const content::ContextMenuParams& params) {
bool WebContents::HandleContextMenu(content::RenderFrameHost* render_frame_host,
const content::ContextMenuParams& params) {
if (params.custom_context.is_pepper_menu) {
Emit("pepper-context-menu", std::make_pair(params, web_contents()),
base::Bind(&content::WebContents::NotifyContextMenuClosed,