@mozilla.org/widget/dragservice;1
This component implements the following interfaces:
Constants
| PRInt32 | nsIDragService.DRAGDROP_ACTION_NONE | = 0 |
| PRInt32 | nsIDragService.DRAGDROP_ACTION_COPY | = 1 |
| PRInt32 | nsIDragService.DRAGDROP_ACTION_MOVE | = 2 |
| PRInt32 | nsIDragService.DRAGDROP_ACTION_LINK | = 4 |
Properties
PRBool nsIDragSession.canDrop
Set the current state of the drag, whether it can be dropped or not. usually the target "frame" sets this so the native system can render the correct feedback
PRUint32 nsIDragSession.dragAction
Sets the action (copy, move, link, et.c) for the current drag
readonly PRUint32 nsIDragSession.numDropItems
Get the number of items that were dropped
readonly nsIDOMDocument nsIDragSession.sourceDocument
The document where the drag was started, which will be null if the drag originated outside the application. Useful for determining if a drop originated in the same document.
readonly nsIDOMNode nsIDragSession.sourceNode
The dom node that was originally dragged to start the session, which will be null if the drag originated outside the application.
nsSize nsIDragSession.targetSize
Sets the current width and height of the drag target area. It will contain the current size of the Frame that the drag is currently in
Methods
| Interface | Method |
|---|---|
| nsIDragService |
void endDragSession ( PRBool doneDrag )
|
| nsIDragService |
void fireDragEventAtSource ( PRUint32 msg )
|
| nsIDragService |
nsIDragSession getCurrentSession ( )
|
| nsIDragSession |
void getData ( nsITransferable transferable , PRUint32 itemIndex )
|
| nsIDragService |
void invokeDragSession ( nsIDOMNode DOMNode , nsISupportsArray transferables , nsIScriptableRegion region , PRUint32 actionType )
|
| nsIDragService |
void invokeDragSessionWithImage ( nsIDOMNode DOMNode , nsISupportsArray transferableArray , nsIScriptableRegion region , PRUint32 actionType , nsIDOMNode image , PRInt32 imageX , PRInt32 imageY , nsIDOMMouseEvent dragEvent )
|
| nsIDragService |
void invokeDragSessionWithSelection ( nsISelection selection , nsISupportsArray transferableArray , PRUint32 actionType , nsIDOMMouseEvent dragEvent )
|
| nsIDragSession |
PRBool isDataFlavorSupported ( char* dataFlavor )
|
| nsIDragService |
void startDragSession ( )
|
Reference documentation is generated from Mozilla's source.
