Click or drag to resize
CfxOnBeforePopupEventHandler Delegate

[This is preliminary documentation and is subject to change.]

Called on the IO thread before a new popup browser is created. The |Browser| and |Frame| values represent the source of the popup request. The |TargetUrl| and |TargetFrameName| values indicate where the popup browser should navigate and may be NULL if not specified with the request. The |TargetDisposition| value indicates where the user intended to open the popup (e.g. current tab, new tab, etc). The |UserGesture| value will be true (1) if the popup was opened via explicit user gesture (e.g. clicking a link) or false (0) if the popup opened automatically (e.g. via the DomContentLoaded event). The |PopupFeatures| structure contains additional information about the requested popup window. To allow creation of the popup browser optionally modify |WindowInfo|, |Client|, |Settings| and |NoJavascriptAccess| and return false (0). To cancel creation of the popup browser return true (1). The |Client| and |Settings| values will default to the source browser's values. If the |NoJavascriptAccess| value is set to false (0) the new browser will not be scriptable and may not be hosted in the same renderer process as the source browser. Any modifications to |WindowInfo| will be ignored if the parent browser is wrapped in a CfxBrowserView.

Namespace: Chromium.Event
Assembly: ChromiumFX (in ChromiumFX.dll)
public delegate void CfxOnBeforePopupEventHandler(
	Object sender,
	CfxOnBeforePopupEventArgs e


Type: SystemObject
Type: Chromium.EventCfxOnBeforePopupEventArgs
See also the original CEF documentation in cef/include/capi/cef_life_span_handler_capi.h.
See Also