Chromium Embedded Framework (CEF)
116.0.6+gc182ee2+chromium-116.0.5845.10
|
Provides information about the context menu state. More...
#include "include/cef_context_menu_handler.h"
Public Types | |
typedef cef_context_menu_type_flags_t | TypeFlags |
typedef cef_context_menu_media_type_t | MediaType |
typedef cef_context_menu_media_state_flags_t | MediaStateFlags |
typedef cef_context_menu_edit_state_flags_t | EditStateFlags |
Public Member Functions | |
virtual int | GetXCoord ()=0 |
Returns the X coordinate of the mouse where the context menu was invoked. More... | |
virtual int | GetYCoord ()=0 |
Returns the Y coordinate of the mouse where the context menu was invoked. More... | |
virtual TypeFlags | GetTypeFlags ()=0 |
Returns flags representing the type of node that the context menu was invoked on. More... | |
virtual CefString | GetLinkUrl ()=0 |
Returns the URL of the link, if any, that encloses the node that the context menu was invoked on. More... | |
virtual CefString | GetUnfilteredLinkUrl ()=0 |
Returns the link URL, if any, to be used ONLY for "copy link address". More... | |
virtual CefString | GetSourceUrl ()=0 |
Returns the source URL, if any, for the element that the context menu was invoked on. More... | |
virtual bool | HasImageContents ()=0 |
Returns true if the context menu was invoked on an image which has non-empty contents. More... | |
virtual CefString | GetTitleText ()=0 |
Returns the title text or the alt text if the context menu was invoked on an image. More... | |
virtual CefString | GetPageUrl ()=0 |
Returns the URL of the top level page that the context menu was invoked on. More... | |
virtual CefString | GetFrameUrl ()=0 |
Returns the URL of the subframe that the context menu was invoked on. More... | |
virtual CefString | GetFrameCharset ()=0 |
Returns the character encoding of the subframe that the context menu was invoked on. More... | |
virtual MediaType | GetMediaType ()=0 |
Returns the type of context node that the context menu was invoked on. More... | |
virtual MediaStateFlags | GetMediaStateFlags ()=0 |
Returns flags representing the actions supported by the media element, if any, that the context menu was invoked on. More... | |
virtual CefString | GetSelectionText ()=0 |
Returns the text of the selection, if any, that the context menu was invoked on. More... | |
virtual CefString | GetMisspelledWord ()=0 |
Returns the text of the misspelled word, if any, that the context menu was invoked on. More... | |
virtual bool | GetDictionarySuggestions (std::vector< CefString > &suggestions)=0 |
Returns true if suggestions exist, false otherwise. More... | |
virtual bool | IsEditable ()=0 |
Returns true if the context menu was invoked on an editable node. More... | |
virtual bool | IsSpellCheckEnabled ()=0 |
Returns true if the context menu was invoked on an editable node where spell-check is enabled. More... | |
virtual EditStateFlags | GetEditStateFlags ()=0 |
Returns flags representing the actions supported by the editable node, if any, that the context menu was invoked on. More... | |
virtual bool | IsCustomMenu ()=0 |
Returns true if the context menu contains items specified by the renderer process. More... | |
Public Member Functions inherited from CefBaseRefCounted | |
virtual void | AddRef () const =0 |
Called to increment the reference count for the object. More... | |
virtual bool | Release () const =0 |
Called to decrement the reference count for the object. More... | |
virtual bool | HasOneRef () const =0 |
Returns true if the reference count is 1. More... | |
virtual bool | HasAtLeastOneRef () const =0 |
Returns true if the reference count is at least 1. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from CefBaseRefCounted | |
virtual | ~CefBaseRefCounted () |
Provides information about the context menu state.
The methods of this class can only be accessed on browser process the UI thread.
|
pure virtual |
Returns true if suggestions exist, false otherwise.
Fills in |suggestions| from the spell check service for the misspelled word if there is one.
|
pure virtual |
Returns flags representing the actions supported by the editable node, if any, that the context menu was invoked on.
|
pure virtual |
Returns the character encoding of the subframe that the context menu was invoked on.
|
pure virtual |
Returns the URL of the subframe that the context menu was invoked on.
|
pure virtual |
Returns the URL of the link, if any, that encloses the node that the context menu was invoked on.
|
pure virtual |
Returns flags representing the actions supported by the media element, if any, that the context menu was invoked on.
|
pure virtual |
Returns the type of context node that the context menu was invoked on.
|
pure virtual |
Returns the text of the misspelled word, if any, that the context menu was invoked on.
|
pure virtual |
Returns the URL of the top level page that the context menu was invoked on.
|
pure virtual |
Returns the text of the selection, if any, that the context menu was invoked on.
|
pure virtual |
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.
|
pure virtual |
Returns the title text or the alt text if the context menu was invoked on an image.
|
pure virtual |
Returns flags representing the type of node that the context menu was invoked on.
|
pure virtual |
Returns the link URL, if any, to be used ONLY for "copy link address".
We don't validate this field in the frontend process.
|
pure virtual |
Returns the X coordinate of the mouse where the context menu was invoked.
Coords are relative to the associated RenderView's origin.
|
pure virtual |
Returns the Y coordinate of the mouse where the context menu was invoked.
Coords are relative to the associated RenderView's origin.
|
pure virtual |
Returns true if the context menu was invoked on an image which has non-empty contents.
|
pure virtual |
Returns true if the context menu contains items specified by the renderer process.
|
pure virtual |
Returns true if the context menu was invoked on an editable node.
|
pure virtual |
Returns true if the context menu was invoked on an editable node where spell-check is enabled.