Closed Bug 390280 Opened 18 years ago Closed 18 years ago

Support ARIA wairole:img

Categories

(Core :: Disability Access APIs, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: aaronlev, Assigned: aaronlev)

References

(Blocks 1 open bug)

Details

(Keywords: access)

Attachments

(3 files, 3 obsolete files)

The wairole:img is something authors can put on a container that creates an image. For example this is used when one image is made of many tiles, so that the entire structure is exposed as a single image instead of many.
Attached file Tiled image testcase (obsolete) —
Attached file Correct testcase
Attachment #274603 - Attachment is obsolete: true
Ginn, this needs testing on Linux. Depending on what we decide in bug 390194, we may decide to expand MustPrune() to include more types of leaf elements. We may even want MustPrune() to be the same for all APIs. Pruning must be done in platform layer instead of in XP nsIAccessible tree, because nsHyperTextAccessible needs children to support its methods.
Attachment #274608 - Flags: review?(ginn.chen)
Blocks: 390194
Attachment #274608 - Attachment is obsolete: true
Attachment #274609 - Flags: review?(ginn.chen)
Attachment #274608 - Flags: review?(ginn.chen)
Aaron, I think bug 390194 in comment#3 and on Blocks list is a typo. It a Calendar bug.
Attachment #274609 - Attachment is obsolete: true
Attachment #274613 - Flags: review?(ginn.chen)
Attachment #274609 - Flags: review?(ginn.chen)
Sorry, bug 390154. Thanks.
Blocks: 390154
No longer blocks: 390194
Usually we redefine crossplatform behaviour in wrap classes. It's not totally correct (because AT based on gecko will have different API implementation on different platforms) but I think we should have an ability to strict a children (MustPrune()) in cross platform code too and then MustPrune() will be redefined in wrap classes if needed.
(In reply to comment #8) > Usually we redefine crossplatform behaviour in wrap classes. It's not totally > correct (because AT based on gecko will have different API implementation on > different platforms) but I think we should have an ability to strict a children > (MustPrune()) in cross platform code too and then MustPrune() will be redefined > in wrap classes if needed. > Probably you shown a good example based on ROLE_GRAPHIC. If we do not need children on mac or os2 for it then I think we shouldn't have them in crossplatform part too.
Comment on attachment 274613 [details] [diff] [review] Don't forget to add to role string table accessible/src/atk/nsAccessibleWrap.h static PRBool MustPrune(nsIAccessible *aAccessible); should be moved to public accessible/src/base/nsAccessibilityService.h "combobox listitem" //ROLE_COMBOBOX_LISTITEM + "image map" //ROLE_IMAGE_MAP comma is missing after "combobox listitem"
Attachment #274613 - Flags: review?(ginn.chen) → review+
Okay, I'll add the comma at checkin time.
Comment on attachment 274613 [details] [diff] [review] Don't forget to add to role string table Need for full ARIA support.
Attachment #274613 - Flags: review?
Attachment #274613 - Flags: review? → approval1.9?
Attachment #274613 - Flags: approval1.9? → approval1.9+
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Attached patch max bustage fixSplinter Review
Attachment #275226 - Flags: review?(aaronleventhal)
Attachment #275226 - Flags: approval1.9?
Joel, does this patch help?
Yes, that works!
Comment on attachment 275226 [details] [diff] [review] max bustage fix My mistake, but: s/ROLE_IMAGE_MAP/ROLE_GRAPHIC Otherwise it's removing the links from the image children. We only want it to remove the tile children from a flat image (ROLE_GRAPHIC).
Attachment #275226 - Flags: review?(aaronleventhal) → review+
Attachment #275226 - Flags: approval1.9? → approval1.9+
Comment on attachment 275226 [details] [diff] [review] max bustage fix checked in
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: