nsIContextMenuListener2
This is an extended version of nsIContextMenuListener
It provides a helper class, nsIContextMenuInfo, to allow access to
background images as well as various utilities.
@see nsIContextMenuListener
@see nsIContextMenuInfo
Called when the browser receives a context menu event (e.g. user is right-mouse
clicking somewhere on the document). The combination of flags, along with the
attributes of aUtils, indicate where and what was clicked on.
The following table describes what context flags and node combinations are
possible.
aContextFlags aUtils.targetNode
CONTEXT_LINK
CONTEXT_IMAGE
CONTEXT_IMAGE | CONTEXT_LINK with as an ancestor
CONTEXT_INPUT
CONTEXT_INPUT | CONTEXT_IMAGE with type=image
CONTEXT_TEXT
@see nsIContextMenuInfo
| aContextFlags | Flags indicating the kind of context. |
| aUtils | Context information and helper utilities. |
Flag. No context. */
Flag. Context is a link element. */
Flag. Context is an image element. */
Flag. Context is the whole document. */
Flag. Context is a text area element. */
Flag. Context is an input element. */
Flag. Context is a background image. */