PRUint32 accRole; accWrap->GetRole(&accRole); if (NS_STATIC_CAST(AtkRole, accRole) == ATK_ROLE_PASSWORD_TEXT) { uniChar = '*'; }
getCharacterAtOffsetCB(AtkText *aText, gint aOffset){    nsAccessibleWrap *accWrap = GetAccessibleWrap(ATK_OBJECT(aText));    NS_ENSURE_TRUE(accWrap, 0);    nsCOMPtr<nsIAccessibleText> accText;    accWrap->QueryInterface(NS_GET_IID(nsIAccessibleText),                            getter_AddRefs(accText));    NS_ENSURE_TRUE(accText, 0);    /* PRUnichar is unsigned short in Mozilla */    /* gnuichar is guint32 in glib */    PRUnichar uniChar;    nsresult rv =        accText->GetCharacterAtOffset(aOffset, &uniChar);    return (NS_FAILED(rv)) ? 0 : NS_STATIC_CAST(gunichar, uniChar);}