Changeset 97762 in vbox
- Timestamp:
- Dec 7, 2022 4:59:03 PM (2 years ago)
- svn:sync-xref-src-repo-rev:
- 154826
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/GuestHost/DragAndDrop.h
r97730 r97762 105 105 const char *DnDGuestMsgToStr(uint32_t uMsg); 106 106 const char *DnDActionToStr(VBOXDNDACTION uAction); 107 const char *DnDStateToStr(VBOXDNDSTATE enmState); 107 108 108 109 bool DnDMIMEHasFileURLs(const char *pcszFormat, size_t cchFormatMax); -
trunk/include/VBox/GuestHost/DragAndDropDefs.h
r96407 r97762 90 90 "application/x-openoffice;windows_formatname=\"Bitmap\"" 91 91 92 /** 93 * Enumeration for keeping a DnD state. 94 */ 95 typedef enum 96 { 97 VBOXDNDSTATE_UNKNOWN = 0, 98 VBOXDNDSTATE_ENTERED, 99 VBOXDNDSTATE_LEFT, 100 VBOXDNDSTATE_QUERY_FORMATS, 101 VBOXDNDSTATE_QUERY_STATUS, 102 VBOXDNDSTATE_DRAGGING, 103 VBOXDNDSTATE_DROP_STARTED, 104 VBOXDNDSTATE_DROP_ENDED, 105 VBOXDNDSTATE_CANCELLED, 106 VBOXDNDSTATE_ERROR 107 } VBOXDNDSTATE; 108 /** Pointer to a DnD state. */ 109 typedef VBOXDNDSTATE *PVBOXDNDSTATE; 110 92 111 #endif /* !VBOX_INCLUDED_GuestHost_DragAndDropDefs_h */ 93 112 -
trunk/src/VBox/GuestHost/DragAndDrop/DnDUtils.cpp
r97748 r97762 117 117 } 118 118 119 /** 120 * Converts a VBOXDNDSTATE to a string. 121 * 122 * @returns Stringified version of VBOXDNDSTATE. 123 * @param enmState DnD state to convert. 124 */ 125 const char *DnDStateToStr(VBOXDNDSTATE enmState) 126 { 127 switch (enmState) 128 { 129 case VBOXDNDSTATE_UNKNOWN: return "unknown"; 130 case VBOXDNDSTATE_ENTERED: return "entered VM window"; 131 case VBOXDNDSTATE_LEFT: return "left VM window"; 132 case VBOXDNDSTATE_QUERY_FORMATS: return "querying formats"; 133 case VBOXDNDSTATE_QUERY_STATUS: return "querying status"; 134 case VBOXDNDSTATE_DRAGGING: return "dragging"; 135 case VBOXDNDSTATE_DROP_STARTED: return "drop started"; 136 case VBOXDNDSTATE_DROP_ENDED: return "drop ended"; 137 case VBOXDNDSTATE_CANCELLED: return "cancelled"; 138 case VBOXDNDSTATE_ERROR: return "error"; 139 default: 140 break; 141 } 142 AssertMsgFailedReturn(("Unknown enmState=%d\n", enmState), "bad"); 143 } 144
Note:
See TracChangeset
for help on using the changeset viewer.