Click or drag to resize
CfxDialogHandler Class

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

Implement this structure to handle dialog events. The functions of this structure will be called on the browser process UI thread.
Inheritance Hierarchy

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

The CfxDialogHandler type exposes the following members.

Public methodCfxDialogHandler
Initializes a new instance of the CfxDialogHandler class
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.)
Public eventOnFileDialog
Called to run a file chooser dialog. |Mode| represents the type of dialog to display. |Title| to the title to be used for the dialog and may be NULL to show the default title ("Open" or "Save" depending on the mode). |DefaultFilePath| is the path with optional directory and/or file name component that should be initially selected in the dialog. |AcceptFilters| are used to restrict the selectable file types and may any combination of (a) valid lower-cased MIME types (e.g. "text/*" or "image/*"), (b) individual file extensions (e.g. ".txt" or ".png"), or (c) combined description and file extension delimited using "|" and ";" (e.g. "Image Types|.png;.gif;.jpg"). |SelectedAcceptFilter| is the 0-based index of the filter that should be selected by default. To display a custom dialog return true (1) and execute |Callback| either inline or at a later time. To display the default dialog return false (0).
See also the original CEF documentation in cef/include/capi/cef_dialog_handler_capi.h.
See Also