Changeset 78093 in vbox
- Timestamp:
- Apr 10, 2019 3:11:29 PM (5 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 5 edited
-
include/GuestDnDPrivate.h (modified) (1 diff)
-
src-client/ConsoleImpl2.cpp (modified) (1 diff)
-
src-client/GuestDnDPrivate.cpp (modified) (2 diffs)
-
src-client/GuestDnDSourceImpl.cpp (modified) (5 diffs)
-
src-client/GuestDnDTargetImpl.cpp (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/GuestDnDPrivate.h
r76562 r78093 1122 1122 }; 1123 1123 1124 /** Access to the GuestDnD's singleton instance. 1125 * @todo r=bird: Please add a 'Get' or something to this as it currently looks 1126 * like a class instantiation rather than a getter. Alternatively, use 1127 * UPPER_CASE like the coding guideline suggest for macros. */ 1128 #define GuestDnDInst() GuestDnD::getInstance() 1124 /** Access to the GuestDnD's singleton instance. */ 1125 #define GUESTDNDINST() GuestDnD::getInstance() 1129 1126 1130 1127 /** List of pointers to guest DnD Messages. */ -
trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp
r77753 r78093 3125 3125 rc = HGCMHostRegisterServiceExtension(&hDummy, "VBoxDragAndDropSvc", 3126 3126 &GuestDnD::notifyDnDDispatcher, 3127 G uestDnDInst());3127 GUESTDNDINST()); 3128 3128 if (RT_FAILURE(rc)) 3129 3129 Log(("Cannot register VBoxDragAndDropSvc extension, rc=%Rrc\n", rc)); -
trunk/src/VBox/Main/src-client/GuestDnDPrivate.cpp
r76891 r78093 764 764 { 765 765 /* Initialize public attributes. */ 766 m_lstFmtSupported = G uestDnDInst()->defaultFormats();766 m_lstFmtSupported = GUESTDNDINST()->defaultFormats(); 767 767 768 768 /* Initialzie private stuff. */ … … 929 929 LogRel2(("DnD: Cancelling operation on guest ...")); 930 930 931 return G uestDnDInst()->hostCall(Msg.getType(), Msg.getCount(), Msg.getParms());931 return GUESTDNDINST()->hostCall(Msg.getType(), Msg.getCount(), Msg.getParms()); 932 932 } 933 933 -
trunk/src/VBox/Main/src-client/GuestDnDSourceImpl.cpp
r78089 r78093 266 266 Msg.setNextUInt32(uScreenId); 267 267 268 int rc = G uestDnDInst()->hostCall(Msg.getType(), Msg.getCount(), Msg.getParms());268 int rc = GUESTDNDINST()->hostCall(Msg.getType(), Msg.getCount(), Msg.getParms()); 269 269 if (RT_SUCCESS(rc)) 270 270 { 271 GuestDnDResponse *pResp = G uestDnDInst()->response();271 GuestDnDResponse *pResp = GUESTDNDINST()->response(); 272 272 AssertPtr(pResp); 273 273 … … 348 348 349 349 /* Dito. */ 350 GuestDnDResponse *pResp = G uestDnDInst()->response();350 GuestDnDResponse *pResp = GUESTDNDINST()->response(); 351 351 AssertPtr(pResp); 352 352 … … 961 961 AssertPtrReturn(pCtx, VERR_INVALID_POINTER); 962 962 963 GuestDnD *pInst = G uestDnDInst();963 GuestDnD *pInst = GUESTDNDINST(); 964 964 if (!pInst) 965 965 return VERR_INVALID_POINTER; … … 1096 1096 AssertPtr(pCtx->mpResp); 1097 1097 1098 GuestDnD *pInst = G uestDnDInst();1098 GuestDnD *pInst = GUESTDNDINST(); 1099 1099 if (!pInst) 1100 1100 return VERR_INVALID_POINTER; … … 1201 1201 AssertPtr(pCtx->mpResp); 1202 1202 1203 GuestDnD *pInst = G uestDnDInst();1203 GuestDnD *pInst = GUESTDNDINST(); 1204 1204 if (!pInst) 1205 1205 return VERR_INVALID_POINTER; -
trunk/src/VBox/Main/src-client/GuestDnDTargetImpl.cpp
r78084 r78093 307 307 308 308 /* Adjust the coordinates in a multi-monitor setup. */ 309 int rc = G uestDnDInst()->adjustScreenCoordinates(aScreenId, &aX, &aY);309 int rc = GUESTDNDINST()->adjustScreenCoordinates(aScreenId, &aX, &aY); 310 310 if (RT_SUCCESS(rc)) 311 311 { … … 322 322 Msg.setNextUInt32(cbFormats); 323 323 324 rc = G uestDnDInst()->hostCall(Msg.getType(), Msg.getCount(), Msg.getParms());324 rc = GUESTDNDINST()->hostCall(Msg.getType(), Msg.getCount(), Msg.getParms()); 325 325 if (RT_SUCCESS(rc)) 326 326 { 327 GuestDnDResponse *pResp = G uestDnDInst()->response();327 GuestDnDResponse *pResp = GUESTDNDINST()->response(); 328 328 if (pResp && RT_SUCCESS(pResp->waitForGuestResponse())) 329 329 resAction = GuestDnD::toMainAction(pResp->getActionDefault()); … … 385 385 HRESULT hr = S_OK; 386 386 387 int rc = G uestDnDInst()->adjustScreenCoordinates(aScreenId, &aX, &aY);387 int rc = GUESTDNDINST()->adjustScreenCoordinates(aScreenId, &aX, &aY); 388 388 if (RT_SUCCESS(rc)) 389 389 { … … 400 400 Msg.setNextUInt32(cbFormats); 401 401 402 rc = G uestDnDInst()->hostCall(Msg.getType(), Msg.getCount(), Msg.getParms());402 rc = GUESTDNDINST()->hostCall(Msg.getType(), Msg.getCount(), Msg.getParms()); 403 403 if (RT_SUCCESS(rc)) 404 404 { 405 GuestDnDResponse *pResp = G uestDnDInst()->response();405 GuestDnDResponse *pResp = GUESTDNDINST()->response(); 406 406 if (pResp && RT_SUCCESS(pResp->waitForGuestResponse())) 407 407 resAction = GuestDnD::toMainAction(pResp->getActionDefault()); … … 440 440 Msg.setNextUInt32(0); /** @todo ContextID not used yet. */ 441 441 442 int rc = G uestDnDInst()->hostCall(Msg.getType(), Msg.getCount(), Msg.getParms());442 int rc = GUESTDNDINST()->hostCall(Msg.getType(), Msg.getCount(), Msg.getParms()); 443 443 if (RT_SUCCESS(rc)) 444 444 { 445 GuestDnDResponse *pResp = G uestDnDInst()->response();445 GuestDnDResponse *pResp = GUESTDNDINST()->response(); 446 446 if (pResp) 447 447 pResp->waitForGuestResponse(); … … 507 507 508 508 /* Adjust the coordinates in a multi-monitor setup. */ 509 HRESULT hr = G uestDnDInst()->adjustScreenCoordinates(aScreenId, &aX, &aY);509 HRESULT hr = GUESTDNDINST()->adjustScreenCoordinates(aScreenId, &aX, &aY); 510 510 if (SUCCEEDED(hr)) 511 511 { … … 522 522 Msg.setNextUInt32(cbFormats); 523 523 524 int vrc = G uestDnDInst()->hostCall(Msg.getType(), Msg.getCount(), Msg.getParms());524 int vrc = GUESTDNDINST()->hostCall(Msg.getType(), Msg.getCount(), Msg.getParms()); 525 525 if (RT_SUCCESS(vrc)) 526 526 { 527 GuestDnDResponse *pResp = G uestDnDInst()->response();527 GuestDnDResponse *pResp = GUESTDNDINST()->response(); 528 528 AssertPtr(pResp); 529 529 … … 625 625 626 626 /* Ditto. */ 627 GuestDnDResponse *pResp = G uestDnDInst()->response();627 GuestDnDResponse *pResp = GUESTDNDINST()->response(); 628 628 AssertPtr(pResp); 629 629 … … 838 838 } 839 839 840 int rc = G uestDnDInst()->hostCall(Msg.getType(), Msg.getCount(), Msg.getParms());840 int rc = GUESTDNDINST()->hostCall(Msg.getType(), Msg.getCount(), Msg.getParms()); 841 841 if (RT_SUCCESS(rc)) 842 842 rc = updateProgress(pData, pCtx->mpResp, pData->getMeta().getSize()); … … 869 869 Msg.setNextUInt32(0); /** @todo cbChecksum; not used yet. */ 870 870 871 int rc = G uestDnDInst()->hostCall(Msg.getType(), Msg.getCount(), Msg.getParms());871 int rc = GUESTDNDINST()->hostCall(Msg.getType(), Msg.getCount(), Msg.getParms()); 872 872 873 873 LogFlowFuncLeaveRC(rc);
Note:
See TracChangeset
for help on using the changeset viewer.

