mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
Bug 1172946 - (part 1) Add mozilla a11y namespace to mozAccessible.h r=tbsaunde
This commit is contained in:
parent
d2c7d17fac
commit
2df172ac41
@ -18,6 +18,10 @@
|
||||
* a document view. When we hand an object off to an AT, we always want
|
||||
* to give it the represented view, in the latter case.
|
||||
*/
|
||||
|
||||
namespace mozilla {
|
||||
namespace a11y {
|
||||
|
||||
inline id <mozAccessible>
|
||||
GetObjectOrRepresentedView(id <mozAccessible> aObject)
|
||||
{
|
||||
@ -25,7 +29,7 @@ GetObjectOrRepresentedView(id <mozAccessible> aObject)
|
||||
}
|
||||
|
||||
inline mozAccessible*
|
||||
GetNativeFromGeckoAccessible(mozilla::a11y::Accessible* aAccessible)
|
||||
GetNativeFromGeckoAccessible(Accessible* aAccessible)
|
||||
{
|
||||
mozAccessible* native = nil;
|
||||
aAccessible->GetNativeInterface((void**)&native);
|
||||
@ -33,11 +37,14 @@ GetNativeFromGeckoAccessible(mozilla::a11y::Accessible* aAccessible)
|
||||
}
|
||||
|
||||
inline mozAccessible*
|
||||
GetNativeFromProxy(mozilla::a11y::ProxyAccessible* aProxy)
|
||||
GetNativeFromProxy(ProxyAccessible* aProxy)
|
||||
{
|
||||
return reinterpret_cast<mozAccessible*>(aProxy->GetWrapper());
|
||||
}
|
||||
|
||||
} // a11y
|
||||
} // mozilla
|
||||
|
||||
// This is OR'd with the Accessible owner to indicate the wrap-ee is a proxy.
|
||||
static const uintptr_t IS_PROXY = 1;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user