From c1f6de65b92d634bc5ba2ea3f0babe27d477b7ad Mon Sep 17 00:00:00 2001 From: "rods%netscape.com" Date: Tue, 6 Apr 1999 20:24:46 +0000 Subject: [PATCH] Added new D&D events and removed D&D specific event struct git-svn-id: svn://10.0.0.236/trunk@26517 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/widget/public/nsGUIEvent.h | 35 +++++++----------------------- 1 file changed, 8 insertions(+), 27 deletions(-) diff --git a/mozilla/widget/public/nsGUIEvent.h b/mozilla/widget/public/nsGUIEvent.h index fefabc5fb98..dd1ce0f2a28 100644 --- a/mozilla/widget/public/nsGUIEvent.h +++ b/mozilla/widget/public/nsGUIEvent.h @@ -160,32 +160,6 @@ struct nsMenuEvent : public nsGUIEvent { PRUint32 mCommand; }; -/** - * Event status for D&D Event - */ - -enum nsDragDropEventStatus { - /// The event is a enter - nsDragDropEventStatus_eDragEntered, - /// The event is exit - nsDragDropEventStatus_eDragExited, - /// The event is drop - nsDragDropEventStatus_eDrop -}; - - -/** - * Drag & Drop event - * - * When this event occurs the widget field in nsGUIEvent holds the "target" - * for the event - */ - -struct nsDragDropEvent : public nsGUIEvent { - nsDragDropEventStatus mType; - PRBool mIsFileURL; - PRUnichar * mURL; -}; /** * Event Struct Types @@ -201,7 +175,7 @@ struct nsDragDropEvent : public nsGUIEvent { #define NS_TOOLTIP_EVENT 9 #define NS_MENU_EVENT 10 #define NS_DRAGDROP_EVENT 11 -#define NS_TEXT_EVENT 12 +#define NS_TEXT_EVENT 12 /** * GUI MESSAGES @@ -284,6 +258,13 @@ struct nsDragDropEvent : public nsGUIEvent { #define NS_FOCUS_CONTENT (NS_FOCUS_EVENT_START) #define NS_BLUR_CONTENT (NS_FOCUS_EVENT_START + 1) + +#define NS_DRAGDROP_EVENT_START 1400 +#define NS_DRAGDROP_ENTER (NS_DRAGDROP_EVENT_START) +#define NS_DRAGDROP_OVER (NS_DRAGDROP_EVENT_START + 1) +#define NS_DRAGDROP_EXIT (NS_DRAGDROP_EVENT_START + 2) +#define NS_DRAGDROP_DROP (NS_DRAGDROP_EVENT_START + 3) + //@}