|
|
Re: Help for MSAA: msg#00022
mozilla.accessibility
|
Subject: |
Re: Help for MSAA |
The IServiceProvider and ISimpleDOM* stuff is broken in Firefox
1.0. Remember that Firefox 1.0 is based on a code branch from
over 1 1/2 years ago. The accessibility implementation has
changed a lot since then.
- Aaron
Atiz wrote:
Hi I've played around with the inspector object as well as witht he
accessibility explorer to double check the window i have is correct.
Say, for example i open google in firefox. I manage to get the window
for the search (editable text) then according to the docs, i'm suppose
to find window with control id of 1 which is a child of that editable
text n put it into the AccessibleObjectfromWindow(). Obviously it did
not work (argument invalid). I then tried with
AccessibleObjectFromEvent() and it works.
Next step i tried is to call the service provider.
IServiceProvider *pServProv = NULL;
pAcc->QueryInterface(IID_IServiceProvider, (void**)&pServProv);
ISimpleDOMNode *pSimpleDOMNode;
if (pServProv) {
const GUID refguid = {0x0c539790, 0x12e4, 0x11cf, 0xb6, 0x61, 0x00,
0xaa, 0x00, 0x4c, 0xd6, 0xd8};
HRESULT result = pServProv->QueryService(refguid, IID_ISimpleDOMNode,
(void**)&pSimpleDOMNode);
if (SUCCEEDED(result) && pSimpleDOMNode != NULL) {
MessageBox(NULL,"gd riddence!", MB_OK);
/* This is a Mozilla node! Use special ISimpleDOMNode methods
described in ISimpleDOMNode.idl. */
}
}
no service was to be found.
|
|