Closed
Bug 362080
Opened 18 years ago
Closed 18 years ago
[Mac a11y] Make popupmenus accessible
Categories
(Core :: Disability Access APIs, enhancement)
Tracking
()
RESOLVED
FIXED
People
(Reporter: hwaara, Assigned: hwaara)
References
Details
Attachments
(2 files, 1 obsolete file)
(deleted),
application/vnd.mozilla.xul+xml
|
Details | |
(deleted),
patch
|
Details | Diff | Splinter Review |
Assignee | ||
Comment 1•18 years ago
|
||
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 2•18 years ago
|
||
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+
Assignee | ||
Comment 3•18 years ago
|
||
(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.
Assignee | ||
Comment 4•18 years ago
|
||
Simple XUL document with popupmenus that I used for testing.
Assignee | ||
Comment 5•18 years ago
|
||
Attachment #247523 -
Attachment is obsolete: true
Comment 6•18 years ago
|
||
(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.
Assignee | ||
Comment 7•18 years ago
|
||
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.
Description
•