bug 1210803 - expose the selection interface on proxied accessibles r=davidb

This commit is contained in:
Trevor Saunders 2015-10-02 05:24:15 -04:00
parent 6e6e4680c4
commit 5015adead0
3 changed files with 9 additions and 0 deletions

View File

@ -1115,6 +1115,10 @@ GetInterfacesForProxy(ProxyAccessible* aProxy, uint32_t aInterfaces)
if (aInterfaces & Interfaces::DOCUMENT)
interfaces |= 1 << MAI_INTERFACE_DOCUMENT;
if (aInterfaces & Interfaces::SELECTION) {
interfaces |= 1 << MAI_INTERFACE_SELECTION;
}
return interfaces;
}

View File

@ -43,6 +43,10 @@ InterfacesFor(Accessible* aAcc)
if (aAcc->IsDoc())
interfaces |= Interfaces::DOCUMENT;
if (aAcc->IsSelect()) {
interfaces |= Interfaces::SELECTION;
}
return interfaces;
}

View File

@ -391,6 +391,7 @@ enum Interfaces
TABLE = 16,
TABLECELL = 32,
DOCUMENT = 64,
SELECTION = 128,
};
}