[Accessibility-ia2] getting relations

Alexander Surkov surkov.alexander at gmail.com
Fri Mar 2 05:42:07 UTC 2012


IAccessible2_2::relationsOfType is ok if IAccessibleRelation and
relatives and deprecated. Otherwise we run into name collision. Btw, I
don't have strong opinion about deprecation, let's AT developers to
decide.

If we add relations count as out argument then we get rid the idea of
lazy relations calculation. Iirc that was a primary reason of
IEnumVariant usage but I missed the point that IEnumVariant requires
the AT client to allocate the memory. So I think we should introduce
interface similar to IEnumVariant where the server allocates the
memory. That'll be similar to IAccessibleTable2 approach.

Thank you.
Alex.


On Wed, Feb 29, 2012 at 10:50 AM, James Teh <jamie at nvaccess.org> wrote:
> On 24/02/2012 1:19 PM, Pete Brunet wrote:
>>
>> We have also agreed we
>> need to be able to fetch relations by type,...
>>
>> though I'd like to name it IAccessible2_2::relationsOfType
>
> I prefer this name too. It's also worth noting that there probably needs to
> be an out parameter providing the count of relations, as otherwise, an AT
> wanting all relations doesn't know what count to pass to IEnumVariant::Next.
>
>> We had agreed that we still need IA2::relations (plural)
>> but I just want to verify that, i.e. is it still useful to get all the
>> relations when it is possible to get only the relations of interest on a
>> type by type basis?
>
> Personally, I don't see any use for this. I can't think fo any use cases and
> although retrieving all relations in one go means less calls, generating
> them is expensive for the server. However, others may disagree.
>
>
>> If IA2::relations is deprecated then IARelation could also be deprecated.
>
> Right.
>
> Jamie
>
> --
> James Teh
> Director, NV Access Limited
> Email: jamie at nvaccess.org
> Web site: http://www.nvaccess.org/
> Phone: +61 7 5667 8372
> _______________________________________________
> Accessibility-ia2 mailing list
> Accessibility-ia2 at lists.linuxfoundation.org
> https://lists.linuxfoundation.org/mailman/listinfo/accessibility-ia2


More information about the Accessibility-ia2 mailing list