зеркало из https://github.com/mozilla/gecko-dev.git
bug 1155829 - declare MaiAtkObject in nsMai.h r=yzen
Next we will start adding methods to it that are used outside AccessibleWrap.cpp.
This commit is contained in:
Родитель
4179b7fa2a
Коммит
42d80bc478
|
@ -123,28 +123,12 @@ static const GInterfaceInfo atk_if_infos[] = {
|
|||
(GInterfaceFinalizeFunc) nullptr, nullptr}
|
||||
};
|
||||
|
||||
/**
|
||||
* This MaiAtkObject is a thin wrapper, in the MAI namespace, for AtkObject
|
||||
*/
|
||||
struct MaiAtkObject
|
||||
{
|
||||
AtkObject parent;
|
||||
/*
|
||||
* The AccessibleWrap whose properties and features are exported
|
||||
* via this object instance.
|
||||
*/
|
||||
uintptr_t accWrap;
|
||||
|
||||
/*
|
||||
* Shutdown this AtkObject.
|
||||
*/
|
||||
void Shutdown();
|
||||
};
|
||||
|
||||
// This is or'd with the pointer in MaiAtkObject::accWrap if the wrap-ee is a
|
||||
// proxy.
|
||||
static const uintptr_t IS_PROXY = 1;
|
||||
|
||||
static GQuark quark_mai_hyperlink = 0;
|
||||
|
||||
void
|
||||
MaiAtkObject::Shutdown()
|
||||
{
|
||||
|
@ -225,8 +209,6 @@ static const char * GetUniqueMaiAtkTypeName(uint16_t interfacesBits);
|
|||
|
||||
static gpointer parent_class = nullptr;
|
||||
|
||||
static GQuark quark_mai_hyperlink = 0;
|
||||
|
||||
GType
|
||||
mai_atk_object_get_type(void)
|
||||
{
|
||||
|
@ -270,7 +252,7 @@ AccessibleWrap::ShutdownAtkObject()
|
|||
if (!mAtkObject)
|
||||
return;
|
||||
|
||||
MOZ_ASSERT(IS_MAI_OBJECT(mAtkObject));
|
||||
NS_ASSERTION(IS_MAI_OBJECT(mAtkObject), "wrong type of atk object");
|
||||
if (IS_MAI_OBJECT(mAtkObject))
|
||||
MAI_ATK_OBJECT(mAtkObject)->Shutdown();
|
||||
|
||||
|
|
|
@ -51,4 +51,22 @@ IsAtkVersionAtLeast(int aMajor, int aMinor)
|
|||
(aMajor == atkMajorVersion && aMinor <= atkMinorVersion);
|
||||
}
|
||||
|
||||
/**
|
||||
* This MaiAtkObject is a thin wrapper, in the MAI namespace, for AtkObject
|
||||
*/
|
||||
struct MaiAtkObject
|
||||
{
|
||||
AtkObject parent;
|
||||
/*
|
||||
* The AccessibleWrap whose properties and features are exported
|
||||
* via this object instance.
|
||||
*/
|
||||
uintptr_t accWrap;
|
||||
|
||||
/*
|
||||
* Shutdown this AtkObject.
|
||||
*/
|
||||
void Shutdown();
|
||||
};
|
||||
|
||||
#endif /* __NS_MAI_H__ */
|
||||
|
|
Загрузка…
Ссылка в новой задаче