signal callback delegate or function to connect
bool callback(webkitwebprocessextension.context_menu.ContextMenu contextMenu, webkitwebprocessextension.web_hit_test_result.WebHitTestResult hitTestResult, webkitwebprocessextension.web_page.WebPage webPage)
contextMenu the proposed #WebKitContextMenu (optional)
hitTestResult a #WebKitWebHitTestResult (optional)
webPage the instance the signal is connected to (optional)
Returns true if the proposed context_menu has been modified, or false otherwise.
Yes.After to execute callback after default handler, No.After to execute before (default)
Signal ID
Connect to ContextMenu signal.
Emitted before a context menu is displayed in the UI Process to give the application a chance to customize the proposed menu, build its own context menu or pass user data to the UI Process. This signal is useful when the information available in the UI Process is not enough to build or customize the context menu, for example, to add menu entries depending on the node at the coordinates of the hit_test_result. Otherwise, it's recommended to use #WebKitWebView::context-menu signal instead.