Closed
Bug 208812
Opened 22 years ago
Closed 22 years ago
Create events for internal accessibility clients
Categories
(Core :: Disability Access APIs, defect)
Core
Disability Access APIs
Tracking
()
RESOLVED
FIXED
People
(Reporter: aaronlev, Assigned: aaronlev)
Details
(Whiteboard: in-process-accessibility)
Attachments
(1 file)
16.54 KB,
patch
|
yuanyi21
:
review+
alecf
:
superreview+
asa
:
approval1.4.1-
|
Details | Diff | Splinter Review |
Some accessibility clients will only use XPCOM to communicate with Gecko. They
need a way to be informed about accessibility events.
I'm going to use nsIObserver for this, topic = "accessible-event"
Assignee | ||
Comment 1•22 years ago
|
||
Assignee | ||
Updated•22 years ago
|
Attachment #125248 -
Flags: review?(kyle.yuan)
Comment on attachment 125248 [details] [diff] [review]
Send events through nsIObserver. Create nsIAccessibleEvent for access to event data
>+NS_IMETHODIMP nsDocAccessible::FireToolkitEvent(PRUint32 aEvent, nsIAccessible* aAccessible, void* aData)
>+{
>+ nsCOMPtr<nsIObserverService> obsService =
>+ do_GetService("@mozilla.org/observer-service;1");
>+ if (!obsService) {
>+ return NS_ERROR_FAILURE;
>+ }
>+
>+ nsIAccessibleEvent *accEvent = new nsAccessibleEventData(aEvent, aAccessible, this, aData);
>+ NS_ENSURE_TRUE(accEvent, NS_ERROR_OUT_OF_MEMORY);
>+
>+ NS_ADDREF(accEvent);
>+ return obsService->NotifyObservers(accEvent, NS_ACCESSIBLE_EVENT_TOPIC, nsnull);
r=kyle with above indent problem fixed.
Attachment #125248 -
Flags: review?(kyle.yuan) → review+
Assignee | ||
Comment 3•22 years ago
|
||
Comment on attachment 125248 [details] [diff] [review]
Send events through nsIObserver. Create nsIAccessibleEvent for access to event data
Thanks Kyle. Will fix indent problem.
Attachment #125248 -
Flags: superreview?(alecf)
Comment 4•22 years ago
|
||
Comment on attachment 125248 [details] [diff] [review]
Send events through nsIObserver. Create nsIAccessibleEvent for access to event data
sr=alecf
Attachment #125248 -
Flags: superreview?(alecf) → superreview+
Assignee | ||
Comment 5•22 years ago
|
||
checked in
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•22 years ago
|
Whiteboard: in-process-accessibility
Comment on attachment 125248 [details] [diff] [review]
Send events through nsIObserver. Create nsIAccessibleEvent for access to event data
For making the accessibility feature work better and more stable in 1.4.x, we
need to get this patch in. This fix has been in trunk for a long period. It
won't affect other modules.
Attachment #125248 -
Flags: approval1.4.x?
Comment 7•22 years ago
|
||
Comment on attachment 125248 [details] [diff] [review]
Send events through nsIObserver. Create nsIAccessibleEvent for access to event data
This is not going to make 1.4.1. Please re-request aproval after 1.4.1 ships
if you'd like to get this in for 1.4.2.
Kyle, can you all take this into your tree locally until after 1.4.1 ships
(real soon now) and then work with us to get it landed first thing for 1.4.2?
Attachment #125248 -
Flags: approval1.4.x? → approval1.4.x-
You need to log in
before you can comment on or make changes to this bug.
Description
•