tests/cefclient/browser/osr_accessibility_node_win.cc
// Check and returns the accessible name for element from accessibility tree
Check and returns the accessible name for element from accessibility tree
Check and returns the accessible name for element from accessibility tree
STDMETHODIMP CefIAccessible::get_accName(VARIANT varChild, BSTR* pszName) {
  HRESULT retCode = DATACHECK(node_);
  if (SUCCEEDED(retCode)) {
    if (pszName && VALID_CHILDID(varChild)) {
      std::wstring name = node_->AxName();
      CComBSTR bstrResult(name.c_str());
      *pszName = bstrResult.Detach();
    }
  } else {
    retCode = E_INVALIDARG;
  }
  return retCode;
}
STDMETHODIMP CefIAccessible :: get_accName ( VARIANT varChild , BSTR * pszName ) { HRESULT retCode = DATACHECK ( node_ ) ; if ( SUCCEEDED ( retCode ) ) { if ( pszName && VALID_CHILDID ( varChild ) ) { std :: wstring name = node_ -> AxName ( ) ; CComBSTR bstrResult ( name . c_str ( ) ) ; * pszName = bstrResult . Detach ( ) ; } } else { retCode = E_INVALIDARG ; } return retCode ; }
Check and returns the accessible name for element from accessibility tree
Check and returns the accessible name for element from accessibility tree