Click or drag to resize
CfxOnOpenUrlfromTabEventArgs Class

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

Called on the UI thread before OnBeforeBrowse in certain limited cases where navigating a new or different browser might be desirable. This includes user-initiated navigation that might open in a special way (e.g. links clicked via middle-click or ctrl + left-click) and certain types of cross-origin navigation initiated from the renderer process (e.g. navigating the top-level frame to/from a file URL). The |Browser| and |Frame| values represent the source of the navigation. The |TargetDisposition| value indicates where the user intended to navigate the browser based on standard Chromium behaviors (e.g. current tab, new tab, etc). The |UserGesture| value will be true (1) if the browser navigated via explicit user gesture (e.g. clicking a link) or false (0) if it navigated automatically (e.g. via the DomContentLoaded event). Return true (1) to cancel the navigation or false (0) to allow the navigation to proceed in the source browser's top-level frame.
Inheritance Hierarchy
SystemObject
  SystemEventArgs
    ChromiumCfxEventArgs
      Chromium.EventCfxOnOpenUrlfromTabEventArgs

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

The CfxOnOpenUrlfromTabEventArgs type exposes the following members.

Properties
  NameDescription
Public propertyBrowser
Get the Browser parameter for the OnOpenUrlfromTab callback.
Public propertyFrame
Get the Frame parameter for the OnOpenUrlfromTab callback.
Public propertyTargetDisposition
Get the TargetDisposition parameter for the OnOpenUrlfromTab callback.
Public propertyTargetUrl
Get the TargetUrl parameter for the OnOpenUrlfromTab callback.
Public propertyUserGesture
Get the UserGesture parameter for the OnOpenUrlfromTab callback.
Top
Methods
  NameDescription
Public methodSetReturnValue
Set the return value for the OnOpenUrlfromTab callback. Calling SetReturnValue() more then once per callback or from different event handlers will cause an exception to be thrown.
Public methodToString (Overrides ObjectToString.)
Top
Remarks
See also the original CEF documentation in cef/include/capi/cef_request_handler_capi.h.
See Also