Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes
nsIContextMenuListener2 Interface Reference

nsIContextMenuListener2 More...

import "nsIContextMenuListener2.idl";

Inheritance diagram for nsIContextMenuListener2:
Inheritance graph
[legend]
Collaboration diagram for nsIContextMenuListener2:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void onShowContextMenu (in unsigned long aContextFlags, in nsIContextMenuInfo aUtils)
 Called when the browser receives a context menu event (e.g.

Public Attributes

const unsigned long CONTEXT_NONE = 0
 Flag.
const unsigned long CONTEXT_LINK = 1
 Flag.
const unsigned long CONTEXT_IMAGE = 2
 Flag.
const unsigned long CONTEXT_DOCUMENT = 4
 Flag.
const unsigned long CONTEXT_TEXT = 8
 Flag.
const unsigned long CONTEXT_INPUT = 16
 Flag.
const unsigned long CONTEXT_BACKGROUND_IMAGE = 32
 Flag.

Detailed Description

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 also:
nsIContextMenuListener
nsIContextMenuInfo

UNDER_REVIEW

Definition at line 64 of file nsIContextMenuListener2.idl.


Member Function Documentation

void nsIContextMenuListener2::onShowContextMenu ( in unsigned long  aContextFlags,
in nsIContextMenuInfo  aUtils 
)

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 <INPUT> CONTEXT_INPUT | CONTEXT_IMAGE <INPUT> with type=image CONTEXT_TEXT <TEXTAREA> CONTEXT_DOCUMENT <HTML> CONTEXT_BACKGROUND_IMAGE <HTML> with background image

Parameters:
aContextFlagsFlags indicating the kind of context.
aUtilsContext information and helper utilities.
See also:
nsIContextMenuInfo

Member Data Documentation

Flag.

Context is a background image.

Definition at line 79 of file nsIContextMenuListener2.idl.

Flag.

Context is the whole document.

Definition at line 73 of file nsIContextMenuListener2.idl.

Flag.

Context is an image element.

Definition at line 71 of file nsIContextMenuListener2.idl.

Flag.

Context is an input element.

Definition at line 77 of file nsIContextMenuListener2.idl.

Flag.

Context is a link element.

Definition at line 69 of file nsIContextMenuListener2.idl.

Flag.

No context.

Definition at line 67 of file nsIContextMenuListener2.idl.

Flag.

Context is a text area element.

Definition at line 75 of file nsIContextMenuListener2.idl.


The documentation for this interface was generated from the following file: