From 0d03271f021d4449cd0a37dfb1e02f4aa10f82d8 Mon Sep 17 00:00:00 2001 From: "rods%netscape.com" Date: Tue, 9 Mar 1999 23:50:18 +0000 Subject: [PATCH] Added nsDragDropEvent git-svn-id: svn://10.0.0.236/trunk@23409 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/widget/public/nsGUIEvent.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/mozilla/widget/public/nsGUIEvent.h b/mozilla/widget/public/nsGUIEvent.h index 02fcba8bf0f..ef154b089c5 100644 --- a/mozilla/widget/public/nsGUIEvent.h +++ b/mozilla/widget/public/nsGUIEvent.h @@ -153,6 +153,33 @@ 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 */ @@ -166,6 +193,7 @@ struct nsMenuEvent : public nsGUIEvent { #define NS_MOUSE_EVENT 8 #define NS_TOOLTIP_EVENT 9 #define NS_MENU_EVENT 10 +#define NS_DRAGDROP_EVENT 11 /** * GUI MESSAGES