nsAccEvent Class Reference
#include <nsAccessibleEventData.h>
List of all members.
Public Types |
| enum | EEventRule { eAllowDupes,
eCoalesceFromSameSubtree,
eRemoveDupes,
eDoNotEmit
} |
Public Member Functions |
| | nsAccEvent (PRUint32 aEventType, nsIAccessible *aAccessible, PRBool aIsAsynch=PR_FALSE, EEventRule aEventRule=eRemoveDupes) |
| | nsAccEvent (PRUint32 aEventType, nsIDOMNode *aDOMNode, PRBool aIsAsynch=PR_FALSE, EEventRule aEventRule=eRemoveDupes) |
| virtual | ~nsAccEvent () |
Static Public Member Functions |
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
static
NS_DECL_NSIACCESSIBLEEVENT
void | GetLastEventAttributes (nsIDOMNode *aNode, nsIPersistentProperties *aAttributes) |
| static PRUint32 | EventType (nsIAccessibleEvent *aAccEvent) |
| static EEventRule | EventRule (nsIAccessibleEvent *aAccEvent) |
| static PRBool | IsAsyncEvent (nsIAccessibleEvent *aAccEvent) |
| static PRBool | IsFromUserInput (nsIAccessibleEvent *aAccEvent) |
| static void | ResetLastInputState () |
| static void | PrepareForEvent (nsIDOMNode *aChangeNode, PRBool aForceIsFromUserInput=PR_FALSE) |
| | Find and cache the last input state.
|
| static void | PrepareForEvent (nsIAccessibleEvent *aEvent, PRBool aForceIsFromUserInput=PR_FALSE) |
| | The input state was previously stored with the nsIAccessibleEvent, so use that state now -- call this when about to flush an event that was waiting in an event queue.
|
| static void | ApplyEventRules (nsTArray< nsRefPtr< nsAccEvent > > &aEventsToFire) |
| | Apply event rules to pending events, this method is called in FlushingPendingEvents().
|
Protected Member Functions |
| already_AddRefed< nsIAccessible > | GetAccessibleByNode () |
| void | CaptureIsFromUserInput () |
Protected Attributes |
| PRBool | mIsFromUserInput |
| PRUint32 | mEventType |
| EEventRule | mEventRule |
| PRPackedBool | mIsAsync |
| nsCOMPtr< nsIAccessible > | mAccessible |
| nsCOMPtr< nsIDOMNode > | mDOMNode |
| nsCOMPtr< nsIAccessibleDocument > | mDocAccessible |
Member Enumeration Documentation
- Enumerator:
| eAllowDupes |
|
| eCoalesceFromSameSubtree |
|
| eRemoveDupes |
|
| eDoNotEmit |
|
Constructor & Destructor Documentation
| nsAccEvent::nsAccEvent |
( |
PRUint32 |
aEventType, |
|
|
nsIDOMNode * |
aDOMNode, |
|
|
PRBool |
aIsAsynch = PR_FALSE, |
|
|
EEventRule |
aEventRule = eRemoveDupes | |
|
) |
| | |
| virtual nsAccEvent::~nsAccEvent |
( |
|
) |
[inline, virtual] |
Member Function Documentation
Apply event rules to pending events, this method is called in FlushingPendingEvents().
Result of this method: Event rule of filtered events will be set to eDoNotEmit. Events with other event rule are good to emit.
| void nsAccEvent::CaptureIsFromUserInput |
( |
|
) |
[protected] |
| NS_DECL_CYCLE_COLLECTING_ISUPPORTS static NS_DECL_NSIACCESSIBLEEVENT void nsAccEvent::GetLastEventAttributes |
( |
nsIDOMNode * |
aNode, |
|
|
nsIPersistentProperties * |
aAttributes | |
|
) |
| | [static] |
| static void nsAccEvent::PrepareForEvent |
( |
nsIAccessibleEvent * |
aEvent, |
|
|
PRBool |
aForceIsFromUserInput = PR_FALSE | |
|
) |
| | [static] |
The input state was previously stored with the nsIAccessibleEvent, so use that state now -- call this when about to flush an event that was waiting in an event queue.
| static void nsAccEvent::PrepareForEvent |
( |
nsIDOMNode * |
aChangeNode, |
|
|
PRBool |
aForceIsFromUserInput = PR_FALSE | |
|
) |
| | [static] |
Find and cache the last input state.
This will be called automatically for synchronous events. For asynchronous events it should be called from the synchronous code which is the true source of the event, before the event is fired.
- Parameters:
-
| aChangeNode | that event will be on |
| aForceIsFromUserInput | PR_TRUE if the caller knows that this event was caused by user input |
| static void nsAccEvent::ResetLastInputState |
( |
|
) |
[inline, static] |
Member Data Documentation
The documentation for this class was generated from the following file: