Re: [Accessibility-ia2] getting relations

2012-03-01 Thread Alexander Surkov
> If I understand correctly, that would require a separate call to fetch each > relation, which might not be desirable in some cases and also defeats the > point of IEnumVARIANT. (If we're going to do that, we may as well have the > function take an additional parameter specifying the index of the

Re: [Accessibility-ia2] getting relations

2012-03-01 Thread James Teh
On 2/03/2012 3:42 PM, Alexander Surkov wrote: 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 w

Re: [Accessibility-ia2] Please review these three proposals

2012-03-01 Thread Alexander Surkov
And again we need something similar to IEnumVariant but not IEnumVariant to do lazy computations :) Alex. On Fri, Mar 2, 2012 at 5:24 AM, Pete Brunet wrote: > On 2/28/12 8:00 PM, James Teh wrote: > > On 24/02/2012 12:48 PM, Pete Brunet wrote: > > https://wiki.mozilla.org/Accessibility/IA2_1.3#Hy

Re: [Accessibility-ia2] getting relations

2012-03-01 Thread Alexander Surkov
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 c

Re: [Accessibility-ia2] Getting the document accessible

2012-03-01 Thread Alexander Surkov
It's not very flexible. For example, you need to call several times if you want to get an accessible having a role from desired set of roles. Actually it introduces the basics of traversal API which must be handy for ATs but these basics don't look enough. Also I worry if document is mapped well a

Re: [Accessibility-ia2] Finding the most recent target of the most recent activation of an in page link

2012-03-01 Thread Alexander Surkov
You mean change from IAccessible2 to IUnknown? If so then fine with me since it looks similar to other interfaces. Alex. On Fri, Mar 2, 2012 at 7:08 AM, Pete Brunet wrote: > After all our discussion I believe we've reached the point where we can say > the proposal at > https://wiki.mozilla.org/A

Re: [Accessibility-ia2] New relations

2012-03-01 Thread Alexander Surkov
Fine with me. We always can add them if we get a usecase. It doesn't require us to change interfaces so that should be simple. Alex. On Fri, Mar 2, 2012 at 7:21 AM, James Teh wrote: > On 2/03/2012 6:06 AM, Pete Brunet wrote: >> >> What is the use case for >> IA2_RELATION_GROUPING_OBJECT_FOR? > >

Re: [Accessibility-ia2] New relations

2012-03-01 Thread James Teh
On 2/03/2012 6:06 AM, Pete Brunet wrote: What is the use case for IA2_RELATION_GROUPING_OBJECT_FOR? I can't think of any use cases. If I recall correctly, you suggested it for symmetry, but imo, it's unnecessary symmetry. Jamie -- James Teh Director, NV Access Limited Email: ja...@nvaccess.or

Re: [Accessibility-ia2] Finding the most recent target of the most recent activation of an in page link

2012-03-01 Thread Pete Brunet
After all our discussion I believe we've reached the point where we can say the proposal at https://wiki.mozilla.org/Accessibility/IA2_1.3#Anchor_target is accepted. However, I don't see a need for IAccessibleDocument to derive from a super-interface, so I propose that this be changed. Pete On

Re: [Accessibility-ia2] Getting the document accessible

2012-03-01 Thread Pete Brunet
Maybe we need IA2::containerOfRole? HRESULT IAccessible2::containerOfRole([in]long role, [out, retval] IUnknown **container) Pete On 2/23/12 8:40 PM, Alexander Surkov wrote: > I'd say we should consider interfaces performant by design. If AT > needs to get a containing document for accessible oc

Re: [Accessibility-ia2] Please review these three proposals

2012-03-01 Thread Pete Brunet
On 2/28/12 8:00 PM, James Teh wrote: > On 24/02/2012 12:48 PM, Pete Brunet wrote: >> https://wiki.mozilla.org/Accessibility/IA2_1.3#Hyperlinks_from_hypertext > Again, there probably needs to be an out parameter for the count so > that a client wanting all hyperlinks knows what to pass to > IEnumVar

Re: [Accessibility-ia2] getting relations

2012-03-01 Thread Pete Brunet
On 2/28/12 7:50 PM, James Teh 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

Re: [Accessibility-ia2] New relations

2012-03-01 Thread Pete Brunet
There are cases where the implementer is bridging from a toolkit and has no control over that toolkit's structuring and IA2_RELATION_MEMBER_OF is needed. But do we need the reverse? What is the use case for IA2_RELATION_GROUPING_OBJECT_FOR? Grouping objects don't get focus. In a virtual cursor

[Accessibility-ia2] accessibleWithCaret

2012-03-01 Thread Pete Brunet
Hi Rich, That text for accessibleWithCaret is misleading: Propose: performant way to get caret offset within direct hypertext accessible containing the caret. The use case (from https://lists.linuxfoundation.org/pipermail/accessibility-ia2/2010-December/001311.html) 1. GetGUIThreadInfo(). // Get