Add RenderFrameHost as parameter to WebContentsDelegate::HandleContextMenu

https://chromium-review.googlesource.com/c/chromium/src/+/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,

View file

@ -377,7 +377,8 @@ class WebContents : public mate::TrackableObject<WebContents>,
void RendererResponsive(
content::WebContents* source,
content::RenderWidgetHost* render_widget_host) override;
bool HandleContextMenu(const content::ContextMenuParams& params) override;
bool HandleContextMenu(content::RenderFrameHost* render_frame_host,
const content::ContextMenuParams& params) override;
bool OnGoToEntryOffset(int offset) override;
void FindReply(content::WebContents* web_contents,
int request_id,