The OpenD Programming Language

cef_context_menu_params_t

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

version(cef && embedded_cef_bindings)
extern (C)
struct cef_context_menu_params_t {}

Members

Variables

base
cef_base_ref_counted_t base;

Base structure.

get_dictionary_suggestions
int function(cef_context_menu_params_t* self, cef_string_list_t suggestions) nothrow get_dictionary_suggestions;

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.

get_edit_state_flags
cef_context_menu_edit_state_flags_t function(cef_context_menu_params_t* self) nothrow get_edit_state_flags;

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

get_frame_charset
cef_string_userfree_t function(cef_context_menu_params_t* self) nothrow get_frame_charset;

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

get_frame_url
cef_string_userfree_t function(cef_context_menu_params_t* self) nothrow get_frame_url;

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

get_link_url
cef_string_userfree_t function(cef_context_menu_params_t* self) nothrow get_link_url;

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

get_media_state_flags
cef_context_menu_media_state_flags_t function(cef_context_menu_params_t* self) nothrow get_media_state_flags;

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

get_media_type
cef_context_menu_media_type_t function(cef_context_menu_params_t* self) nothrow get_media_type;

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

get_misspelled_word
cef_string_userfree_t function(cef_context_menu_params_t* self) nothrow get_misspelled_word;

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

get_page_url
cef_string_userfree_t function(cef_context_menu_params_t* self) nothrow get_page_url;

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

get_selection_text
cef_string_userfree_t function(cef_context_menu_params_t* self) nothrow get_selection_text;

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

get_source_url
cef_string_userfree_t function(cef_context_menu_params_t* self) nothrow get_source_url;

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.

get_title_text
cef_string_userfree_t function(cef_context_menu_params_t* self) nothrow get_title_text;

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

get_type_flags
cef_context_menu_type_flags_t function(cef_context_menu_params_t* self) nothrow get_type_flags;

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

get_unfiltered_link_url
cef_string_userfree_t function(cef_context_menu_params_t* self) nothrow get_unfiltered_link_url;

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

get_xcoord
int function(cef_context_menu_params_t* self) nothrow get_xcoord;

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

get_ycoord
int function(cef_context_menu_params_t* self) nothrow get_ycoord;

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

has_image_contents
int function(cef_context_menu_params_t* self) nothrow has_image_contents;

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

is_custom_menu
int function(cef_context_menu_params_t* self) nothrow is_custom_menu;

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

is_editable
int function(cef_context_menu_params_t* self) nothrow is_editable;

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

is_spell_check_enabled
int function(cef_context_menu_params_t* self) nothrow is_spell_check_enabled;

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

Meta