Closed Bug 380038 Opened 19 years ago Closed 19 years ago

add (un)selectRow/Column method for nsIAccessibleTable

Categories

(Core :: Disability Access APIs, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: surkov, Assigned: surkov)

References

(Blocks 1 open bug)

Details

Attachments

(2 files, 1 obsolete file)

Attached patch patch (obsolete) — Splinter Review
1) add the following method nsIAccessibleTable selectRow/unselectRow/selectColumn/unselectColumn 2) implement fellow methods for IAccessibleTable
Attachment #264096 - Flags: superreview?(roc)
Attachment #264096 - Flags: review?(aaronleventhal)
Attached file testcase
Comment on attachment 264096 [details] [diff] [review] patch Couldn't we save a good amount of code by combining SelectRowOrColum and UnselectRowOrColumn and just adding PRBool aSelect as an argument? If you decide to do it please request r? again and I'll do it quickly.
Attachment #264096 - Flags: review?(aaronleventhal) → review+
Attached patch patch2Splinter Review
with Aaron's comment. If you see how to improve this then I'm happy to do it. Just I have a bit soaping sight and probably I miss something.
Attachment #264096 - Attachment is obsolete: true
Attachment #264114 - Flags: superreview?(roc)
Attachment #264114 - Flags: review?(aaronleventhal)
Attachment #264096 - Flags: superreview?(roc)
Comment on attachment 264114 [details] [diff] [review] patch2 Roc is more of an sr= for layout/view stuff. Switching sr= request to Neil.
Attachment #264114 - Flags: superreview?(roc) → superreview?(neil)
Comment on attachment 264114 [details] [diff] [review] patch2 Looks good to me. Roc is more of an sr= for layout/view stuff. Switching sr= request to Neil.
Attachment #264114 - Flags: review?(aaronleventhal) → review+
Comment on attachment 264114 [details] [diff] [review] patch2 >+ PRInt32 column = doSelectRow ? index : aIndex; Nit: two spaces between column and = >+ nsresult rv = selection2->GetRangesForIntervalCOMArray(parent, offset, >+ parent, offset, I don't know this API but doesn't that represent an empty range?
(In reply to comment #6) > >+ nsresult rv = selection2->GetRangesForIntervalCOMArray(parent, offset, > >+ parent, offset, > I don't know this API but doesn't that represent an empty range? > No, third argument points that returned ranges may be greater than given start and end. And at least it works :)
Status: NEW → ASSIGNED
Comment on attachment 264114 [details] [diff] [review] patch2 I see now, you're removing all ranges containing or contained by that cell.
Attachment #264114 - Flags: superreview?(neil) → superreview+
(In reply to comment #8) >(From update of attachment 264114 [details] [diff] [review]) >I see now, you're removing all ranges containing or contained by that cell. No, in fact, only those ranges containing that cell.
checked in
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Depends on: 380460
Blocks: 1835967
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: