Changeset 74439 in vbox for trunk/include/VBox
- Timestamp:
- Sep 24, 2018 12:30:47 PM (6 years ago)
- Location:
- trunk/include/VBox
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/HostServices/DragAndDropSvc.h
r74411 r74439 67 67 #include <VBox/VMMDevCoreTypes.h> 68 68 #include <VBox/VBoxGuestCoreTypes.h> 69 70 /*71 * The mode of operations.72 */73 #define VBOX_DRAG_AND_DROP_MODE_OFF 074 #define VBOX_DRAG_AND_DROP_MODE_HOST_TO_GUEST 175 #define VBOX_DRAG_AND_DROP_MODE_GUEST_TO_HOST 276 #define VBOX_DRAG_AND_DROP_MODE_BIDIRECTIONAL 377 78 #define VBOX_DND_ACTION_IGNORE UINT32_C(0)79 #define VBOX_DND_ACTION_COPY RT_BIT_32(0)80 #define VBOX_DND_ACTION_MOVE RT_BIT_32(1)81 #define VBOX_DND_ACTION_LINK RT_BIT_32(2)82 83 /** A single DnD action. */84 typedef uint32_t VBOXDNDACTION;85 /** A list of (OR'ed) DnD actions. */86 typedef uint32_t VBOXDNDACTIONLIST;87 88 #define hasDnDCopyAction(a) ((a) & VBOX_DND_ACTION_COPY)89 #define hasDnDMoveAction(a) ((a) & VBOX_DND_ACTION_MOVE)90 #define hasDnDLinkAction(a) ((a) & VBOX_DND_ACTION_LINK)91 92 #define isDnDIgnoreAction(a) ((a) == VBOX_DND_ACTION_IGNORE)93 #define isDnDCopyAction(a) ((a) == VBOX_DND_ACTION_COPY)94 #define isDnDMoveAction(a) ((a) == VBOX_DND_ACTION_MOVE)95 #define isDnDLinkAction(a) ((a) == VBOX_DND_ACTION_LINK)96 97 /** @def VBOX_DND_FORMATS_DEFAULT98 * Default drag'n drop formats.99 * Note: If you add new entries here, make sure you test those100 * with all supported guest OSes!101 */102 #define VBOX_DND_FORMATS_DEFAULT \103 "text/uri-list", \104 /* Text. */ \105 "text/html", \106 "text/plain;charset=utf-8", \107 "text/plain;charset=utf-16", \108 "text/plain", \109 "text/richtext", \110 "UTF8_STRING", \111 "TEXT", \112 "STRING", \113 /* OpenOffice formats. */ \114 /* See: https://wiki.openoffice.org/wiki/Documentation/DevGuide/OfficeDev/Common_Application_Features#OpenOffice.org_Clipboard_Data_Formats */ \115 "application/x-openoffice-embed-source-xml;windows_formatname=\"Star Embed Source (XML)\"", \116 "application/x-openoffice;windows_formatname=\"Bitmap\""117 69 118 70 namespace DragAndDropSvc { -
trunk/include/VBox/VBoxGuestLib.h
r74380 r74439 34 34 #include <VBox/VMMDev.h> 35 35 #include <VBox/VBoxGuestCoreTypes.h> 36 # ifdef VBOX_WITH_DRAG_AND_DROP 37 # include <VBox/GuestHost/DragAndDropDefs.h> 38 # endif 36 39 37 40 /** @defgroup grp_vboxguest_lib VirtualBox Guest Additions Library … … 920 923 /** Size (in bytes) of pszFormats (\0 included). */ 921 924 uint32_t cbFormats; 922 /** Allowed DnD actions. */923 uint32_t uAllActions;925 /** List of allowed DnD actions. */ 926 VBOXDNDACTIONLIST dndLstActionsAllowed; 924 927 } HG_Enter; 925 928 struct … … 929 932 /** Absolute Y position of guest screen. */ 930 933 uint32_t uYpos; 931 /** ProposedDnD action. */932 uint32_t uDefAction;934 /** Default DnD action. */ 935 VBOXDNDACTION dndActionDefault; 933 936 } HG_Move; 934 937 struct … … 942 945 /** Absolute Y position of guest screen. */ 943 946 uint32_t uYpos; 944 /** ProposedDnD action. */945 uint32_t uDefAction;947 /** Default DnD action. */ 948 VBOXDNDACTION dndActionDefault; 946 949 } HG_Drop; 947 950 struct … … 968 971 uint32_t cbFormat; 969 972 /** Requested DnD action. */ 970 uint32_t uAction;973 VBOXDNDACTION dndActionRequested; 971 974 } GH_Drop; 972 975 # endif … … 982 985 VBGLR3DECL(void) VbglR3DnDEventFree(PVBGLR3DNDEVENT pEvent); 983 986 984 VBGLR3DECL(int) VbglR3DnDHGSendAckOp(PVBGLR3GUESTDNDCMDCTX pCtx, uint32_t uAction);987 VBGLR3DECL(int) VbglR3DnDHGSendAckOp(PVBGLR3GUESTDNDCMDCTX pCtx, VBOXDNDACTION dndAction); 985 988 VBGLR3DECL(int) VbglR3DnDHGSendReqData(PVBGLR3GUESTDNDCMDCTX pCtx, const char *pcszFormat); 986 989 VBGLR3DECL(int) VbglR3DnDHGSendProgress(PVBGLR3GUESTDNDCMDCTX pCtx, uint32_t uStatus, uint8_t uPercent, int rcErr); 987 990 # ifdef VBOX_WITH_DRAG_AND_DROP_GH 988 VBGLR3DECL(int) VbglR3DnDGHSendAckPending(PVBGLR3GUESTDNDCMDCTX pCtx, uint32_t uDefAction, uint32_t uAllActions, const char* pcszFormats, uint32_t cbFormats);991 VBGLR3DECL(int) VbglR3DnDGHSendAckPending(PVBGLR3GUESTDNDCMDCTX pCtx, VBOXDNDACTION dndActionDefault, VBOXDNDACTIONLIST dndLstActionsAllowed, const char* pcszFormats, uint32_t cbFormats); 989 992 VBGLR3DECL(int) VbglR3DnDGHSendData(PVBGLR3GUESTDNDCMDCTX pCtx, const char *pszFormat, void *pvData, uint32_t cbData); 990 993 VBGLR3DECL(int) VbglR3DnDGHSendError(PVBGLR3GUESTDNDCMDCTX pCtx, int rcOp);
Note:
See TracChangeset
for help on using the changeset viewer.