Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes | Private Attributes
nsAccessibleEventData Class Reference

#include <nsAccessibleEventData.h>

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

List of all members.

Public Member Functions

 nsAccessibleEventData (PRUint32 aEventType, nsIAccessible *aAccessible, nsIAccessibleDocument *aDocAccessible, void *aEventData)
 nsAccessibleEventData (PRUint32 aEventType, nsIDOMNode *aDOMNode, nsIAccessibleDocument *aDocAccessible, void *aEventData)
virtual ~nsAccessibleEventData ()
NS_DECL_ISUPPORTS NS_IMETHOD GetEventType (PRUint32 *aEventType)
NS_IMETHOD GetAccessible (nsIAccessible **aAccessible)
NS_IMETHOD GetAccessibleDocument (nsIAccessibleDocument **aDocAccessible)
NS_IMETHOD GetDOMNode (nsIDOMNode **aDOMNode)

Public Attributes

readonly attribute unsigned long eventType
 The type of event, based on the enumerated event values defined in this interface.
readonly attribute nsIAccessible accessible
 The nsIAccessible associated with the event.
readonly attribute
nsIAccessibleDocument 
accessibleDocument
 The nsIAccessibleDocument that the event target nsIAccessible resides in.
readonly attribute nsIDOMNode DOMNode
 The nsIDOMNode associated with the event May return null if accessible for event has been shut down.
const unsigned long EVENT_CREATE = 0x8000
const unsigned long EVENT_DESTROY = 0x8001
const unsigned long EVENT_SHOW = 0x8002
const unsigned long EVENT_HIDE = 0x8003
const unsigned long EVENT_REORDER = 0x8004
const unsigned long EVENT_FOCUS = 0x8005
const unsigned long EVENT_STATE_CHANGE = 0x800A
const unsigned long EVENT_LOCATION_CHANGE = 0x800B
const unsigned long EVENT_NAME_CHANGE = 0x800C
const unsigned long EVENT_DESCRIPTIONCHANGE = 0x800D
const unsigned long EVENT_VALUE_CHANGE = 0x800E
const unsigned long EVENT_PARENTCHANGE = 0x800F
const unsigned long EVENT_HELPCHANGE = 0x8010
const unsigned long EVENT_DEFACTIONCHANGE = 0x8011
const unsigned long EVENT_ACCELERATORCHANGE = 0x8012
const unsigned long EVENT_SELECTION = 0x8006
const unsigned long EVENT_SELECTION_ADD = 0x8007
const unsigned long EVENT_SELECTION_REMOVE = 0x8008
const unsigned long EVENT_SELECTION_WITHIN = 0x8009
const unsigned long EVENT_ALERT = 0x0002
const unsigned long EVENT_FOREGROUND = 0x0003
const unsigned long EVENT_MENUSTART = 0x0004
const unsigned long EVENT_MENUEND = 0x0005
const unsigned long EVENT_MENUPOPUPSTART = 0x0006
const unsigned long EVENT_MENUPOPUPEND = 0x0007
const unsigned long EVENT_CAPTURESTART = 0x0008
const unsigned long EVENT_CAPTUREEND = 0x0009
const unsigned long EVENT_MOVESIZESTART = 0x000A
const unsigned long EVENT_MOVESIZEEND = 0x000B
const unsigned long EVENT_CONTEXTHELPSTART = 0x000C
const unsigned long EVENT_CONTEXTHELPEND = 0x000D
const unsigned long EVENT_DRAGDROPSTART = 0x000E
const unsigned long EVENT_DRAGDROPEND = 0x000F
const unsigned long EVENT_DIALOGSTART = 0x0010
const unsigned long EVENT_DIALOGEND = 0x0011
const unsigned long EVENT_SCROLLINGSTART = 0x0012
const unsigned long EVENT_SCROLLINGEND = 0x0013
const unsigned long EVENT_MINIMIZESTART = 0x0016
const unsigned long EVENT_MINIMIZEEND = 0x0017
const unsigned long EVENT_ATK_PROPERTY_CHANGE = 0x0100
const unsigned long EVENT_ATK_SELECTION_CHANGE = 0x0101
const unsigned long EVENT_ATK_TEXT_CHANGE = 0x0102
const unsigned long EVENT_ATK_TEXT_SELECTION_CHANGE = 0x0103
const unsigned long EVENT_ATK_TEXT_CARET_MOVE = 0x0104
const unsigned long EVENT_ATK_VISIBLE_DATA_CHANGE = 0x0105
const unsigned long EVENT_ATK_TABLE_MODEL_CHANGE = 0x0110
const unsigned long EVENT_ATK_TABLE_ROW_INSERT = 0x0111
const unsigned long EVENT_ATK_TABLE_ROW_DELETE = 0x0112
const unsigned long EVENT_ATK_TABLE_ROW_REORDER = 0x0113
const unsigned long EVENT_ATK_TABLE_COLUMN_INSERT = 0x0114
const unsigned long EVENT_ATK_TABLE_COLUMN_DELETE = 0x0115
const unsigned long EVENT_ATK_TABLE_COLUMN_REORDER = 0x0116
const unsigned long EVENT_ATK_LINK_SELECTED = 0x0117
const unsigned long EVENT_ATK_WINDOW_ACTIVATE = 0x0118
const unsigned long EVENT_ATK_WINDOW_CREATE = 0x0119
const unsigned long EVENT_ATK_WINDOW_DEACTIVATE = 0x0120
const unsigned long EVENT_ATK_WINDOW_DESTROY = 0x0121
const unsigned long EVENT_ATK_WINDOW_MAXIMIZE = 0x0122
const unsigned long EVENT_ATK_WINDOW_MINIMIZE = 0x0123
const unsigned long EVENT_ATK_WINDOW_RESIZE = 0x0124
const unsigned long EVENT_ATK_WINDOW_RESTORE = 0x0125

