
nsIContextMenuListener
An optional interface for embedding clients who wish to receive notifications for context menu events, i.e. generated by a user right-mouse clicking on a link. The embedder implements this interface on the WebBrowser chrome object associated with the window for which notifications are required. When a context menu event occurs, the browser will call this interface if present. This interface is not scriptable.
See also:
nsIDOMNode,nsIDOMEventCalled when the browser receives a context menu event (i.e. the user is right-mouse clicking somewhere on the document). The combination of flags, events and nodes provided in the call indicate where and what was clicked on.
The following table describes what context flags and node combinations are possible.
Syntax:
void nsIContextMenuListener::onShowContextMenu( in unsigned long aContextFlags, in nsIDOMEvent aEvent, in nsIDOMNode aNode )Parameters:
nsresult:
Context is the whole document.
| Written by:Ellen Evans | Comments, questions, complaints?
Bug 143387 |