static gint getSelectionCountCB(AtkSelection *aSelection) { AccessibleWrap* accWrap = GetAccessibleWrap(ATK_OBJECT(aSelection)); if (!accWrap || !accWrap->IsSelect()) return -1; return accWrap->SelectedItemCount(); }
static gint getSelectionCountCB(AtkSelection *aSelection) { AccessibleWrap* accWrap = GetAccessibleWrap(ATK_OBJECT(aSelection)); if (accWrap && accWrap->IsSelect()) { return accWrap->SelectedItemCount(); } if (ProxyAccessible* proxy = GetProxy(ATK_OBJECT(aSelection))) { return proxy->SelectedItemCount(); } return -1; }