Private Attributes

PRUint32 mEventType
nsCOMPtr< nsIAccessiblemAccessible
nsCOMPtr< nsIDOMNodemDOMNode
nsCOMPtr< nsIAccessibleDocumentmDocAccessible
voidmEventData

Detailed Description

Definition at line 49 of file nsAccessibleEventData.h.


Constructor & Destructor Documentation

nsAccessibleEventData::nsAccessibleEventData ( PRUint32  aEventType,
nsIAccessible aAccessible,
nsIAccessibleDocument aDocAccessible,
void aEventData 
)

Definition at line 46 of file nsAccessibleEventData.cpp.

                                                              :
  mEventType(aEventType), mAccessible(aAccessible), mDocAccessible(aDocAccessible), 
  mEventData(aEventData)
{
}
nsAccessibleEventData::nsAccessibleEventData ( PRUint32  aEventType,
nsIDOMNode aDOMNode,
nsIAccessibleDocument aDocAccessible,
void aEventData 
)

Definition at line 54 of file nsAccessibleEventData.cpp.

                                                              :
  mEventType(aEventType), mDOMNode(aDOMNode), mDocAccessible(aDocAccessible),
  mEventData(aEventData)
{
}
virtual nsAccessibleEventData::~nsAccessibleEventData ( ) [inline, virtual]

Definition at line 60 of file nsAccessibleEventData.h.

{};

Member Function Documentation

Definition at line 62 of file nsAccessibleEventData.cpp.

{
  *aAccessible = nsnull;
  if (!mAccessible) {
    NS_ENSURE_TRUE(mDOMNode, NS_ERROR_FAILURE);
    nsCOMPtr<nsIAccessibilityService> accService = 
      do_GetService("@mozilla.org/accessibilityService;1");
    NS_ENSURE_TRUE(accService, NS_ERROR_FAILURE);
    accService->GetAccessibleFor(mDOMNode, getter_AddRefs(mAccessible));
    if (!mAccessible) {
      return NS_OK;
    }
  }
  NS_ADDREF(*aAccessible = mAccessible);
  return NS_OK;
}

Here is the call graph for this function:

Definition at line 67 of file nsAccessibleEventData.h.

      {NS_ADDREF(*aDocAccessible = mDocAccessible); return NS_OK;}

Here is the call graph for this function:

Definition at line 79 of file nsAccessibleEventData.cpp.

{
  if (!mDOMNode) {
    nsCOMPtr<nsIAccessNode> accessNode(do_QueryInterface(mAccessible));
    NS_ENSURE_TRUE(accessNode, NS_ERROR_FAILURE);
    accessNode->GetDOMNode(getter_AddRefs(mDOMNode));
  }
  NS_ADDREF(*aDOMNode = mDOMNode);
  return NS_OK;
}

Here is the call graph for this function:

Definition at line 65 of file nsAccessibleEventData.h.

{*aEventType = mEventType; return NS_OK;}

Member Data Documentation

The nsIAccessible associated with the event.

May return null if no accessible is available

Definition at line 75 of file nsIAccessibleEvent.idl.

The nsIAccessibleDocument that the event target nsIAccessible resides in.

