B2G/gecko/browser/base/content/test/newtab/head.js
/**
 * Sends a custom drag event to a given DOM element.
 * @param aEventType The drag event's type.
 * @param aTarget The DOM element that the event is dispatched to.
 * @param aData The event's drag data (optional).
 */
Sends a custom drag event to a given DOM element.
@param aEventType The drag event's type.
@param aTarget The DOM element that the event is dispatched to.
@param aData The event's drag data (optional).
Sends a custom drag event to a given DOM element . @param aEventType The drag event ' s type . @param aTarget The DOM element that the event is dispatched to . @param aData The event ' s drag data ( optional ) .
function sendDragEvent(aEventType, aTarget, aData) {
  let event = createDragEvent(aEventType, aData);
  let ifaceReq = getContentWindow().QueryInterface(Ci.nsIInterfaceRequestor);
  let windowUtils = ifaceReq.getInterface(Ci.nsIDOMWindowUtils);
  windowUtils.dispatchDOMEventViaPresShell(aTarget, event, true);
}
function sendDragEvent ( aEventType , aTarget , aData ) { let event = createDragEvent ( aEventType , aData ) ; let ifaceReq = getContentWindow ( ) . QueryInterface ( Ci . nsIInterfaceRequestor ) ; let windowUtils = ifaceReq . getInterface ( Ci . nsIDOMWindowUtils ) ; windowUtils . dispatchDOMEventViaPresShell ( aTarget , event , true ) ; }
Sends a custom drag event to a given DOM element.
Sends a custom drag event to a given DOM element .