Closed
Bug 151111
Opened 22 years ago
Closed 22 years ago
Support nsIAccessibleTable in MAI (Mozilla Atk Implementation)
Categories
(Core :: Disability Access APIs, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: yinbolian, Assigned: yinbolian)
References
Details
(Keywords: access)
Attachments
(1 file, 1 obsolete file)
21.96 KB,
patch
|
zhayupeng
:
review+
|
Details | Diff | Splinter Review |
Assignee | ||
Updated•22 years ago
|
Assignee | ||
Updated•22 years ago
|
Summary: Support nsIAccessibleHyperText in MAI (Mozilla Atk Implementation) → Support nsIAccessibleTable in MAI (Mozilla Atk Implementation)
Assignee | ||
Comment 1•22 years ago
|
||
Assignee | ||
Updated•22 years ago
|
Whiteboard: need r=
Assignee | ||
Comment 3•22 years ago
|
||
comments in bug 151133 hold here
Attachment #88432 -
Attachment is obsolete: true
Comment on attachment 89220 [details] [diff] [review] patch_v2 1) >+MaiWidget* >+MaiInterfaceTable::GetSummary() >+{ >+ /* ??? in nsIAccessibleTable, it returns a nsAString */ >+ return NULL; >+} This is because in html table "summary" is just an attribute of the table element. For example: <table summary="abc"></table> So, I can't make it to an accessible object since there is no domNode for it. 2) + /* ??? when the new one get freed? */ + MaiWidget *maiObj = new MaiWidget(accHeader); + return maiObj; I think the caller will free them... 3) +gint +MaiInterfaceTable::GetSelectedColumns(gint **aSelected) +{ + return 0; +} + +gint +MaiInterfaceTable::GetSelectedRows(gint **aSelected) +{ + return 0; +} Why these two functions return zero? Others seems OK for me. r=pete
Attachment #89220 -
Flags: review+
Assignee | ||
Comment 5•22 years ago
|
||
Thanks, pete for the object free problem, see bug 154327. For the two "return 0" function, I want to delay the implementation due to some unclear problem.
Comment 6•22 years ago
|
||
r=aaronl I should mention that it is possible to support the HTML summary attribute as it's own nsIAccessible if you want. You would have to override GetAccFirstChild(), GetAccLastChild(), GetAccChildCount(). We have overriden those methods in a few places already. Just thought I would mention it.
>You would have to overrideGetAccFirstChild(), GetAccLastChild(),
>GetAccChildCount(). We have overriden
>those methods in a few places already. Just thought I would mention it.
aaronl, Did you mean we can create an instance of nsIAccessible which
GetAccFirstChild(), GetAccLastChild() return null and GetAccChildCount() return
0, and GetAccValue() or GetAccName() return the summary attribute?
Comment 8•22 years ago
|
||
I just wanted to point out that you can add an nsIAccessible anywhere in the accessible tree, even if there is no dom node, by overriding the GetAccFirstChild(), GetAccLastChild() and GetAccChildCount() methods. That is how we did our HTML areas as children of the image, as IE does for MSAA.
Assignee | ||
Comment 9•22 years ago
|
||
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.
Whiteboard: need r=
Assignee | ||
Comment 10•22 years ago
|
||
=>Fix
Assignee | ||
Comment 11•22 years ago
|
||
=>Fix
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•