Closed Bug 153852 Opened 23 years ago Closed 23 years ago

Accessibility: Support selection_changed, text_changed and text_selection_changed events for ATK

Categories

(Core :: Disability Access APIs, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: yuanyi21, Assigned: yuanyi21)

References

Details

Attachments

(1 file, 1 obsolete file)

These 3 events are very important to ATK.
Blocks: 136315
Status: NEW → ASSIGNED
Depends on: 152786
QA Contact: dsirnapalli → jessie.li
text_selection_changed will be fired from nsCaretAccessible.
Depends on: 153196
Added support for EVENT_ATK_SELECTION_CHANGE, EVENT_ATK_TEXT_CARET_MOVE, EVENT_ATK_TEXT_SELECTION_CHANGE and EVENT_ATK_TEXT_CHANGE. New event handler was enclosed by #ifdef MOZ_ACCESSIBILITY_ATK/#endif block.
Depends on: 151388
I thought there would be bigger differences bettwen the ATK event code and the MSAA event code in nsRootAccessible::HandleEvent(). Don't you think we should keep as much as possible outside of the #ifdef? That way we won't have to make changes to those things in two places. Or do you think it is better to keep them completely separate?
Checked the code, only the handlers of popupshowing and popuphiding are completely same, and I may change them in the near future. The code of HandleEvent() is 40%-50% same for two platforms. If separated, there will be much same code. Do you agree?
Kyle, I'll let you make the call. ATK has a more complex event system than MSAA.
I would like to keep the current change. There are much pre-process code. Seeking r=.
Comment on attachment 89387 [details] [diff] [review] modify nsRootAccessible::HandleEvent() according to ATK requests r=aaronl
Attachment #89387 - Flags: review+
changed made: 1) added new event const EVENT_ATK_VISIBLE_DATA_CHANGE for ATK 2) created a new file nsAccessibleEventData.h to hold the event data structs for ATK. the original place - nsRootAccessible.h - causes MAI module has redundant compile-dependencies. Aaron, seeking your r= again.
Attachment #89387 - Attachment is obsolete: true
Attachment #89877 - Flags: review+
Comment on attachment 89877 [details] [diff] [review] some changes of ATK event data struct definitions r=aaronl
Comment on attachment 89877 [details] [diff] [review] some changes of ATK event data struct definitions sr=jst
Attachment #89877 - Flags: superreview+
checked in!
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: