diff --git a/accessible/mac/mozAccessible.h b/accessible/mac/mozAccessible.h index dbe47afff391..65c71059a0bc 100644 --- a/accessible/mac/mozAccessible.h +++ b/accessible/mac/mozAccessible.h @@ -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 GetObjectOrRepresentedView(id aObject) { @@ -25,7 +29,7 @@ GetObjectOrRepresentedView(id 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(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;