Optional
aInstancePtr: objectA run time mechanism for interface discovery.
NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not.
aInstancePtr must not be null.
[in] A requested interface IID
[out] A pointer to an interface pointer to receive the result.
Tells the Drag Service to end a drag session. This is called when an external drag occurs
If aDoneDrag is true, the drag has finished, otherwise the drag has just left the window.
Starts a modal drag session with an array of transaferables.
Note: This method is deprecated for non-native code.
the triggering principal of the drag, or null if it's from browser chrome or OS
The csp of the triggering Document
an array of transferables to be dragged
specified which of copy/move/link are allowed
the contentPolicyType that will be passed to the loadInfo when creating a new channel (defaults to TYPE_OTHER)
Starts a modal drag session using an image. The first four arguments are the same as invokeDragSession.
Note: This method is deprecated for non-native code.
A custom image may be specified using the aImage argument. If this is supplied, the aImageX and aImageY arguments specify the offset within the image where the cursor would be positioned. That is, when the image is drawn, it is offset up and left the amount so that the cursor appears at that location within the image.
If aImage is null, aImageX and aImageY are not used and the image is instead determined from the source node aDOMNode, and the offset calculated so that the initial location for the image appears in the same screen position as where the element is located. The node must be within a document.
Currently, supported images are all DOM nodes. If this is an HTML
The aDragEvent must be supplied as the current screen coordinates of the event are needed to calculate the image location.
Start a drag session with the data in aDragStartData from a child process. Other arguments are the same as invokeDragSessionWithImage.
Start a modal drag session using the selection as the drag image. The aDragEvent must be supplied as the current screen coordinates of the event are needed to calculate the image location.
Note: This method is deprecated for non-native code.
Similar to startDragSession(), automated tests may want to start session for emulating an external drag. At that time, this should be used instead of startDragSession().
Set default drag action which means allowed effects in the session and every DnD events are initialized with one of specified value. So, the value can be DRAGDROP_ACTION_NONE, or one or more values of DRAGDROP_ACTION_(MOVE|COPY|LINK).
Generated using TypeDoc
Increases the reference count for this interface. The associated instance will not be deleted unless the reference count is returned to zero.
Returns
The resulting reference count.