static void getImageSizeCB(AtkImage* aImage, gint* aAccWidth, gint* aAccHeight) { AccessibleWrap* accWrap = GetAccessibleWrap(ATK_OBJECT(aImage)); if (!accWrap || !accWrap->IsImage()) return; accWrap->AsImage()->GetImageSize(aAccWidth, aAccHeight); }
static void getImagePositionCB(AtkImage* aImage, gint* aAccX, gint* aAccY, AtkCoordType aCoordType) { AccessibleWrap* accWrap = GetAccessibleWrap(ATK_OBJECT(aImage)); if (!accWrap || !accWrap->IsImage()) return; ImageAccessible* image = accWrap->AsImage(); uint32_t goannaCoordType = (aCoordType == ATK_XY_WINDOW) ? nsIAccessibleCoordinateType::COORDTYPE_WINDOW_RELATIVE : nsIAccessibleCoordinateType::COORDTYPE_SCREEN_RELATIVE; // Returned in screen coordinates image->GetImagePosition(goannaCoordType, aAccX, aAccY); }