Closed Bug 362080 Opened 18 years ago Closed 18 years ago

[Mac a11y] Make popupmenus accessible

Categories

(Core :: Disability Access APIs, enhancement)

PowerPC
macOS
enhancement
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: hwaara, Assigned: hwaara)

References

Details

Attachments

(2 files, 1 obsolete file)

Blocks: osxa11y
Attached patch Implement popupbutton class v1 (obsolete) (deleted) — Splinter Review
Here's a initial implementation of a class that'll handle popupbuttons and popupmenus. Right now it handles ROLE_COMBOBOX, which is popupmenus (menulists). I corrected the rolelist to some new info I got from Aaron. Also, there is currently no action on ROLE_COMBOBOX to show the child menu, so I can't implement that right now. The class has the attributes from the spec: http://tinyurl.com/yfh9kq I might reuse this class for all buttons that popup a menu (like Back/Forward buttons) later, if I figure out how to do that...
Attachment #247523 - Flags: review?(surkov.alexander)
Comment on attachment 247523 [details] [diff] [review] Implement popupbutton class v1 > I corrected the rolelist to some new info I got from Aaron. >- NSAccessibilityComboBoxRole, // ROLE_COMBOBOX >- NSAccessibilityComboBoxRole, // ROLE_DROPLIST >+ NSAccessibilityPopUpButtonRole, // ROLE_COMBOBOX >+ NSAccessibilityUnknownRole, // ROLE_DROPLIST. so far unused Why droplist isn't used? Technically droplist is combobox that shows calendar in popup menu. Why can't you use NSAccessibilityPopUpButtonRole for it too? >- NSAccessibilityPopUpButtonRole, // ROLE_BUTTONDROPDOWN >+ NSAccessibilityUnknownRole, // ROLE_BUTTONDROPDOWN. so far unused Why? The rest looks good. r+ with those answered.
Attachment #247523 - Flags: review?(surkov.alexander) → review+
(In reply to comment #2) > (From update of attachment 247523 [details] [diff] [review] [edit]) > > I corrected the rolelist to some new info I got from Aaron. > > >- NSAccessibilityComboBoxRole, // ROLE_COMBOBOX > >- NSAccessibilityComboBoxRole, // ROLE_DROPLIST > >+ NSAccessibilityPopUpButtonRole, // ROLE_COMBOBOX > >+ NSAccessibilityUnknownRole, // ROLE_DROPLIST. so far unused > > Why droplist isn't used? Technically droplist is combobox that shows calendar > in popup menu. Why can't you use NSAccessibilityPopUpButtonRole for it too? Droplist isn't used in any code, according to LXR, that's why. Will it work just like a popupmenu? I.e., be a button that will pop up a menu? If so, I could make it the popupbutton role, I guess... > >- NSAccessibilityPopUpButtonRole, // ROLE_BUTTONDROPDOWN > >+ NSAccessibilityUnknownRole, // ROLE_BUTTONDROPDOWN. so far unused > > Why? Seems like right now it's only used by the colorpicker. I suppose I could use the popupbutton role for it too, if it has the same behavior. One problem is that with all these small variations of widgets, it's quite hard to test for me.
Attached file Simple testcase (deleted) —
Simple XUL document with popupmenus that I used for testing.
Attachment #247523 - Attachment is obsolete: true
(In reply to comment #3) > Droplist isn't used in any code, according to LXR, that's why. Will it work > just like a popupmenu? I.e., be a button that will pop up a menu? If so, I > could make it the popupbutton role, I guess... Yes, droplist is textfield and button to show popup calendar. The bug 349644 make droplist used.
Checked in.
Status: NEW → RESOLVED
Closed: 18 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: