B2G/gecko/browser/base/content/sanitizeDialog.js
/**
   * Helper function for the dragover event.  Your dragover listener should
   * call this.  It updates the selection in the tree under the mouse.
   *
   * @param aEvent
   *        The observed dragover event
   */
Helper function for the dragover event.  Your dragover listener should
call this.  It updates the selection in the tree under the mouse.

@param aEvent
The observed dragover event
Helper function for the dragover event . Your dragover listener should call this . It updates the selection in the tree under the mouse . @param aEvent The observed dragover event
function CSTH_ondragover(aEvent)
  {
    var ds = Cc["@mozilla.org/widget/dragservice;1"].
             getService(Ci.nsIDragService).
             getCurrentSession();
    ds.canDrop = true;
    ds.dragAction = 0;
    var tbo = this.tree.treeBoxObject;
    aEvent.QueryInterface(Ci.nsIDOMMouseEvent);
    var hoverRow = tbo.getRowAt(aEvent.clientX, aEvent.clientY);
    if (hoverRow < 0)
      return;
    this.rangedSelect(hoverRow - 1);
  }
function CSTH_ondragover ( aEvent ) { var ds = Cc [ "@mozilla.org/widget/dragservice;1" ] . getService ( Ci . nsIDragService ) . getCurrentSession ( ) ; ds . canDrop = true ; ds . dragAction = 0 ; var tbo = this . tree . treeBoxObject ; aEvent . QueryInterface ( Ci . nsIDOMMouseEvent ) ; var hoverRow = tbo . getRowAt ( aEvent . clientX , aEvent . clientY ) ; if ( hoverRow < 0 ) return ; this . rangedSelect ( hoverRow - 1 ) ; }
Helper function for the dragover event.
Helper function for the dragover event .
// Without this when dragging on Windows the mouse cursor is a "no" sign. // This makes it a drop symbol.