tests/cefclient/browser/osr_accessibility_node_win.cc
// child item selectionor for an item to take focus.
child item selectionor for an item to take focus.
child item selectionor for an item to take focus .
STDMETHODIMP CefIAccessible::accSelect(long flagsSelect, VARIANT varChild) {
  HRESULT retCode = DATACHECK(node_);
  if (SUCCEEDED(retCode)) {
    if (VALID_CHILDID(varChild)) {
      HWND hwnd = node_->GetWindowHandle();
      if (((flagsSelect & SELFLAG_TAKEFOCUS) > 0) && (GetFocus() == hwnd)) {
        RECT rcWnd;
        GetClientRect(hwnd, &rcWnd);
        InvalidateRect(hwnd, &rcWnd, FALSE);
      } else {
        retCode = S_FALSE;
      }
    } else {
      retCode = E_INVALIDARG;
    }
  }
  return retCode;
}
STDMETHODIMP CefIAccessible :: accSelect ( long flagsSelect , VARIANT varChild ) { HRESULT retCode = DATACHECK ( node_ ) ; if ( SUCCEEDED ( retCode ) ) { if ( VALID_CHILDID ( varChild ) ) { HWND hwnd = node_ -> GetWindowHandle ( ) ; if ( ( ( flagsSelect & SELFLAG_TAKEFOCUS ) > 0 ) && ( GetFocus ( ) == hwnd ) ) { RECT rcWnd ; GetClientRect ( hwnd , & rcWnd ) ; InvalidateRect ( hwnd , & rcWnd , FALSE ) ; } else { retCode = S_FALSE ; } } else { retCode = E_INVALIDARG ; } } return retCode ; }
child item selectionor for an item to take focus.
child item selectionor for an item to take focus .
// we only support SELFLAG_TAKEFOCUS.