This can be used to get the DOM window, the DOM document and the window handler, among other things.

Definition at line 82 of file nsIAccessibleEvent.idl.

The nsIDOMNode associated with the event May return null if accessible for event has been shut down.

Definition at line 88 of file nsIAccessibleEvent.idl.

Definition at line 105 of file nsIAccessibleEvent.idl.

const unsigned long nsIAccessibleEvent::EVENT_ALERT = 0x0002 [inherited]

Definition at line 110 of file nsIAccessibleEvent.idl.

Definition at line 145 of file nsIAccessibleEvent.idl.

Definition at line 132 of file nsIAccessibleEvent.idl.

Definition at line 133 of file nsIAccessibleEvent.idl.

Definition at line 143 of file nsIAccessibleEvent.idl.

Definition at line 142 of file nsIAccessibleEvent.idl.

Definition at line 144 of file nsIAccessibleEvent.idl.

Definition at line 138 of file nsIAccessibleEvent.idl.

Definition at line 140 of file nsIAccessibleEvent.idl.

Definition at line 139 of file nsIAccessibleEvent.idl.

Definition at line 141 of file nsIAccessibleEvent.idl.

Definition at line 136 of file nsIAccessibleEvent.idl.

const unsigned long nsIAccessibleEvent::EVENT_ATK_TEXT_CHANGE = 0x0102 [inherited]

Definition at line 134 of file nsIAccessibleEvent.idl.

Definition at line 135 of file nsIAccessibleEvent.idl.

Definition at line 137 of file nsIAccessibleEvent.idl.

Definition at line 146 of file nsIAccessibleEvent.idl.

Definition at line 147 of file nsIAccessibleEvent.idl.

Definition at line 148 of file nsIAccessibleEvent.idl.

Definition at line 149 of file nsIAccessibleEvent.idl.

Definition at line 150 of file nsIAccessibleEvent.idl.

Definition at line 151 of file nsIAccessibleEvent.idl.

Definition at line 152 of file nsIAccessibleEvent.idl.

Definition at line 153 of file nsIAccessibleEvent.idl.

const unsigned long nsIAccessibleEvent::EVENT_CAPTUREEND = 0x0009 [inherited]

Definition at line 117 of file nsIAccessibleEvent.idl.

const unsigned long nsIAccessibleEvent::EVENT_CAPTURESTART = 0x0008 [inherited]

Definition at line 116 of file nsIAccessibleEvent.idl.

const unsigned long nsIAccessibleEvent::EVENT_CONTEXTHELPEND = 0x000D [inherited]

Definition at line 121 of file nsIAccessibleEvent.idl.

const unsigned long nsIAccessibleEvent::EVENT_CONTEXTHELPSTART = 0x000C [inherited]

Definition at line 120 of file nsIAccessibleEvent.idl.

const unsigned long nsIAccessibleEvent::EVENT_CREATE = 0x8000 [inherited]

Definition at line 91 of file nsIAccessibleEvent.idl.

const unsigned long nsIAccessibleEvent::EVENT_DEFACTIONCHANGE = 0x8011 [inherited]

Definition at line 104 of file nsIAccessibleEvent.idl.

Definition at line 100 of file nsIAccessibleEvent.idl.

const unsigned long nsIAccessibleEvent::EVENT_DESTROY = 0x8001 [inherited]

Definition at line 92 of file nsIAccessibleEvent.idl.

const unsigned long nsIAccessibleEvent::EVENT_DIALOGEND = 0x0011 [inherited]

Definition at line 125 of file nsIAccessibleEvent.idl.

const unsigned long nsIAccessibleEvent::EVENT_DIALOGSTART = 0x0010 [inherited]

Definition at line 124 of file nsIAccessibleEvent.idl.

const unsigned long nsIAccessibleEvent::EVENT_DRAGDROPEND = 0x000F [inherited]

Definition at line 123 of file nsIAccessibleEvent.idl.

const unsigned long nsIAccessibleEvent::EVENT_DRAGDROPSTART = 0x000E [inherited]

Definition at line 122 of file nsIAccessibleEvent.idl.

const unsigned long nsIAccessibleEvent::EVENT_FOCUS = 0x8005 [inherited]

Definition at line 96 of file nsIAccessibleEvent.idl.

const unsigned long nsIAccessibleEvent::EVENT_FOREGROUND = 0x0003 [inherited]

Definition at line 111 of file nsIAccessibleEvent.idl.

const unsigned long nsIAccessibleEvent::EVENT_HELPCHANGE = 0x8010 [inherited]

