Click or drag to resize
CfxOnBeforeBrowseEventArgs Class

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

Called on the UI thread before browser navigation. Return true (1) to cancel the navigation or false (0) to allow the navigation to proceed. The |Request| object cannot be modified in this callback. CfxLoadHandler.OnLoadingStateChange will be called twice in all cases. If the navigation is allowed CfxLoadHandler.OnLoadStart and CfxLoadHandler.OnLoadEnd will be called. If the navigation is canceled CfxLoadHandler.OnLoadError will be called with an |ErrorCode| value of ERR_ABORTED.
Inheritance Hierarchy

Namespace: Chromium.Event
Assembly: ChromiumFX (in ChromiumFX.dll)
public class CfxOnBeforeBrowseEventArgs : CfxEventArgs

The CfxOnBeforeBrowseEventArgs type exposes the following members.

Public propertyBrowser
Get the Browser parameter for the OnBeforeBrowse callback.
Public propertyFrame
Get the Frame parameter for the OnBeforeBrowse callback.
Public propertyIsRedirect
Get the IsRedirect parameter for the OnBeforeBrowse callback.
Public propertyRequest
Get the Request parameter for the OnBeforeBrowse callback.
Public methodSetReturnValue
Set the return value for the OnBeforeBrowse callback. Calling SetReturnValue() more then once per callback or from different event handlers will cause an exception to be thrown.
See also the original CEF documentation in cef/include/capi/cef_request_handler_capi.h.
See Also