Public Attributes

nsIContextMenuInfo Interface Reference

nsIContextMenuInfo More...

import "nsIContextMenuListener2.idl";

Collaboration diagram for nsIContextMenuInfo:

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.

Status:
UNDER_REVIEW

Member Data Documentation

readonly attribute AString nsIContextMenuInfo::associatedLink

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.

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.

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.

The DOM context menu event.

The DOM node most relevant to the context.


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