tests/cefclient/browser/osr_accessibility_node_win.cc
// Check and returns the MSAA Role for element from accessibility tree
Check and returns the MSAA Role for element from accessibility tree
Check and returns the MSAA Role for element from accessibility tree
STDMETHODIMP CefIAccessible::get_accRole(VARIANT varChild, VARIANT* pvarRole) {
  HRESULT retCode = DATACHECK(node_);
  if (SUCCEEDED(retCode)) {
    if (pvarRole) {
      pvarRole->vt = VT_I4;
      pvarRole->lVal = AxRoleToMSAARole(node_->AxRole());
    } else {
      retCode = E_INVALIDARG;
    }
  }
  return retCode;
}
STDMETHODIMP CefIAccessible :: get_accRole ( VARIANT varChild , VARIANT * pvarRole ) { HRESULT retCode = DATACHECK ( node_ ) ; if ( SUCCEEDED ( retCode ) ) { if ( pvarRole ) { pvarRole -> vt = VT_I4 ; pvarRole -> lVal = AxRoleToMSAARole ( node_ -> AxRole ( ) ) ; } else { retCode = E_INVALIDARG ; } } return retCode ; }
Check and returns the MSAA Role for element from accessibility tree
Check and returns the MSAA Role for element from accessibility tree
// Get the accessibilty role and Map to MSAA Role