Interface ICefContextMenuParams

Description
Hierarchy
Fields
Methods
Properties

Unit

Declaration

type ICefContextMenuParams = interface(ICefBaseRefCounted)

Description

Provides information about the context menu state. The functions of this interface can only be accessed on browser process the UI thread.

UNKNOWN

<see href="https://bitbucket.org/chromiumembedded/cef/src/master/include/capi/cef_context_menu_handler_capi.h">CEF source file: /include/capi/cef_context_menu_handler_capi.h (cef_context_menu_params_t))

Hierarchy

Overview

Methods

Public function GetXCoord: Integer;
Public function GetYCoord: Integer;
Public function GetTypeFlags: TCefContextMenuTypeFlags;
Public function GetLinkUrl: ustring;
Public function GetUnfilteredLinkUrl: ustring;
Public function GetSourceUrl: ustring;
Public function HasImageContents: Boolean;
Public function GetTitleText: ustring;
Public function GetPageUrl: ustring;
Public function GetFrameUrl: ustring;
Public function GetFrameCharset: ustring;
Public function GetMediaType: TCefContextMenuMediaType;
Public function GetMediaStateFlags: TCefContextMenuMediaStateFlags;
Public function GetSelectionText: ustring;
Public function GetMisspelledWord: ustring;
Public function GetDictionarySuggestions(const suggestions: TStringList): Boolean;
Public function IsEditable: Boolean;
Public function IsSpellCheckEnabled: Boolean;
Public function GetEditStateFlags: TCefContextMenuEditStateFlags;
Public function IsCustomMenu: Boolean;

Properties

Public property XCoord : Integer read GetXCoord;
Public property YCoord : Integer read GetYCoord;
Public property TypeFlags : TCefContextMenuTypeFlags read GetTypeFlags;
Public property LinkUrl : ustring read GetLinkUrl;
Public property UnfilteredLinkUrl : ustring read GetUnfilteredLinkUrl;
Public property SourceUrl : ustring read GetSourceUrl;
Public property TitleText : ustring read GetTitleText;
Public property PageUrl : ustring read GetPageUrl;
Public property FrameUrl : ustring read GetFrameUrl;
Public property FrameCharset : ustring read GetFrameCharset;
Public property MediaType : TCefContextMenuMediaType read GetMediaType;
Public property MediaStateFlags : TCefContextMenuMediaStateFlags read GetMediaStateFlags;
Public property SelectionText : ustring read GetSelectionText;
Public property MisspelledWord : ustring read GetMisspelledWord;
Public property EditStateFlags : TCefContextMenuEditStateFlags read GetEditStateFlags;

Description

Methods

Public function GetXCoord: Integer;

Returns the X coordinate of the mouse where the context menu was invoked. Coords are relative to the associated RenderView's origin.

Attributes
GUID['{E31BFA9E-D4E2-49B7-A05D-20018C8794EB}']
Public function GetYCoord: Integer;

Returns the Y coordinate of the mouse where the context menu was invoked. Coords are relative to the associated RenderView's origin.

Public function GetTypeFlags: TCefContextMenuTypeFlags;

Returns flags representing the type of node that the context menu was invoked on.

Public function GetLinkUrl: ustring;

Returns the URL of the link, if any, that encloses the node that the context menu was invoked on.

Public function GetUnfilteredLinkUrl: ustring;

Returns the link URL, if any, to be used ONLY for "copy link address". We don't validate this field in the frontend process.

Public function GetSourceUrl: ustring;

Returns the source URL, if any, for the element that the context menu was invoked on. Example of elements with source URLs are img, audio, and video.

Public function HasImageContents: Boolean;

Returns true (1) if the context menu was invoked on an image which has non-NULL contents.

Public function GetTitleText: ustring;

Returns the title text or the alt text if the context menu was invoked on an image.

Public function GetPageUrl: ustring;

Returns the URL of the top level page that the context menu was invoked on.

Public function GetFrameUrl: ustring;

Returns the URL of the subframe that the context menu was invoked on.

Public function GetFrameCharset: ustring;

Returns the character encoding of the subframe that the context menu was invoked on.

Public function GetMediaType: TCefContextMenuMediaType;

Returns the type of context node that the context menu was invoked on.

Public function GetMediaStateFlags: TCefContextMenuMediaStateFlags;

Returns flags representing the actions supported by the media element, if any, that the context menu was invoked on.

Public function GetSelectionText: ustring;

Returns the text of the selection, if any, that the context menu was invoked on.

Public function GetMisspelledWord: ustring;

Returns the text of the misspelled word, if any, that the context menu was invoked on.

Public function GetDictionarySuggestions(const suggestions: TStringList): Boolean;

Returns true (1) if suggestions exist, false (0) otherwise. Fills in |suggestions| from the spell check service for the misspelled word if there is one.

Public function IsEditable: Boolean;

Returns true (1) if the context menu was invoked on an editable node.

Public function IsSpellCheckEnabled: Boolean;

Returns true (1) if the context menu was invoked on an editable node where spell-check is enabled.

Public function GetEditStateFlags: TCefContextMenuEditStateFlags;

Returns flags representing the actions supported by the editable node, if any, that the context menu was invoked on.

Public function IsCustomMenu: Boolean;

Returns true (1) if the context menu contains items specified by the renderer process.

Properties

Public property XCoord : Integer read GetXCoord;

Returns the X coordinate of the mouse where the context menu was invoked. Coords are relative to the associated RenderView's origin.

Public property YCoord : Integer read GetYCoord;

Returns the Y coordinate of the mouse where the context menu was invoked. Coords are relative to the associated RenderView's origin.

Public property TypeFlags : TCefContextMenuTypeFlags read GetTypeFlags;

Returns flags representing the type of node that the context menu was invoked on.

Public property LinkUrl : ustring read GetLinkUrl;

Returns the URL of the link, if any, that encloses the node that the context menu was invoked on.

Public property UnfilteredLinkUrl : ustring read GetUnfilteredLinkUrl;

Returns the link URL, if any, to be used ONLY for "copy link address". We don't validate this field in the frontend process.

Public property SourceUrl : ustring read GetSourceUrl;

Returns the source URL, if any, for the element that the context menu was invoked on. Example of elements with source URLs are img, audio, and video.

Public property TitleText : ustring read GetTitleText;

Returns the title text or the alt text if the context menu was invoked on an image.

Public property PageUrl : ustring read GetPageUrl;

Returns the URL of the top level page that the context menu was invoked on.

Public property FrameUrl : ustring read GetFrameUrl;

Returns the URL of the subframe that the context menu was invoked on.

Public property FrameCharset : ustring read GetFrameCharset;

Returns the character encoding of the subframe that the context menu was invoked on.

Public property MediaType : TCefContextMenuMediaType read GetMediaType;

Returns the type of context node that the context menu was invoked on.

Public property MediaStateFlags : TCefContextMenuMediaStateFlags read GetMediaStateFlags;

Returns flags representing the actions supported by the media element, if any, that the context menu was invoked on.

Public property SelectionText : ustring read GetSelectionText;

Returns the text of the selection, if any, that the context menu was invoked on.

Public property MisspelledWord : ustring read GetMisspelledWord;

Returns the text of the misspelled word, if any, that the context menu was invoked on.

Public property EditStateFlags : TCefContextMenuEditStateFlags read GetEditStateFlags;

Returns flags representing the actions supported by the editable node, if any, that the context menu was invoked on.


Generated by PasDoc 0.16.0-snapshot.