mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 1210803 - expose the selection interface on proxied accessibles r=davidb
This commit is contained in:
parent
6e6e4680c4
commit
5015adead0
@ -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;
|
||||
}
|
||||
|
||||
|
@ -43,6 +43,10 @@ InterfacesFor(Accessible* aAcc)
|
||||
if (aAcc->IsDoc())
|
||||
interfaces |= Interfaces::DOCUMENT;
|
||||
|
||||
if (aAcc->IsSelect()) {
|
||||
interfaces |= Interfaces::SELECTION;
|
||||
}
|
||||
|
||||
return interfaces;
|
||||
}
|
||||
|
||||
|
@ -391,6 +391,7 @@ enum Interfaces
|
||||
TABLE = 16,
|
||||
TABLECELL = 32,
|
||||
DOCUMENT = 64,
|
||||
SELECTION = 128,
|
||||
};
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user