CefContextMenuParams

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

Types

Link copied to clipboard
Supported context menu edit state bit flags.
Link copied to clipboard
Supported context menu media state bit flags.
Link copied to clipboard
Supported context menu media types.
Link copied to clipboard
class TypeFlags
Supported context menu type flags.

Functions

Link copied to clipboard
abstract fun getDictionarySuggestions(suggestions: Vector<String>): Boolean
Returns true if suggestions exist, false otherwise.
Link copied to clipboard
abstract fun getEditStateFlags(): Int
Returns flags representing the actions supported by the editable node, if any, that the context menu was invoked on.
Link copied to clipboard
abstract fun getFrameCharset(): String
Returns the character encoding of the subframe that the context menu was invoked on.
Link copied to clipboard
abstract fun getFrameUrl(): String
Returns the URL of the subframe that the context menu was invoked on.
Link copied to clipboard
abstract fun getLinkUrl(): String
Returns the URL of the link, if any, that encloses the node that the context menu was invoked on.
Link copied to clipboard
abstract fun getMediaStateFlags(): Int
Returns flags representing the actions supported by the media element, if any, that the context menu was invoked on.
Link copied to clipboard
Returns the type of context node that the context menu was invoked on.
Link copied to clipboard
abstract fun getMisspelledWord(): String
Returns the text of the misspelled word, if any, that the context menu was invoked on.
Link copied to clipboard
abstract fun getPageUrl(): String
Returns the URL of the top level page that the context menu was invoked on.
Link copied to clipboard
abstract fun getSelectionText(): String
Returns the text of the selection, if any, that the context menu was invoked on.
Link copied to clipboard
abstract fun getSourceUrl(): String
Returns the source URL, if any, for the element that the context menu was invoked on.
Link copied to clipboard
abstract fun getTypeFlags(): Int
Returns flags representing the type of node that the context menu was invoked on.
Link copied to clipboard
Returns the link URL, if any, to be used ONLY for "copy link address".
Link copied to clipboard
abstract fun getXCoord(): Int
Returns the X coordinate of the mouse where the context menu was invoked.
Link copied to clipboard
abstract fun getYCoord(): Int
Returns the Y coordinate of the mouse where the context menu was invoked.
Link copied to clipboard
abstract fun hasImageContents(): Boolean
Returns true if the context menu was invoked on an image which has non-empty contents.
Link copied to clipboard
abstract fun isEditable(): Boolean
Returns true if the context menu was invoked on an editable node.
Link copied to clipboard
Returns true if the context menu was invoked on an editable node where spell-check is enabled.