Logo Search packages:      
Sourcecode: xulrunner version File versions  Download package

PRBool nsAccessibleTreeWalker::GetAccessible (  )  [protected]

Return true if currently navigated node/frame is accessible.

If the DOM node's frame has an accessible or the DOMNode itself implements nsIAccessible return it.

Definition at line 281 of file nsAccessibleTreeWalker.cpp.

References mState.

Referenced by GetFirstChild(), and GetNextSibling().

  if (!mAccService) {
    return PR_FALSE;

  mState.accessible = nsnull;
  nsCOMPtr<nsIPresShell> presShell(do_QueryReferent(mWeakShell));

  mAccService->GetAccessible(mState.domNode, presShell, mWeakShell,
                             &mState.frame, &mState.isHidden,
  return mState.accessible ? PR_TRUE : PR_FALSE;

Generated by  Doxygen 1.6.0   Back to index