Back to index

lightning-sunbird  0.9+nobinonly
Defines | Functions | Variables
nsMai.h File Reference
#include <atk/atk.h>
#include <glib.h>
#include <glib-object.h>
#include "nsAccessibleWrap.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define MAI_LOG(level, args)
#define MAI_LOG_DEBUG(args)   MAI_LOG(PR_LOG_DEBUG, args)
#define MAI_LOG_WARNING(args)   MAI_LOG(PR_LOG_WARNING, args)
#define MAI_LOG_ERROR(args)   MAI_LOG(PR_LOG_ERROR, args)
#define MAI_TYPE_ATK_OBJECT   (mai_atk_object_get_type ())
#define MAI_ATK_OBJECT(obj)
#define MAI_ATK_OBJECT_CLASS(klass)
#define MAI_IS_ATK_OBJECT(obj)
#define MAI_IS_ATK_OBJECT_CLASS(klass)
#define MAI_ATK_OBJECT_GET_CLASS(obj)

Functions

GType mai_atk_object_get_type (void)
nsresult CheckMaiAtkObject (AtkObject *aAtkObj)
nsAccessibleWrapGetAccessibleWrap (AtkObject *aAtkObj)

Variables

PRLogModuleInfogMaiLog

Define Documentation

Value:
(G_TYPE_CHECK_INSTANCE_CAST ((obj), \
                                         MAI_TYPE_ATK_OBJECT, MaiAtkObject))

Definition at line 71 of file nsMai.h.

Value:
(G_TYPE_CHECK_CLASS_CAST ((klass), \
                                         MAI_TYPE_ATK_OBJECT, \
                                         MaiAtkObjectClass))

Definition at line 73 of file nsMai.h.

Value:
(G_TYPE_INSTANCE_GET_CLASS ((obj), \
                                         MAI_TYPE_ATK_OBJECT, \
                                         MaiAtkObjectClass))

Definition at line 80 of file nsMai.h.

Value:
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
                                         MAI_TYPE_ATK_OBJECT))

Definition at line 76 of file nsMai.h.

Value:
(G_TYPE_CHECK_CLASS_TYPE ((klass), \
                                         MAI_TYPE_ATK_OBJECT))

Definition at line 78 of file nsMai.h.

#define MAI_LOG (   level,
  args 
)

Definition at line 63 of file nsMai.h.

Definition at line 66 of file nsMai.h.

Definition at line 68 of file nsMai.h.

Definition at line 67 of file nsMai.h.

Definition at line 70 of file nsMai.h.


Function Documentation

nsresult CheckMaiAtkObject ( AtkObject *  aAtkObj)

Definition at line 980 of file nsAccessibleWrap.cpp.

{
    NS_ENSURE_ARG(MAI_IS_ATK_OBJECT(aAtkObj));
    nsAccessibleWrap * tmpAccWrap = MAI_ATK_OBJECT(aAtkObj)->accWrap;
    if (tmpAccWrap == nsnull)
        return NS_ERROR_INVALID_POINTER;
    if (tmpAccWrap != nsAppRootAccessible::Create() && !tmpAccWrap->IsValidObject())
        return NS_ERROR_INVALID_POINTER;
    if (tmpAccWrap->GetAtkObject() != aAtkObj)
        return NS_ERROR_FAILURE;
    return NS_OK;
}

Here is the call graph for this function:

Here is the caller graph for this function:

nsAccessibleWrap* GetAccessibleWrap ( AtkObject *  aAtkObj)

Definition at line 995 of file nsAccessibleWrap.cpp.

{
    NS_ENSURE_TRUE(MAI_IS_ATK_OBJECT(aAtkObj), nsnull);
    nsAccessibleWrap * tmpAccWrap = MAI_ATK_OBJECT(aAtkObj)->accWrap;
    NS_ENSURE_TRUE(tmpAccWrap != nsnull, nsnull);
    NS_ENSURE_TRUE(tmpAccWrap->GetAtkObject() == aAtkObj, nsnull);
    return tmpAccWrap;
}

Here is the call graph for this function:

Definition at line 154 of file nsAccessibleWrap.cpp.

{
    static GType type = 0;

    if (!type) {
        static const GTypeInfo tinfo = {
            sizeof(MaiAtkObjectClass),
            (GBaseInitFunc)NULL,
            (GBaseFinalizeFunc)NULL,
            (GClassInitFunc)classInitCB,
            (GClassFinalizeFunc)NULL,
            NULL, /* class data */
            sizeof(MaiAtkObject), /* instance size */
            0, /* nb preallocs */
            (GInstanceInitFunc)NULL,
            NULL /* value table */
        };

        type = g_type_register_static(ATK_TYPE_OBJECT,
                                      "MaiAtkObject", &tinfo, GTypeFlags(0));
    }
    return type;
}

Here is the call graph for this function:


Variable Documentation

Definition at line 142 of file nsAppRootAccessible.cpp.