B2G/gecko/accessible/tests/mochitest/pivot.js
/**
 * Put the virtual cursor's position on an object, and then remove it.
 *
 * @param aDocAcc     [in] document that manages the virtual cursor
 * @param aPosNode    [in] DOM node to hide after virtual cursor's position is
 *                    set to it.
 */
Put the virtual cursor's position on an object, and then remove it.
@param aDocAcc     [in] document that manages the virtual cursor
@param aPosNode    [in] DOM node to hide after virtual cursor's position is
set to it.
Put the virtual cursor ' s position on an object and then remove it . @param aDocAcc [ in ] document that manages the virtual cursor @param aPosNode [ in ] DOM node to hide after virtual cursor ' s position is set to it .
function removeVCPositionInvoker(aDocAcc, aPosNode)
{
  this.accessible = getAccessible(aPosNode);
  this.invoke = function removeVCPositionInvoker_invoke()
  {
    aDocAcc.virtualCursor.position = this.accessible;
    aPosNode.parentNode.removeChild(aPosNode);
  };
  this.getID = function removeVCPositionInvoker_getID()
  {
    return "Bring virtual cursor to accessible, and remove its DOM node.";
  };
  this.eventSeq = [
    new removeVCPositionChecker(aDocAcc, this.accessible.parent)
  ];
}
function removeVCPositionInvoker ( aDocAcc , aPosNode ) { this . accessible = getAccessible ( aPosNode ) ; this . invoke = function removeVCPositionInvoker_invoke ( ) { aDocAcc . virtualCursor . position = this . accessible ; aPosNode . parentNode . removeChild ( aPosNode ) ; } ; this . getID = function removeVCPositionInvoker_getID ( ) { return "Bring virtual cursor to accessible, and remove its DOM node." ; } ; this . eventSeq = [ new removeVCPositionChecker ( aDocAcc , this . accessible . parent ) ] ; }
Put the virtual cursor's position on an object, and then remove it.
Put the virtual cursor ' s position on an object and then remove it .