зеркало из https://github.com/mozilla/pjs.git
Added Get/Set DragAction
This commit is contained in:
Родитель
67a6ddc081
Коммит
6d4d3b4eb9
|
@ -39,7 +39,8 @@ nsBaseDragService::nsBaseDragService() :
|
|||
mTargetSize(0,0)
|
||||
{
|
||||
NS_INIT_REFCNT();
|
||||
mCanDrop = PR_FALSE;
|
||||
mCanDrop = PR_FALSE;
|
||||
mDragAction = DRAGDROP_ACTION_NONE;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
|
@ -89,6 +90,20 @@ NS_IMETHODIMP nsBaseDragService::GetCanDrop (PRBool * aCanDrop)
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
//---------------------------------------------------------
|
||||
NS_IMETHODIMP nsBaseDragService::SetDragAction (PRUint32 anAction)
|
||||
{
|
||||
mDragAction = anAction;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
//---------------------------------------------------------
|
||||
NS_IMETHODIMP nsBaseDragService::GetDragAction (PRUint32 * anAction)
|
||||
{
|
||||
*anAction = mDragAction;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
//---------------------------------------------------------
|
||||
NS_IMETHODIMP nsBaseDragService::SetTargetSize (nsSize aDragTargetSize)
|
||||
{
|
||||
|
|
|
@ -42,6 +42,9 @@ public:
|
|||
NS_IMETHOD SetCanDrop (PRBool aCanDrop);
|
||||
NS_IMETHOD GetCanDrop (PRBool * aCanDrop);
|
||||
|
||||
NS_IMETHOD SetDragAction (PRUint32 anAction);
|
||||
NS_IMETHOD GetDragAction (PRUint32 * anAction);
|
||||
|
||||
NS_IMETHOD SetTargetSize (nsSize aDragTargetSize);
|
||||
NS_IMETHOD GetTargetSize (nsSize * aDragTargetSize);
|
||||
|
||||
|
@ -53,7 +56,7 @@ protected:
|
|||
nsCOMPtr<nsITransferable> mTransferable;
|
||||
PRBool mCanDrop;
|
||||
nsSize mTargetSize;
|
||||
|
||||
PRUint32 mDragAction;
|
||||
};
|
||||
|
||||
#endif // nsBaseDragService_h__
|
||||
|
|
Загрузка…
Ссылка в новой задаче