mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 1243077 - make it possible to get MaiAtkObject::mAccWrap from an AtkObject* without casting to Accessible* or ProxyAccessible* r=davidb
This commit is contained in:
parent
68157e1e81
commit
ed7112af70
@ -1088,11 +1088,16 @@ GetAccessibleWrap(AtkObject* aAtkObj)
|
|||||||
ProxyAccessible*
|
ProxyAccessible*
|
||||||
GetProxy(AtkObject* aObj)
|
GetProxy(AtkObject* aObj)
|
||||||
{
|
{
|
||||||
if (!aObj || !IS_MAI_OBJECT(aObj) ||
|
return GetInternalObj(aObj).AsProxy();
|
||||||
!MAI_ATK_OBJECT(aObj)->accWrap.IsProxy())
|
}
|
||||||
|
|
||||||
|
AccessibleOrProxy
|
||||||
|
GetInternalObj(AtkObject* aObj)
|
||||||
|
{
|
||||||
|
if (!aObj || !IS_MAI_OBJECT(aObj))
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
|
||||||
return MAI_ATK_OBJECT(aObj)->accWrap.AsProxy();
|
return MAI_ATK_OBJECT(aObj)->accWrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
AtkObject*
|
AtkObject*
|
||||||
|
@ -67,6 +67,7 @@ typedef struct _MaiAtkSocketClass
|
|||||||
|
|
||||||
mozilla::a11y::AccessibleWrap* GetAccessibleWrap(AtkObject* aAtkObj);
|
mozilla::a11y::AccessibleWrap* GetAccessibleWrap(AtkObject* aAtkObj);
|
||||||
mozilla::a11y::ProxyAccessible* GetProxy(AtkObject* aAtkObj);
|
mozilla::a11y::ProxyAccessible* GetProxy(AtkObject* aAtkObj);
|
||||||
|
mozilla::a11y::AccessibleOrProxy GetInternalObj(AtkObject* aObj);
|
||||||
AtkObject* GetWrapperFor(mozilla::a11y::ProxyAccessible* aProxy);
|
AtkObject* GetWrapperFor(mozilla::a11y::ProxyAccessible* aProxy);
|
||||||
|
|
||||||
extern int atkMajorVersion, atkMinorVersion;
|
extern int atkMajorVersion, atkMinorVersion;
|
||||||
|
Loading…
Reference in New Issue
Block a user