mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
document menu closed event and fix styling issue
This commit is contained in:
committed by
Cheng Zhao
parent
c586806609
commit
bcef6eb3df
@@ -653,10 +653,9 @@ void WebContents::RendererResponsive(content::WebContents* source) {
|
||||
|
||||
bool WebContents::HandleContextMenu(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,
|
||||
base::Unretained(web_contents()), params.custom_context));
|
||||
Emit("pepper-context-menu", std::make_pair(params, web_contents()),
|
||||
base::Bind(&content::WebContents::NotifyContextMenuClosed,
|
||||
base::Unretained(web_contents()), params.custom_context));
|
||||
} else {
|
||||
Emit("context-menu", std::make_pair(params, web_contents()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user