Add RenderFrameHost as parameter to WebContentsDelegate::HandleContextMenu
1472696
This commit is contained in:
parent
0bae707995
commit
66128a7152
2 changed files with 4 additions and 2 deletions
|
@ -669,7 +669,8 @@ void WebContents::RendererResponsive(
|
||||||
observer.OnRendererResponsive();
|
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) {
|
if (params.custom_context.is_pepper_menu) {
|
||||||
Emit("pepper-context-menu", std::make_pair(params, web_contents()),
|
Emit("pepper-context-menu", std::make_pair(params, web_contents()),
|
||||||
base::Bind(&content::WebContents::NotifyContextMenuClosed,
|
base::Bind(&content::WebContents::NotifyContextMenuClosed,
|
||||||
|
|
|
@ -377,7 +377,8 @@ class WebContents : public mate::TrackableObject<WebContents>,
|
||||||
void RendererResponsive(
|
void RendererResponsive(
|
||||||
content::WebContents* source,
|
content::WebContents* source,
|
||||||
content::RenderWidgetHost* render_widget_host) override;
|
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;
|
bool OnGoToEntryOffset(int offset) override;
|
||||||
void FindReply(content::WebContents* web_contents,
|
void FindReply(content::WebContents* web_contents,
|
||||||
int request_id,
|
int request_id,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue