Closed Bug 373532 Opened 17 years ago Closed 17 years ago

Move roles and states out of nsIAccessible

Categories

(Core :: Disability Access APIs, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: surkov, Assigned: surkov)

Details

(Keywords: access)

Attachments

(3 files)

Move roles form nsIAccessible into nsIAccessibleStates like it do IA2. This will allow to keep nsIAccessible more cleaner. Also, I'd like to keep roles documented. Now the unique way to define, why this gecko role is, is to look through gecko code or platform role maps.
Aaron, will you approve this?
> Move roles form nsIAccessible into nsIAccessibleStates
Do you mean move roles from nsIAccesible to nsIAccessibleRoles?
And then maybe states into nsIAccessibleStates?
(In reply to comment #2)
> > Move roles form nsIAccessible into nsIAccessibleStates
> Do you mean move roles from nsIAccesible to nsIAccessibleRoles?
> And then maybe states into nsIAccessibleStates?
> 

Exactly :)
That's great. Go ahead.
Keywords: access
Summary: move roles form nsIAccessible into nsIAccessibleStates → Move roles and states out of nsIAccessible
Attached patch role patchSplinter Review
Attachment #258576 - Flags: review?(aaronleventhal)
Status: NEW → ASSIGNED
What about having nsIAccessible inherit from nsIAccessibleRole, just to avoid all the CVS changes?
Comment on attachment 258576 [details] [diff] [review]
role patch

Get it in soon so we can avoid conflicts with existing work. You can decide about whether to inherit or not, in order to avoid so many changes (nsIAccessible to nsIAccessibleRole).
Attachment #258576 - Flags: review?(aaronleventhal) → review+
(In reply to comment #6)
> What about having nsIAccessible inherit from nsIAccessibleRole, just to avoid
> all the CVS changes?
> 

It looks not total correct. Accessible object is not accessible role. Also I'd like to be closer to IA2. I checked in patch as is with following up linux's bustage fixes.
(In reply to comment #8)
> (In reply to comment #6)
> > What about having nsIAccessible inherit from nsIAccessibleRole, just to avoid
> > all the CVS changes?
> > 
> 
> It looks not total correct. Accessible object is not accessible role. Also I'd
> like to be closer to IA2. I checked in patch as is with following up linux's
> bustage fixes.
> 

I hope our successors will estimates at their true worth :)
Attached patch state patchSplinter Review
Aaron, is states are used outside of accessible module?
Attachment #258653 - Flags: review?(aaronleventhal)
They can be useful for Javascript extensions like Fire Vox, a screen reading extension.
Are they in mozilla tree?
No they aren't.
Ok, I just afraid to fire the tree like I did with role patch :)
I wish there was a way to import the namespace so we didn't need to be so verbose.

Also, why nsIAccessibleState_s_ plural when nsIAccessibleRole is singular?
(In reply to comment #15)
> I wish there was a way to import the namespace so we didn't need to be so
> verbose.

Is there a way?

> Also, why nsIAccessibleState_s_ plural when nsIAccessibleRole is singular?
> 

That's how in IA2.
Comment on attachment 258653 [details] [diff] [review]
state patch

Is there any reason for me to check this patch over carefully? It's just moving stuff into a new file and doing a global replace, correct?
I don't remember, is there anything special we have to do to make the new IDL available to scripts? Probably not.
(In reply to comment #17)
> (From update of attachment 258653 [details] [diff] [review])
> Is there any reason for me to check this patch over carefully? It's just moving
> stuff into a new file and doing a global replace, correct?
> 

Not sure the throughout check is needed. You're right it's moving stuff and replacing. The changes are compiled on Windows.
(In reply to comment #18)
> I don't remember, is there anything special we have to do to make the new IDL
> available to scripts? Probably not.
> 

I think we should do nothing I guess since it is scriptable.
Comment on attachment 258653 [details] [diff] [review]
state patch

Okay, eventually we'll get you set up with a Linux machine too so you can test patches on there as well.
Attachment #258653 - Flags: review?(aaronleventhal) → review+
(In reply to comment #21)
> (From update of attachment 258653 [details] [diff] [review])
> Okay, eventually we'll get you set up with a Linux machine too so you can test
> patches on there as well.
> 

Okay. I hope there is no mac in the list? :)

checked in.
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
This broke accessible/src/mac/mozAccessible.mm; that file at least needs the
new states header and fixes to the references to nsIAccessible::STATE_*
Unfortunately Surkov is in Irkutsk, so he won't be awake for a while.
Attached patch state fix patchSplinter Review
Unfortunally I can't test this patch. Stuart, can you ensure that all is fine?
Attachment #258750 - Flags: review?(stuart.morgan)
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Stuart, this works for me. Successful build, and the limited functionality we had with voiceover is working. Two thumbs up! Thanks Alexander.
Comment on attachment 258750 [details] [diff] [review]
state fix patch

checked in
Attachment #258750 - Flags: review?(stuart.morgan)
Status: REOPENED → RESOLVED
Closed: 17 years ago17 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: