Click or drag to resize
CfxClient Class

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

Implement this structure to provide handler implementations.
Inheritance Hierarchy
SystemObject
  ChromiumCfxObject
    ChromiumCfxBase
      ChromiumCfxClientBase
        ChromiumCfxClient

Namespace: Chromium
Assembly: ChromiumFX (in ChromiumFX.dll)
Syntax
public class CfxClient : CfxClientBase

The CfxClient type exposes the following members.

Constructors
  NameDescription
Public methodCfxClient
Initializes a new instance of the CfxClient class
Top
Properties
  NameDescription
Public propertyCallbacksDisabled
When true, all CEF callback events are disabled for this handler. Incoming callbacks will return default values to CEF.
(Inherited from CfxClientBase.)
Public propertyNativePtr
Provides access to the underlying native cef struct. This is a refcounted client struct derived from cef_base_t. Add a ref in order to keep it alive when this managed object go out of scope.
(Inherited from CfxClientBase.)
Top
Methods
  NameDescription
Public methodRetrieveContextMenuHandler
Retrieves the CfxContextMenuHandler provided by the event handler attached to the GetContextMenuHandler event, if any. Returns null if no event handler is attached.
Public methodRetrieveDialogHandler
Retrieves the CfxDialogHandler provided by the event handler attached to the GetDialogHandler event, if any. Returns null if no event handler is attached.
Public methodRetrieveDisplayHandler
Retrieves the CfxDisplayHandler provided by the event handler attached to the GetDisplayHandler event, if any. Returns null if no event handler is attached.
Public methodRetrieveDownloadHandler
Retrieves the CfxDownloadHandler provided by the event handler attached to the GetDownloadHandler event, if any. Returns null if no event handler is attached.
Public methodRetrieveDragHandler
Retrieves the CfxDragHandler provided by the event handler attached to the GetDragHandler event, if any. Returns null if no event handler is attached.
Public methodRetrieveFindHandler
Retrieves the CfxFindHandler provided by the event handler attached to the GetFindHandler event, if any. Returns null if no event handler is attached.
Public methodRetrieveFocusHandler
Retrieves the CfxFocusHandler provided by the event handler attached to the GetFocusHandler event, if any. Returns null if no event handler is attached.
Public methodRetrieveGeolocationHandler
Retrieves the CfxGeolocationHandler provided by the event handler attached to the GetGeolocationHandler event, if any. Returns null if no event handler is attached.
Public methodRetrieveJsDialogHandler
Retrieves the CfxJsDialogHandler provided by the event handler attached to the GetJsDialogHandler event, if any. Returns null if no event handler is attached.
Public methodRetrieveKeyboardHandler
Retrieves the CfxKeyboardHandler provided by the event handler attached to the GetKeyboardHandler event, if any. Returns null if no event handler is attached.
Public methodRetrieveLifeSpanHandler
Retrieves the CfxLifeSpanHandler provided by the event handler attached to the GetLifeSpanHandler event, if any. Returns null if no event handler is attached.
Public methodRetrieveLoadHandler
Retrieves the CfxLoadHandler provided by the event handler attached to the GetLoadHandler event, if any. Returns null if no event handler is attached.
Public methodRetrieveRenderHandler
Retrieves the CfxRenderHandler provided by the event handler attached to the GetRenderHandler event, if any. Returns null if no event handler is attached.
Public methodRetrieveRequestHandler
Retrieves the CfxRequestHandler provided by the event handler attached to the GetRequestHandler event, if any. Returns null if no event handler is attached.
Top
Events
  NameDescription
Public eventGetContextMenuHandler
Return the handler for context menus. If no handler is provided the default implementation will be used.
Public eventGetDialogHandler
Return the handler for dialogs. If no handler is provided the default implementation will be used.
Public eventGetDisplayHandler
Return the handler for browser display state events.
Public eventGetDownloadHandler
Return the handler for download events. If no handler is returned downloads will not be allowed.
Public eventGetDragHandler
Return the handler for drag events.
Public eventGetFindHandler
Return the handler for find result events.
Public eventGetFocusHandler
Return the handler for focus events.
Public eventGetGeolocationHandler
Return the handler for geolocation permissions requests. If no handler is provided geolocation access will be denied by default.
Public eventGetJsDialogHandler
Return the handler for JavaScript dialogs. If no handler is provided the default implementation will be used.
Public eventGetKeyboardHandler
Return the handler for keyboard events.
Public eventGetLifeSpanHandler
Return the handler for browser life span events.
Public eventGetLoadHandler
Return the handler for browser load status events.
Public eventGetRenderHandler
Return the handler for off-screen rendering events.
Public eventGetRequestHandler
Return the handler for browser request events.
Public eventOnProcessMessageReceived
Called when a new message is received from a different process. Return true (1) if the message was handled or false (0) otherwise. Do not keep a reference to or attempt to access the message outside of this callback.
Top
Remarks
See also the original CEF documentation in cef/include/capi/cef_client_capi.h.
See Also