Part of fix for bug # 36037: drag&drop change.

This commit is contained in:
rjc%netscape.com 2000-05-08 23:43:01 +00:00
parent e0f332663a
commit 31fad5b776
11 changed files with 16 additions and 11 deletions

View File

@ -127,7 +127,7 @@ function BeginDragResultTree(event)
}
var nsIDragService = Components.interfaces.nsIDragService;
dragService.invokeDragSession ( transArray, null, nsIDragService.DRAGDROP_ACTION_COPY +
dragService.invokeDragSession ( event.target, transArray, null, nsIDragService.DRAGDROP_ACTION_COPY +
nsIDragService.DRAGDROP_ACTION_MOVE );
dragStarted = true;

View File

@ -133,7 +133,7 @@ function BeginDragThreadTree(event)
}
var nsIDragService = Components.interfaces.nsIDragService;
dragService.invokeDragSession ( transArray, null, nsIDragService.DRAGDROP_ACTION_COPY +
dragService.invokeDragSession ( event.target, transArray, null, nsIDragService.DRAGDROP_ACTION_COPY +
nsIDragService.DRAGDROP_ACTION_MOVE );
dragStarted = true;

View File

@ -196,7 +196,7 @@ function BeginDrag( event)
var nsIDragService = Components.interfaces.nsIDragService;
top.dragStart = true;
dragService.invokeDragSession ( transArray, null, nsIDragService.DRAGDROP_ACTION_MOVE);
dragService.invokeDragSession ( event.target, transArray, null, nsIDragService.DRAGDROP_ACTION_MOVE);
return( false); // don't propagate the event if a drag has begun

View File

@ -82,7 +82,8 @@ nsDragService::~nsDragService()
}
// nsIDragService
NS_IMETHODIMP nsDragService::InvokeDragSession (nsISupportsArray * anArrayTransferables,
NS_IMETHODIMP nsDragService::InvokeDragSession (nsIDOMNode *aDOMNode,
nsISupportsArray * anArrayTransferables,
nsIScriptableRegion * aRegion,
PRUint32 aActionType)
{

View File

@ -42,7 +42,8 @@ public:
NS_DECL_ISUPPORTS_INHERITED
// nsIDragService
NS_IMETHOD InvokeDragSession (nsISupportsArray * anArrayTransferables,
NS_IMETHOD InvokeDragSession (nsIDOMNode *aDOMNode,
nsISupportsArray * anArrayTransferables,
nsIScriptableRegion * aRegion,
PRUint32 aActionType);
NS_IMETHOD StartDragSession();

View File

@ -106,7 +106,8 @@ nsDragService::~nsDragService()
WinDestroyWindow( mDragWnd);
}
nsresult nsDragService::InvokeDragSession( nsISupportsArray *aTransArray,
nsresult nsDragService::InvokeDragSession( nsIDOMNode *aDOMNode,
nsISupportsArray *aTransArray,
nsIRegion *aRegion,
PRUint32 aActionType)
{

View File

@ -42,7 +42,8 @@ class nsDragService : public nsBaseDragService
virtual ~nsDragService();
// nsIDragService
NS_IMETHOD InvokeDragSession( nsISupportsArray *anArrayTransferables,
NS_IMETHOD InvokeDragSession( nsIDOMNode *aDOMNode,
nsISupportsArray *anArrayTransferables,
nsIRegion *aRegion, PRUint32 aActionType);
// nsIDragSession

View File

@ -97,7 +97,8 @@ NS_IMETHODIMP nsDragService::EndDragSession()
//-------------------------------------------------------------------------
NS_IMETHODIMP nsDragService::InvokeDragSession (nsISupportsArray *aTransferableArray,
NS_IMETHODIMP nsDragService::InvokeDragSession (nsIDOMNode *aDOMNode,
nsISupportsArray *aTransferableArray,
nsIScriptableRegion *aRegion,
PRUint32 aActionType)
{

View File

@ -41,7 +41,7 @@ public:
NS_DECL_ISUPPORTS_INHERITED
// nsIDragService
NS_IMETHOD InvokeDragSession (nsISupportsArray * anArrayTransferables,
NS_IMETHOD InvokeDragSession (nsIDOMNode *aDOMNode, nsISupportsArray * anArrayTransferables,
nsIScriptableRegion * aRegion, PRUint32 aActionType);
NS_IMETHOD GetCurrentSession (nsIDragSession ** aSession);

View File

@ -62,7 +62,7 @@ nsDragService::~nsDragService()
//-------------------------------------------------------------------------
NS_IMETHODIMP nsDragService::InvokeDragSession (nsISupportsArray * anArrayTransferables, nsIScriptableRegion * aRegion, PRUint32 aActionType)
NS_IMETHODIMP nsDragService::InvokeDragSession (nsIDOMNode *aDOMNode, nsISupportsArray * anArrayTransferables, nsIScriptableRegion * aRegion, PRUint32 aActionType)
{
nsresult rv;
PRUint32 cnt;

View File

@ -41,7 +41,7 @@ public:
virtual ~nsDragService();
// nsIDragService
NS_IMETHOD InvokeDragSession (nsISupportsArray * anArrayTransferables, nsIScriptableRegion * aRegion, PRUint32 aActionType);
NS_IMETHOD InvokeDragSession (nsIDOMNode *aDOMNode, nsISupportsArray * anArrayTransferables, nsIScriptableRegion * aRegion, PRUint32 aActionType);
NS_IMETHOD GetCurrentSession (nsIDragSession ** aSession);
// nsIDragSession