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

STDMETHODIMP nsAccessibleWrap::scrollToPoint ( enum IA2CoordinateType  coordinateType,
long  x,
long  y 
) [virtual, inherited]

Moves the top left of an object to a specified location.

Note: S_FALSE is returned if the object is already at the specified location.

Parameters:
[in] coordinateType Specifies whether the coordinates are relative to the screen or the parent object.
[in] x Defines the x coordinate.
[in] y Defines the y coordinate.

Implements IAccessible2.

Definition at line 1317 of file nsAccessibleWrap.cpp.

References nsIAccessibleCoordinateType::COORDTYPE_PARENT_RELATIVE, and nsIAccessibleCoordinateType::COORDTYPE_SCREEN_RELATIVE.

{
__try {
  PRUint32 geckoCoordType = (aCoordType == IA2_COORDTYPE_SCREEN_RELATIVE) ?
    nsIAccessibleCoordinateType::COORDTYPE_SCREEN_RELATIVE :
    nsIAccessibleCoordinateType::COORDTYPE_PARENT_RELATIVE;

  nsresult rv = ScrollToPoint(geckoCoordType, aX, aY);
  return GetHRESULT(rv);

} __except(nsAccessNodeWrap::FilterA11yExceptions(::GetExceptionCode(), GetExceptionInformation())) { }
  return E_FAIL;
}


Generated by  Doxygen 1.6.0   Back to index