Closed Bug 204574 Opened 21 years ago Closed 21 years ago

add states supports in accessibility/atk

Categories

(Core :: Disability Access APIs, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: yinbolian, Assigned: yinbolian)

References

Details

Attachments

(1 file)

Move over the code about states.
I'm putting the email threads here:

> Do we have nsAccessible::GetAccExtState() before. Can we add it now to 
> support atk states. 
I don't object to this, though there are only 29 states in ATK. 

Aaron, how about using PRInt64 for accState like what ATK does?
If PRInt64 works, use it instead.

I've been told that it has problems. We should ask someone about that.
Yes, it works. There are hundreds places used PRInt64 in mozilla code, for example:
http://lxr.mozilla.org/seamonkey/source/xpcom/components/nsComponentManager.cpp#1077
Great, use it.

I'm forgetting what I was told. Maybe it is not usable in interfaces or is not
scriptable? I don't see it in nsI*.h or nsI*.idl files.
Forget what I said, I was crazy/stupid.

You're right, I see it in many places.
Oh, PRUint64 cannot be const in idl.  So I cannot change extended state type
from "const unsigned long" to "const unsigned long long". 


Not change the interface, use the methods: GetAccState and GetAccExtState
Attachment #123744 - Flags: review?(kyle.yuan)
Comment on attachment 123744 [details] [diff] [review]
this patch use the old interface

r=kyle
Attachment #123744 - Flags: review?(kyle.yuan) → review+
checked in Trunk.
Status: NEW → RESOLVED
Closed: 21 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: