Class TCustomDialogHandler

Description
Hierarchy
Fields
Methods
Properties

Unit

Declaration

type TCustomDialogHandler = class(TCefDialogHandlerOwn)

Description

This item has no description.

Hierarchy

Overview

Fields

Protected FEvents: Pointer;

Methods

Protected function OnFileDialog(const browser: ICefBrowser; mode: TCefFileDialogMode; const title: ustring; const defaultFilePath: ustring; const acceptFilters, accept_extensions, accept_descriptions: TStrings; const callback: ICefFileDialogCallback): Boolean; override;
Protected procedure RemoveReferences; override;
Public constructor Create(const events : IChromiumEvents); reintroduce; virtual;
Public destructor Destroy; override;

Description

Fields

Protected FEvents: Pointer;

This item has no description.

Methods

Protected function OnFileDialog(const browser: ICefBrowser; mode: TCefFileDialogMode; const title: ustring; const defaultFilePath: ustring; const acceptFilters, accept_extensions, accept_descriptions: TStrings; const callback: ICefFileDialogCallback): Boolean; override;

This item has no description. Showing description inherited from ICefDialogHandler.OnFileDialog.

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).

|default_file_path| is the path with optional directory and/or file name component that should be initially selected in the dialog.

|accept_filters| are used to restrict the selectable file types and may be any combination of valid lower-cased MIME types (e.g. "text/*" or "image/*") and individual file extensions (e.g. ".txt" or ".png").

|accept_extensions| provides the semicolon-delimited expansion of MIME types to file extensions (if known, or NULL string otherwise).

|accept_descriptions| provides the descriptions for MIME types (if known, or NULL string otherwise). For example, the "image/*" mime type might have extensions ".png;.jpg;.bmp;..." and description "Image Files".

|accept_filters|, |accept_extensions| and |accept_descriptions| will all be the same size. 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). If this function returns false (0) it may be called an additional time for the same dialog (both before and after MIME type expansion).

Protected procedure RemoveReferences; override;

This item has no description. Showing description inherited from ICefDialogHandler.RemoveReferences.

Custom procedure to clear all references.

Public constructor Create(const events : IChromiumEvents); reintroduce; virtual;

This item has no description.

Public destructor Destroy; override;

This item has no description.


Generated by PasDoc 0.16.0-snapshot.