Closed Bug 151108 Opened 22 years ago Closed 22 years ago

Support nsIAccessibleAction in MAI (Mozilla Atk Implementation)

Categories

(Core :: Disability Access APIs, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: yinbolian, Assigned: yinbolian)

References

Details

(Keywords: access)

Attachments

(1 file, 4 obsolete files)

 
Blocks: 145863
Status: NEW → ASSIGNED
Keywords: access
QA Contact: dsirnapalli → mindy.liu
Attached patch patch_v1 (obsolete) — Splinter Review
support nsIAccessibleAction Interface. 
map the call from atk action interface to nsIAccessibleAction Interface.
bolian, I suggest you call nsIAccessible::accDoAction() etc. directly rather
than call nsIAccessibleAction::doAction(), because I think there are a lot of
duplicate methods in those two interfaces and I'm not going to implement
nsIAccessibleAction in trunk.
Since Kyle said, there will be no sperate implementation of nsIAccessibleAction
in trunk, use nsIAccessilbe instead.
Attachment #87339 - Attachment is obsolete: true
Comment on attachment 87343 [details] [diff] [review]
patch_v2 (call funcs in nsIAccessilbe other than nsIAccessibleAction)


two comments:
1) you can use nsAccessible::GetAccKeyboardShortcut() in
MaiInterfaceAction::GetKeybinding()

2) +	//    nsIAccessibleAction *GetNSAccessibleAction();
this comment should be removed

other than above that is ok for me.
r=kyle
Attachment #87343 - Flags: review+
Kyle, GetAccKeyboardShortcut() is not suitable for action shortchut, there maybe
more than one action for nsAccessible.
Attachment #87343 - Attachment is obsolete: true
Comment on attachment 88430 [details] [diff] [review]
patch_v3 (move callback into C namespace)

r=kyle
Attachment #88430 - Flags: review+
Attached patch patch_v4 (obsolete) — Splinter Review
comments in bug 151133 hold here
Attachment #88430 - Attachment is obsolete: true
If you want
+    nsresult rv = accessible->AccDoAction(aActionIndex);
+    return (NS_FAILED(rv)) ? FALSE : TRUE;
could be
+    return ! NS_FAILED(accessible->AccDoAction(eActionIndex));

However, your way is good too :-)

Put in a better comment than
+    /* ???? */
+

Avoid else after return. It is not necessary.
+    if (maiInterfaceAction)
+        return maiInterfaceAction->DoAction(aActionIndex);
+    else
+        return FALSE;
Attachment #89219 - Attachment is obsolete: true
Comment on attachment 89245 [details] [diff] [review]
patch_v5 (add aaronl's comment, thanks)

r=aaronl
Attachment #89245 - Flags: review+
This bug has been checked in.
It is not in the default build and we need it to do later work. Further
comments, review, and super-review is still welcome, I will file new bug if
needed. Thanks for everyone.
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Comment on attachment 89245 [details] [diff] [review]
patch_v5 (add aaronl's comment, thanks)

sr=jst
Attachment #89245 - Flags: superreview+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: