VirtualBox

Changeset 95821 in vbox


Ignore:
Timestamp:
Jul 25, 2022 4:00:26 PM (2 years ago)
Author:
vboxsync
Message:

DnD: Added GuestHost/DnDUtils module for various utility functions, (release2) log the acknowledged / pending actions by the guest, to make it easier in the future to diagnose DnD errors. bugref:10267

Location:
trunk
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/GuestHost/DragAndDrop.h

    r93115 r95821  
    3434#include <iprt/fs.h>
    3535#include <iprt/list.h>
     36
     37#include <VBox/GuestHost/DragAndDropDefs.h>
    3638
    3739/** DnDURIDroppedFiles flags. */
     
    8991int DnDDroppedFilesReset(PDNDDROPPEDFILES pDF, bool fDelete);
    9092int DnDDroppedFilesRollback(PDNDDROPPEDFILES pDF);
     93
     94const char *DnDActionToStr(VBOXDNDACTION uAction);
    9195
    9296bool DnDMIMEHasFileURLs(const char *pcszFormat, size_t cchFormatMax);
  • trunk/src/VBox/GuestHost/DragAndDrop/Makefile.kmk

    r93115 r95821  
    2828        DnDPath.cpp \
    2929        DnDTransferObject.cpp \
    30         DnDTransferList.cpp
     30        DnDTransferList.cpp \
     31        DnDUtils.cpp
    3132
    3233#
     
    6162
    6263include $(FILE_KBUILD_SUB_FOOTER)
    63 
  • trunk/src/VBox/Main/Makefile.kmk

    r95741 r95821  
    11621162        src-client/GuestDnDPrivate.cpp \
    11631163        src-client/GuestDnDSourceImpl.cpp \
    1164         src-client/GuestDnDTargetImpl.cpp
     1164        src-client/GuestDnDTargetImpl.cpp \
     1165        $(PATH_ROOT)/src/VBox/GuestHost/DragAndDrop/DnDUtils.cpp
    11651166endif
    11661167ifdef VBOX_WITH_XPCOM
  • trunk/src/VBox/Main/src-client/GuestDnDPrivate.cpp

    r93115 r95821  
    571571            AssertReturn(sizeof(DragAndDropSvc::VBOXDNDCBHGACKOPDATA) == cbParms, VERR_INVALID_PARAMETER);
    572572            AssertReturn(DragAndDropSvc::CB_MAGIC_DND_HG_ACK_OP == pCBData->hdr.uMagic, VERR_INVALID_PARAMETER);
     573
     574            LogRel2(("DnD: Guest responded with action '%s' for host->guest drag event\n", DnDActionToStr(pCBData->uAction)));
    573575
    574576            setActionDefault(pCBData->uAction);
     
    628630            AssertReturn(DragAndDropSvc::CB_MAGIC_DND_GH_ACK_PENDING == pCBData->hdr.uMagic, VERR_INVALID_PARAMETER);
    629631
     632            LogRel2(("DnD: Host responded with default action '%s' (%RU32 bytes format data) to guest->host drag event\n",
     633                     DnDActionToStr(pCBData->uDefAction), pCBData->cbFormat));
     634
    630635            if (   pCBData->cbFormat  == 0
    631636                || pCBData->cbFormat  > _64K /** @todo Make the maximum size configurable? */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette