Changeset 58212 in vbox for trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxDnD.cpp
- Timestamp:
- Oct 13, 2015 11:49:33 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxDnD.cpp
r58157 r58212 22 22 #include <VBox/VBoxGuestLib.h> 23 23 #include "VBox/HostServices/DragAndDropSvc.h" 24 25 using namespace DragAndDropSvc; 24 26 25 27 #include <iprt/asm.h> … … 520 522 switch (pEvent->Event.uType) 521 523 { 522 case DragAndDropSvc::HOST_DND_HG_EVT_ENTER:524 case HOST_DND_HG_EVT_ENTER: 523 525 { 524 526 LogFlowThisFunc(("HOST_DND_HG_EVT_ENTER\n")); … … 540 542 } 541 543 542 case DragAndDropSvc::HOST_DND_HG_EVT_MOVE:544 case HOST_DND_HG_EVT_MOVE: 543 545 { 544 546 LogFlowThisFunc(("HOST_DND_HG_EVT_MOVE: %d,%d\n", … … 550 552 } 551 553 552 case DragAndDropSvc::HOST_DND_HG_EVT_LEAVE:554 case HOST_DND_HG_EVT_LEAVE: 553 555 { 554 556 LogFlowThisFunc(("HOST_DND_HG_EVT_LEAVE\n")); … … 558 560 } 559 561 560 case DragAndDropSvc::HOST_DND_HG_EVT_DROPPED:562 case HOST_DND_HG_EVT_DROPPED: 561 563 { 562 564 LogFlowThisFunc(("HOST_DND_HG_EVT_DROPPED\n")); … … 566 568 } 567 569 568 case DragAndDropSvc::HOST_DND_HG_SND_DATA: 570 case HOST_DND_HG_SND_DATA: 571 /* Protocol v1 + v2: Also contains the header data. 572 /* Note: Fall through is intentional. */ 573 case HOST_DND_HG_SND_DATA_HDR: 569 574 { 570 575 LogFlowThisFunc(("HOST_DND_HG_SND_DATA\n")); … … 575 580 } 576 581 577 case DragAndDropSvc::HOST_DND_HG_EVT_CANCEL:582 case HOST_DND_HG_EVT_CANCEL: 578 583 { 579 584 LogFlowThisFunc(("HOST_DND_HG_EVT_CANCEL\n")); … … 583 588 } 584 589 585 case DragAndDropSvc::HOST_DND_GH_REQ_PENDING:590 case HOST_DND_GH_REQ_PENDING: 586 591 { 587 592 LogFlowThisFunc(("HOST_DND_GH_REQ_PENDING\n")); … … 595 600 } 596 601 597 case DragAndDropSvc::HOST_DND_GH_EVT_DROPPED:602 case HOST_DND_GH_EVT_DROPPED: 598 603 { 599 604 LogFlowThisFunc(("HOST_DND_GH_EVT_DROPPED\n")); … … 616 621 switch (pEvent->Event.uType) 617 622 { 618 case DragAndDropSvc::HOST_DND_HG_EVT_ENTER:619 case DragAndDropSvc::HOST_DND_HG_EVT_MOVE:620 case DragAndDropSvc::HOST_DND_HG_EVT_DROPPED:623 case HOST_DND_HG_EVT_ENTER: 624 case HOST_DND_HG_EVT_MOVE: 625 case HOST_DND_HG_EVT_DROPPED: 621 626 #ifdef VBOX_WITH_DRAG_AND_DROP_GH 622 case DragAndDropSvc::HOST_DND_GH_EVT_DROPPED:627 case HOST_DND_GH_EVT_DROPPED: 623 628 #endif 624 629 { … … 628 633 } 629 634 630 case DragAndDropSvc::HOST_DND_HG_SND_DATA: 635 case HOST_DND_HG_SND_DATA: 636 case HOST_DND_HG_SND_DATA_HDR: 631 637 { 632 638 if (pEvent->Event.pszFormats) … … 945 951 if (RT_SUCCESS(rc)) 946 952 { 947 rc = VbglR3DnDHG AcknowledgeOperation(&mDnDCtx, uActionNotify);953 rc = VbglR3DnDHGSendAckOp(&mDnDCtx, uActionNotify); 948 954 if (RT_FAILURE(rc)) 949 955 LogFlowThisFunc(("Acknowledging operation failed with rc=%Rrc\n", rc)); … … 1015 1021 { 1016 1022 LogRel(("DnD: Requesting data as '%s' ...\n", mFormatRequested.c_str())); 1017 rc = VbglR3DnDHG RequestData(&mDnDCtx, mFormatRequested.c_str());1023 rc = VbglR3DnDHGSendReqData(&mDnDCtx, mFormatRequested.c_str()); 1018 1024 if (RT_FAILURE(rc)) 1019 1025 LogFlowThisFunc(("Requesting data failed with rc=%Rrc\n", rc)); … … 1215 1221 uAllActions = uDefAction; 1216 1222 1217 rc = VbglR3DnDGHAcknowledgePending(&mDnDCtx, 1218 uDefAction, uAllActions, strFormats.c_str()); 1223 rc = VbglR3DnDGHSendAckPending(&mDnDCtx, 1224 uDefAction, uAllActions, 1225 strFormats.c_str(), strFormats.length() + 1 /* Include termination */); 1219 1226 if (RT_FAILURE(rc)) 1220 1227 { … … 1761 1768 /* Note: pEvent will be free'd by the consumer later. */ 1762 1769 1763 rc = VbglR3DnDProcessNextMessage(&pCtx->cmdCtx, &pEvent->Event); 1764 LogFlowFunc(("VbglR3DnDProcessNextMessage returned uType=%RU32, rc=%Rrc\n", 1765 pEvent->Event.uType, rc)); 1770 rc = VbglR3DnDRecvNextMsg(&pCtx->cmdCtx, &pEvent->Event); 1771 LogFlowFunc(("VbglR3DnDRecvNextMsg: uType=%RU32, rc=%Rrc\n", pEvent->Event.uType, rc)); 1766 1772 1767 1773 if ( RT_SUCCESS(rc)
Note:
See TracChangeset
for help on using the changeset viewer.