Closed Bug 395077 Opened 17 years ago Closed 17 years ago

Allow QueryService from any accessible to IAccessibleApplication

Categories

(Core :: Disability Access APIs, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: aaronlev, Assigned: aaronlev)

References

(Blocks 1 open bug)

Details

(Keywords: access)

Attachments

(1 file)

JAWS expects to be able to QS from an IAccessible to an IAccessibleApplication.

Actually this should probably be on nsAccessNodeWrap. Our current QueryService impl should move there.
Attached patch Simple patchSplinter Review
Attachment #279805 - Flags: review?(surkov.alexander)
Comment on attachment 279805 [details] [diff] [review]
Simple patch

>Index: accessible/src/msaa/nsAccessNodeWrap.cpp

>+#include "AccessibleApplication.h"

nit: nsApplicationAccessibleWrap.h includes this file already.

>+STDMETHODIMP
>+nsAccessNodeWrap::QueryService(REFGUID guidService, REFIID iid, void** ppv)
>+{

nit: please add 'a' prefix to arguments.

> 
>+  public: // IServiceProvider
>+    STDMETHODIMP QueryService(REFGUID guidService, REFIID riid, void** ppv);

here too.

> STDMETHODIMP
>-nsAccessibleWrap::QueryService(REFGUID guidService, REFIID iid, void** ppv)
>-{
>-  /**
>-   * To get an ISimpleDOMNode, ISimpleDOMDocument or ISimpleDOMText
>-   * from an IAccessible you have to use IServiceProvider like this:
>-   * --------------------------------------------------------------
>-   * ISimpleDOMDocument *pAccDoc = NULL;
>-   * IServiceProvider *pServProv = NULL;
>-   * pAcc->QueryInterface(IID_IServiceProvider, (void**)&pServProv);
>-   * if (pServProv) {
>-   *   const GUID unused;
>-   *   pServProv->QueryService(unused, IID_ISimpleDOMDocument, (void**)&pAccDoc);
>-   *   pServProv->Release();
>-   * }
>-   */

btw, should we do for document accessible similar things with application accessible?
Attachment #279805 - Flags: review?(surkov.alexander)
Attachment #279805 - Flags: review+
Attachment #279805 - Flags: approval1.9?
No, just application accessible.
Attachment #279805 - Flags: approval1.9? → approval1.9+
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: