зеркало из https://github.com/mozilla/gecko-dev.git
bug 1210884 - expose the action interface on proxied accessibles r=davidb
This commit is contained in:
Родитель
fdc2c57a4a
Коммит
d12bfed3c9
|
@ -1128,6 +1128,10 @@ GetInterfacesForProxy(ProxyAccessible* aProxy, uint32_t aInterfaces)
|
|||
interfaces |= 1 << MAI_INTERFACE_SELECTION;
|
||||
}
|
||||
|
||||
if (aInterfaces & Interfaces::ACTION) {
|
||||
interfaces |= 1 << MAI_INTERFACE_ACTION;
|
||||
}
|
||||
|
||||
return interfaces;
|
||||
}
|
||||
|
||||
|
|
|
@ -50,6 +50,10 @@ InterfacesFor(Accessible* aAcc)
|
|||
interfaces |= Interfaces::SELECTION;
|
||||
}
|
||||
|
||||
if (aAcc->ActionCount()) {
|
||||
interfaces |= Interfaces::ACTION;
|
||||
}
|
||||
|
||||
return interfaces;
|
||||
}
|
||||
|
||||
|
|
|
@ -395,6 +395,7 @@ enum Interfaces
|
|||
TABLECELL = 32,
|
||||
DOCUMENT = 64,
|
||||
SELECTION = 128,
|
||||
ACTION = 256,
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче