Here's outcome email from Mozilla bug [1] discussion, where Jamie (NVDA)
and me concluded that IAccessible2 environment would benefit from having a
new method to retrieve text/content selection in perfromant way. The idea
is to supplement IAccesible2_2::accessibleWithCaret method, introduced for
caret, by similar method for selection getting.
The proposed method may look like
typedef struct IA2Range {
AccessibleText* start;
long startOffset;
AccessibleText* end;
long endOffset;
} IA2Range;
selectionRanges([out, size_is(,*nRanges) IA2Range **ranges,
[out, retval] long *nRanges);
which returns an array of all continues selection ranges within the given
accessible, and hosted by new IAccessible2_3 inherited from IAccessible2_2.
Another idea from that thread was to keep newly added interfaces unfrozen,
until we are confident the interface will need no change in the nearest
future. So we'll be adding new methods into the end of the interface, to
keep binary compatibility.
Please let me know your thinking.
Thank you.
Alexander.
[1] https://bugzilla.mozilla.org/show_bug.cgi?id=1052866
_______________________________________________
Accessibility-ia2 mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/accessibility-ia2