Back to index

lightning-sunbird  0.9+nobinonly
Public Attributes
nsIContextMenuInfo Interface Reference

nsIContextMenuInfo More...

import "nsIContextMenuListener2.idl";

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

List of all members.

Public Attributes

readonly attribute nsIDOMEvent mouseEvent
 The DOM context menu event.
readonly attribute nsIDOMNode targetNode
 The DOM node most relevant to the context.
readonly attribute AString associatedLink
 Given the CONTEXT_LINK flag, targetNode may not nescesarily be a link.
readonly attribute imgIContainer imageContainer
 Given the CONTEXT_IMAGE flag, these methods can be used in order to get the image for viewing, saving, or for the clipboard.
readonly attribute nsIURI imageSrc
readonly attribute imgIContainer backgroundImageContainer
 Given the CONTEXT_BACKGROUND_IMAGE flag, these methods can be used in order to get the image for viewing, saving, or for the clipboard.
readonly attribute nsIURI backgroundImageSrc

Detailed Description

nsIContextMenuInfo

A helper object for implementors of nsIContextMenuListener2.

UNDER_REVIEW

Definition at line 117 of file nsIContextMenuListener2.idl.


Member Data Documentation

Given the CONTEXT_LINK flag, targetNode may not nescesarily be a link.

This returns the anchor from targetNode if it has one or that of its nearest ancestor if it does not.

Definition at line 134 of file nsIContextMenuListener2.idl.

Given the CONTEXT_BACKGROUND_IMAGE flag, these methods can be used in order to get the image for viewing, saving, or for the clipboard.

Returns:
NS_OK if successful, otherwise NS_ERROR_FAILURE if no background image was found, or NS_ERROR_NULL_POINTER if an internal error occurs where we think there is a background image, but for some reason it cannot be returned.

Definition at line 157 of file nsIContextMenuListener2.idl.

Definition at line 158 of file nsIContextMenuListener2.idl.

Given the CONTEXT_IMAGE flag, these methods can be used in order to get the image for viewing, saving, or for the clipboard.

Returns:
NS_OK if successful, otherwise NS_ERROR_FAILURE if no image was found, or NS_ERROR_NULL_POINTER if an internal error occurs where we think there is an image, but for some reason it cannot be returned.

Definition at line 145 of file nsIContextMenuListener2.idl.

Definition at line 146 of file nsIContextMenuListener2.idl.

The DOM context menu event.

Definition at line 122 of file nsIContextMenuListener2.idl.

The DOM node most relevant to the context.

Definition at line 127 of file nsIContextMenuListener2.idl.


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