VirtualBox

Changeset 76891 in vbox for trunk/src/VBox/Main/src-client


Ignore:
Timestamp:
Jan 18, 2019 1:17:20 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
128259
Message:

DnD: Renamed HOST_DND_HG_EVT_CANCEL -> HOST_DND_HG_CANCEL, fixes for host-side cancellation.

Location:
trunk/src/VBox/Main/src-client
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/GuestDnDPrivate.cpp

    r76553 r76891  
    922922int GuestDnDBase::sendCancel(void)
    923923{
    924     int rc = GuestDnDInst()->hostCall(HOST_DND_HG_EVT_CANCEL,
    925                                       0 /* cParms */, NULL /* paParms */);
    926 
    927     LogFlowFunc(("Generated cancelling request, rc=%Rrc\n", rc));
    928     return rc;
     924    GuestDnDMsg Msg;
     925    Msg.setType(HOST_DND_CANCEL);
     926    if (mDataBase.m_uProtocolVersion >= 3)
     927        Msg.setNextUInt32(0); /** @todo ContextID not used yet. */
     928
     929    LogRel2(("DnD: Cancelling operation on guest ..."));
     930
     931    return GuestDnDInst()->hostCall(Msg.getType(), Msg.getCount(), Msg.getParms());
    929932}
    930933
  • trunk/src/VBox/Main/src-client/GuestDnDTargetImpl.cpp

    r76553 r76891  
    652652        {
    653653            delete pTask;
    654             LogRel2(("DnD: Could not create SendDataTask object \n"));
     654            LogRel2(("DnD: Could not create SendDataTask object\n"));
    655655            throw hr = E_FAIL;
    656656        }
     
    686686    return hr;
    687687#endif /* VBOX_WITH_DRAG_AND_DROP */
    688 }
    689 
    690 int GuestDnDTarget::i_cancelOperation(void)
    691 {
    692     /** @todo Check for pending cancel requests. */
    693 
    694 #if 0 /** @todo Later. */
    695     /* Cancel any outstanding waits for guest responses first. */
    696     if (pResp)
    697         pResp->notifyAboutGuestResponse();
    698 #endif
    699 
    700     LogFlowFunc(("Cancelling operation, telling guest ...\n"));
    701 
    702     GuestDnDMsg Msg;
    703     Msg.setType(HOST_DND_HG_EVT_CANCEL);
    704     if (mDataBase.m_uProtocolVersion >= 3)
    705         Msg.setNextUInt32(0); /** @todo ContextID not used yet. */
    706 
    707     return GuestDnDInst()->hostCall(Msg.getType(), Msg.getCount(), Msg.getParms());
    708688}
    709689
     
    15531533#else /* VBOX_WITH_DRAG_AND_DROP */
    15541534
    1555     int rc = i_cancelOperation();
     1535    int rc = GuestDnDBase::sendCancel();
    15561536
    15571537    if (aVeto)
Note: See TracChangeset for help on using the changeset viewer.

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