From 12ceafc2c6a8021dcf48cafe72e24c49fa123ab1 Mon Sep 17 00:00:00 2001 From: "rods%netscape.com" Date: Fri, 23 Apr 1999 14:12:31 +0000 Subject: [PATCH] Added Set/Get DragAction git-svn-id: svn://10.0.0.236/trunk@28833 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/widget/public/nsIDragService.h | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/mozilla/widget/public/nsIDragService.h b/mozilla/widget/public/nsIDragService.h index c8385da907f..b8a08bfe590 100644 --- a/mozilla/widget/public/nsIDragService.h +++ b/mozilla/widget/public/nsIDragService.h @@ -28,9 +28,10 @@ struct nsSize; #define NS_IDRAGSERVICE_IID \ { 0x8b5314bb, 0xdb01, 0x11d2, { 0x96, 0xce, 0x0, 0x60, 0xb0, 0xfb, 0x99, 0x56 } } -#define DRAGDROP_ACTION_COPY 1 -#define DRAGDROP_ACTION_MOVE 2 -#define DRAGDROP_ACTION_LINK 4 +#define DRAGDROP_ACTION_NONE 0x0000 +#define DRAGDROP_ACTION_COPY 0x0001 +#define DRAGDROP_ACTION_MOVE 0x0002 +#define DRAGDROP_ACTION_LINK 0x0004 class nsIDragService : public nsISupports { @@ -53,6 +54,20 @@ class nsIDragService : public nsISupports { */ NS_IMETHOD GetCanDrop (PRBool * aCanDrop) = 0; + /** + * Sets the action (copy, move, link, et.c) for the current drag + * + * @param anAction the current action + */ + NS_IMETHOD SetDragAction (PRUint32 anAction) = 0; + + /** + * Gets the action (copy, move, link, et.c) for the current drag + * + * @param anAction the current action + */ + NS_IMETHOD GetDragAction (PRUint32 * anAction) = 0; + /** * Sets the current width and height if the drag target area. * It will contain the current size of the Frame that the drag is currently in