Definition at line 103 of file nsIAccessibleEvent.idl.

const unsigned long nsIAccessibleEvent::EVENT_HIDE = 0x8003 [inherited]

Definition at line 94 of file nsIAccessibleEvent.idl.

const unsigned long nsIAccessibleEvent::EVENT_LOCATION_CHANGE = 0x800B [inherited]

Definition at line 98 of file nsIAccessibleEvent.idl.

const unsigned long nsIAccessibleEvent::EVENT_MENUEND = 0x0005 [inherited]

Definition at line 113 of file nsIAccessibleEvent.idl.

const unsigned long nsIAccessibleEvent::EVENT_MENUPOPUPEND = 0x0007 [inherited]

Definition at line 115 of file nsIAccessibleEvent.idl.

const unsigned long nsIAccessibleEvent::EVENT_MENUPOPUPSTART = 0x0006 [inherited]

Definition at line 114 of file nsIAccessibleEvent.idl.

const unsigned long nsIAccessibleEvent::EVENT_MENUSTART = 0x0004 [inherited]

Definition at line 112 of file nsIAccessibleEvent.idl.

const unsigned long nsIAccessibleEvent::EVENT_MINIMIZEEND = 0x0017 [inherited]

Definition at line 129 of file nsIAccessibleEvent.idl.

const unsigned long nsIAccessibleEvent::EVENT_MINIMIZESTART = 0x0016 [inherited]

Definition at line 128 of file nsIAccessibleEvent.idl.

const unsigned long nsIAccessibleEvent::EVENT_MOVESIZEEND = 0x000B [inherited]

Definition at line 119 of file nsIAccessibleEvent.idl.

const unsigned long nsIAccessibleEvent::EVENT_MOVESIZESTART = 0x000A [inherited]

Definition at line 118 of file nsIAccessibleEvent.idl.

const unsigned long nsIAccessibleEvent::EVENT_NAME_CHANGE = 0x800C [inherited]

Definition at line 99 of file nsIAccessibleEvent.idl.

const unsigned long nsIAccessibleEvent::EVENT_PARENTCHANGE = 0x800F [inherited]

Definition at line 102 of file nsIAccessibleEvent.idl.

const unsigned long nsIAccessibleEvent::EVENT_REORDER = 0x8004 [inherited]

Definition at line 95 of file nsIAccessibleEvent.idl.

const unsigned long nsIAccessibleEvent::EVENT_SCROLLINGEND = 0x0013 [inherited]

Definition at line 127 of file nsIAccessibleEvent.idl.

const unsigned long nsIAccessibleEvent::EVENT_SCROLLINGSTART = 0x0012 [inherited]

Definition at line 126 of file nsIAccessibleEvent.idl.

const unsigned long nsIAccessibleEvent::EVENT_SELECTION = 0x8006 [inherited]

Definition at line 106 of file nsIAccessibleEvent.idl.

const unsigned long nsIAccessibleEvent::EVENT_SELECTION_ADD = 0x8007 [inherited]

Definition at line 107 of file nsIAccessibleEvent.idl.

const unsigned long nsIAccessibleEvent::EVENT_SELECTION_REMOVE = 0x8008 [inherited]

Definition at line 108 of file nsIAccessibleEvent.idl.

const unsigned long nsIAccessibleEvent::EVENT_SELECTION_WITHIN = 0x8009 [inherited]

Definition at line 109 of file nsIAccessibleEvent.idl.

const unsigned long nsIAccessibleEvent::EVENT_SHOW = 0x8002 [inherited]

Definition at line 93 of file nsIAccessibleEvent.idl.

const unsigned long nsIAccessibleEvent::EVENT_STATE_CHANGE = 0x800A [inherited]

Definition at line 97 of file nsIAccessibleEvent.idl.

const unsigned long nsIAccessibleEvent::EVENT_VALUE_CHANGE = 0x800E [inherited]

Definition at line 101 of file nsIAccessibleEvent.idl.

readonly attribute unsigned long nsIAccessibleEvent::eventType [inherited]

The type of event, based on the enumerated event values defined in this interface.

Definition at line 69 of file nsIAccessibleEvent.idl.

Definition at line 73 of file nsAccessibleEventData.h.

Definition at line 75 of file nsAccessibleEventData.h.

Definition at line 74 of file nsAccessibleEventData.h.

Definition at line 76 of file nsAccessibleEventData.h.

Definition at line 72 of file nsAccessibleEventData.h.


The documentation for this class was generated from the following files: