Closed
Bug 109215
Opened 23 years ago
Closed 17 years ago
Implement accessibility API support for <xul:slider>
Categories
(Core :: Disability Access APIs, defect)
Core
Disability Access APIs
Tracking
()
RESOLVED
FIXED
People
(Reporter: aaronlev, Assigned: surkov)
References
(Blocks 1 open bug)
Details
(Keywords: access)
Attachments
(1 file, 1 obsolete file)
30.39 KB,
patch
|
damons
:
approval1.9+
|
Details | Diff | Splinter Review |
We need to implement <slider> using ROLE_SLIDER. GetAccValue should return the the "value" attribute Supports normal form control states and name labels This is not a priority until I can find somewhere where the <slider> is used!
Reporter | ||
Updated•23 years ago
|
Status: NEW → ASSIGNED
Priority: -- → P4
Target Milestone: --- → Future
Reporter | ||
Updated•20 years ago
|
Target Milestone: Future → mozilla1.9beta
Updated•20 years ago
|
Product: Browser → Seamonkey
Reporter | ||
Comment 2•19 years ago
|
||
(In reply to comment #1) > Aaron, did you allready found where <slider> is used? It's not being used anywhere in the Seamonkey, Firefox or Thunderbird UI.
Updated•19 years ago
|
Target Milestone: mozilla1.9beta → ---
Reporter | ||
Comment 3•18 years ago
|
||
This needs to be a higher priority, because it's a basic widget and extensions will use it. See patch from bug 290255 "Accessibility changes" for some code that might be a good starting point.
Assignee: aaronleventhal → pilgrim
Blocks: fox2access
Status: ASSIGNED → NEW
Keywords: access
Priority: P4 → --
Reporter | ||
Comment 4•18 years ago
|
||
*** Bug 336781 has been marked as a duplicate of this bug. ***
Reporter | ||
Updated•18 years ago
|
Reporter | ||
Updated•18 years ago
|
Assignee: pilgrim → aaronleventhal
Component: General → Disability Access APIs
Product: Mozilla Application Suite → Core
QA Contact: doronr → accessibility-apis
Summary: Active Accessibility: Implement <slider> support → Implement accessibility API support for <xul:slider>
Reporter | ||
Comment 5•17 years ago
|
||
What's the difference between a XUL slider and a XUL scale? We don't have a11y for either. Note: we should expose anything we know about the data type via object to attributes, to help alternative input AT's. See http://wiki.mozilla.org/Accessibility/Datatypes
Reporter | ||
Comment 6•17 years ago
|
||
Neil tells me "the slider is just an internal element used to implement both scale and crollbar. It shouldn't be used directly." See also bug 285167 about making XUL scrollbars accessible.
Assignee | ||
Comment 7•17 years ago
|
||
mac slider http://developer.apple.com/documentation/Accessibility/Conceptual/AccessibilityMacOSX/OSXAXRoleReference/chapter_7_section_32.html mac thumb http://developer.apple.com/documentation/Accessibility/Conceptual/AccessibilityMacOSX/OSXAXRoleReference/chapter_7_section_42.html#//apple_ref/doc/uid/TP40001078-CH211-DontLinkElementID_46 msaa slider/thumb/scrollbar http://msdn2.microsoft.com/en-us/library/ms697649.aspx
Assignee | ||
Comment 8•17 years ago
|
||
we'll reuse nsXULSliderAccessible for scrollbars. It looks we should redefine role only.
Assignee: aaronleventhal → surkov.alexander
Status: NEW → ASSIGNED
Attachment #273585 -
Flags: superreview?(neil)
Attachment #273585 -
Flags: review?(aaronleventhal)
Reporter | ||
Comment 9•17 years ago
|
||
Comment on attachment 273585 [details] [diff] [review] patch I'm away for a few days. Ginn, can you review?
Attachment #273585 -
Flags: review?(aaronleventhal) → review?(ginn.chen)
Comment 10•17 years ago
|
||
Comment on attachment 273585 [details] [diff] [review] patch 1) nsXULSliderAccessible.cpp should include "nsIDOMElement.h" 2) nsXULSliderAccessible.h Line 40 +#ifndef _nsXULSliderAccessible_H_ +#define _nsXULFormControlAccessible_H_ Should be #define _nsXULSliderAccessible_H_ 3) In nsAccessible::SetCurrentValue and nsAccessible::GetCurrentValue We can save lines, if we use if (!mRoleMapEntry || mRoleMapEntry->valueRule == eNoValue) return NS_OK_NOARIAVALUE; 4) I suggest use NS_OK_NO_ARIA_VALUE instead of NS_OK_NOARIAVALUE 5) +#define NS_OK_NOARIAVALUE \ +NS_ERROR_GENERATE_SUCCESS(NS_ERROR_MODULE_GENERAL, 1) We may want to use some value other than 1. There're already several places defined this value. See:http://lxr.mozilla.org/seamonkey/search?string=_SUCCESS%28NS_ERROR_MODULE_GENE
Attachment #273585 -
Flags: review?(ginn.chen) → review+
Comment 11•17 years ago
|
||
Comment on attachment 273585 [details] [diff] [review] patch >+ nsresult rv = nsAccessibleWrap::GetMaximumValue(aValue); >+ NS_ENSURE_SUCCESS(rv, rv); >+ >+ // ARIA redefined maximum value. >+ if (rv != NS_OK_NOARIAVALUE) >+ return NS_OK; >+ >+ return GetSliderAttr(nsAccessibilityAtoms::maxpos, aValue); I'm tempted to say you should write if (rv != NS_OK_NOARIAVALUE) return rv; ... which would make the NS_ENSURE_SUCCESS unnecessary.
Attachment #273585 -
Flags: superreview?(neil) → superreview+
Assignee | ||
Comment 12•17 years ago
|
||
with Ginn's and Neil's comments addressed. for NS_OK_NO_ARIA_VALUE I used 0x21. I hope it's ok.
Attachment #273585 -
Attachment is obsolete: true
Assignee | ||
Comment 13•17 years ago
|
||
checked in
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 14•17 years ago
|
||
(In reply to comment #13) > checked in > patch was backed up
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Updated•17 years ago
|
Attachment #273983 -
Flags: approval1.9?
Assignee | ||
Updated•17 years ago
|
OS: Windows 2000 → All
Hardware: PC → All
Comment 15•17 years ago
|
||
Regarding approval for 1.9: Does patch2 above have sufficient review+? First one does, but what about the second?
Reporter | ||
Comment 16•17 years ago
|
||
Damon, usually if the reviewer thinks another review will be necessary, it's customer to minus the patch. If the review thinks the recommended changes are totally clear and don't need to be checked, they just give r+ with the recommendations.
Assignee | ||
Comment 17•17 years ago
|
||
Yes, the second patch fixes problems of the first patch pointed by reviewers.
Updated•17 years ago
|
Attachment #273983 -
Flags: approval1.9? → approval1.9+
Assignee | ||
Comment 18•17 years ago
|
||
checked in
Status: REOPENED → RESOLVED
Closed: 17 years ago → 17 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•