[This is preliminary documentation and is subject to change.]
The CefContextMenuHandler type exposes the following members.Constructors
Name | Description | |
---|---|---|
CefContextMenuHandler | Initializes a new instance of the CefContextMenuHandler class |
Methods
Name | Description | |
---|---|---|
Dispose | Releases the unmanaged resources used by the CefContextMenuHandler and optionally releases the managed resources | |
Equals | (Inherited from Object.) | |
Finalize | (Overrides Object Finalize .) | |
GetHashCode |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
GetType |
Gets the Type of the current instance.
(Inherited from Object.) | |
MemberwiseClone |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
OnBeforeContextMenu |
Called before a context menu is displayed. |params| provides information
about the context menu state. |model| initially contains the default
context menu. The |model| can be cleared to show no context menu or
modified to show a custom menu. Do not keep references to |params| or
|model| outside of this callback.
| |
OnContextMenuCommand |
Called to execute a command selected from the context menu. Return true if
the command was handled or false for the default implementation. See
cef_menu_id_t for the command ids that have default implementations. All
user-defined command ids should be between MENU_ID_USER_FIRST and
MENU_ID_USER_LAST. |params| will have the same values as what was passed to
OnBeforeContextMenu(). Do not keep a reference to |params| outside of this
callback.
| |
OnContextMenuDismissed |
Called when the context menu is dismissed irregardless of whether the menu
was empty or a command was selected.
| |
ToString | (Inherited from Object.) |
Properties
Name | Description | |
---|---|---|
SyncRoot |
See Also